Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Martin A. Hansen

I am still so disappointed by lyx-word conversion so I was looking at
pdf2rtf converters. There appear to be several commercial ones and some open
source ones.

Anybody knows how well these works?

I am in particular interested in getting body text, sections, lists,
figures, references, tables and footnotes correct (in that order).

(latex2rtf makes a horrible job imho - citations gets fubar)


Martin


Re: Paragraph spacing of an array caption+label.

2006-08-31 Thread Helge Hafting

Nicolas Ferré wrote:

Dear all,

If I write the label of an array immediately after the array and if I 
change the paragraph spacing of the caption above the array from the 
default one, a cross-reference to this array label appears in the dvi 
as the section numbering instead of the array numbering. See the 
minimal example attached.


A solution consists in setting the label in the caption paragraph.

Is this a bug or a feature ?

It is the way latex (and therefore lyx) works.

Tables aren't numbered, floats aren't numbered,
it is the captions that are numbered.

So if you want to cross-reference a label number, you should
indeed put the label inside that caption.

Now, is this a feature or an annoyance?  I think it is a feature, for
it allows several tables/figures in a single float. (See the attached file.)
That would be impossible if the float itself was the numbered entity.

This is useful when figures/tables are so small that they fit
comfortably side by side.  This saves paper, and avoids unpleasantly large
white areas in the document.

Helge Hafting


doubletab.lyx
Description: application/lyx


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Helge Hafting

Martin A. Hansen wrote:

I am still so disappointed by lyx-word conversion so I was looking at
pdf2rtf converters. There appear to be several commercial ones and 
some open

source ones.

Anybody knows how well these works?

I didn't know there were commercial ones.  For the open
source ones, just download the lot and try them all.
For commercial ones, write to the vendor and ask specifically
about the features you care about. Perhaps you can send them
a demo document for conversion - then you buy _if_ the result
is good.

I think some kind of latex-rtf converter would be better than a
pdf-rtf converter.  This because PDF don't contain logical markup.
A converter will have to guess. Is a numeral set in a tiny font
a footnote marker, or is it an exponent?  Impossible to say!

The latex file contains all logical markup though, so at least
a good conversion to rtf is possible.  That don't mean a
good converter exists though.

I am in particular interested in getting body text, sections, lists,
figures, references, tables and footnotes correct (in that order).

(latex2rtf makes a horrible job imho - citations gets fubar)

And you really have to convert to rtf?  A pdf file won't do?

Helge Hafting


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Georg Baum
Martin A. Hansen wrote:

 I am still so disappointed by lyx-word conversion so I was looking at
 pdf2rtf converters. There appear to be several commercial ones and some
 open source ones.
 
 Anybody knows how well these works?
 
 I am in particular interested in getting body text, sections, lists,
 figures, references, tables and footnotes correct (in that order).
 
 (latex2rtf makes a horrible job imho - citations gets fubar)

Did you try latex - openoffice - rtf? latex - openoffice via tex4ht works
quite well, so this might be a possibility.


Georg



Re: Index entries: only the first instane appears.

2006-08-31 Thread Juergen Spitzmueller
mail.k wrote:
 I've marked some words or phrases in my text as index entries and
 added the index at the end of the document. But if an indexed term
 appears, say, on pages 3, 26, and 154, the index will list only the
 first instance, i.e., page 3.

Can you provide a minimal example file that shows the behaviour?

Jürgen


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Juergen Spitzmueller
Martin A. Hansen wrote:
 (latex2rtf makes a horrible job imho - citations gets fubar)

It's a bit tricky, but it works for me. The important thing is that the aux 
and bbl files have to be there, i.e. bibtex must be executed before 
latex2rtf.
Usually, running View-DVI in advance of latex2rtf solves the problem.

Jürgen


styles for medicine, patient records..

2006-08-31 Thread Bruce Muirhead
does anyone know if there are existing classes which suit the medical
profession for things such as patient records and laboratory reports?

Or, is there something which could easily be modified?

Or, where would I begin designing something like that myself?

thanks in advance

Bruce


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Martin A. Hansen

i know the tricks for latex2rtf, but somehow the citation numbering in the
text is missing - and i run latex, bibtex and latex again - multiple times -
and still no numbers i the text.

latex2rtf is also very old ...


martin

On 8/31/06, Juergen Spitzmueller [EMAIL PROTECTED] wrote:


Martin A. Hansen wrote:
 (latex2rtf makes a horrible job imho - citations gets fubar)

It's a bit tricky, but it works for me. The important thing is that the
aux
and bbl files have to be there, i.e. bibtex must be executed before
latex2rtf.
Usually, running View-DVI in advance of latex2rtf solves the problem.

Jürgen



Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Jean-Pierre Chretien

Date: Thu, 31 Aug 2006 12:00:52 +0200
From: Martin A. Hansen [EMAIL PROTECTED]
To: Juergen Spitzmueller [EMAIL PROTECTED]
Subject: Re: Anyone with experience in pdf2rtf conversion?
Cc: lyx-users@lists.lyx.org
X-Google-Sender-Auth: 2b48d18e39950cbe

i know the tricks for latex2rtf, but somehow the citation numbering in the
text is missing - and i run latex, bibtex and latex again - multiple times -
and still no numbers i the text.

latex2rtf is also very old ...

Here I have 
latex2rtf 1.9.16a (Sun Nov  7 19:02:39 2004)
and I use it to build and update periodically the list of publications
of my lab in rtf format (among others).
They appear correctly numbered.
With earlier versions I had to patch the bbl file in the document
in a wrapper script to make it work, this version is OK.

-- 
Jean-Pierre





Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Martin A. Hansen

I have the same version.


m

On 8/31/06, Jean-Pierre Chretien [EMAIL PROTECTED] wrote:



Date: Thu, 31 Aug 2006 12:00:52 +0200
From: Martin A. Hansen [EMAIL PROTECTED]
To: Juergen Spitzmueller [EMAIL PROTECTED]
Subject: Re: Anyone with experience in pdf2rtf conversion?
Cc: lyx-users@lists.lyx.org
X-Google-Sender-Auth: 2b48d18e39950cbe

i know the tricks for latex2rtf, but somehow the citation numbering in
the
text is missing - and i run latex, bibtex and latex again - multiple
times -
and still no numbers i the text.

latex2rtf is also very old ...

Here I have
latex2rtf 1.9.16a (Sun Nov  7 19:02:39 2004)
and I use it to build and update periodically the list of publications
of my lab in rtf format (among others).
They appear correctly numbered.
With earlier versions I had to patch the bbl file in the document
in a wrapper script to make it work, this version is OK.

--
Jean-Pierre






Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Juergen Spitzmueller
Martin A. Hansen wrote:
 i know the tricks for latex2rtf, but somehow the citation numbering in the
 text is missing - and i run latex, bibtex and latex again - multiple times
 - and still no numbers i the text.

I use natbib, which works rather well. And on a quick test, numbered (with 
plain.bst) worked as well.

 latex2rtf is also very old ...

1.9.15 is two years old. Not older than LyX 1.3. I agree that its development 
is not very fast recently, but I have encountered that Scott Prahl is quite 
open to suggestions.

Sure, htlatex is more shiny in general, but for me, latex2rtf usually does the 
better job, *especially* wrt bibliographies.

Jürgen


Re: HTML export

2006-08-31 Thread Enrico Forestieri
TechTonics [EMAIL PROTECTED] writes:

 I'm surprised Html view works for you for Cygwin because I
 think (thought) it was LyX not the Cygwin or Win configuration.

The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.
Please find below two scripts htlatex and htlatex.bat. The first
one is for Cygwin and you can put it in /usr/local/bin. The second
(less refined ;-)) one is for a native LyX and should be put somewhere
in the PATH ahead of the miktex bin dir (LyXDir/latextools is a good
choice). You should now have no problems with View-Html ;-)

-- 
Enrico

8 htlatex 8
#!/bin/sh
# This is a wrapper script for LyX/Cygwin to let LyX use the native
# Windows' version of htlatex which is part of MikTeX.
#
# 2006-08-31 Enrico Forestieri
# ===

# The program to call (This should be in the PATH)
prog=htlatex.exe
dir=
while [ $# -gt 0 ] ; do
case $1 in
-*)   prog=$prog $1
  ;;
*)dir=`dirname $1`
  file=`basename $1`
  prog=$prog \$file\
  ;;
esac
shift
done

[ -n $dir ]  cd $dir
eval exec $prog
8888


8 htlatex.bat 8
@echo off
set drivename=%~d1
set pathname=%~p1
set basename=%~n1
%drivename%
cd %pathname%
htlatex.exe %*
8888



Re: Index entries: only the first instane appears.

2006-08-31 Thread Bennett Helm

On Aug 31, 2006, at 4:59 AM, Juergen Spitzmueller wrote:


mail.k wrote:

I've marked some words or phrases in my text as index entries and
added the index at the end of the document. But if an indexed term
appears, say, on pages 3, 26, and 154, the index will list only the
first instance, i.e., page 3.


Can you provide a minimal example file that shows the behaviour?


(Are you marking *each* instance you want indexed?)

Bennett


Re: Trouble again with instant preview...

2006-08-31 Thread Rudi Gaelzer
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.

On Wednesday 30 August 2006 19:42, Rudi Gaelzer wrote:
 I installed lyx 1.3.7 for the x86_64 architecture  with the rpm packages:
 lyx-1.3.7-5.fc3.2.x86_64.rpm
 lyx-qt-1.3.7-5.fc3.2.x86_64.rpm

 Again, instant preview seems not to be working...
 I got a debug file with lyx -dbg mathed,action 2 lyx_bug.txt, which I'm
 sending along.  The only information I could get from it was:
 latex failed to compile 0lyxpreview.tex

 Can anyone help me out on this one?  I'm sorry to be bothering you guys
 again with this, but this bug keeps on pestering me...

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: +55-53-275-7416
FAX:  +55-53-275-7343
Usuário de Linux Registrado Nº 153741


Re: styles for medicine, patient records..

2006-08-31 Thread Helge Hafting

Bruce Muirhead wrote:

does anyone know if there are existing classes which suit the medical
profession for things such as patient records and laboratory reports?

Or, is there something which could easily be modified?

Or, where would I begin designing something like that myself?
  

Depends a lot on what you need.

For easy, consider using the existing report class for lab
reports. You can of course make a template document if you
have some standard stuff that goes in all of your lab reports.

You should check out whether a well made template
document does the job, or if the standard classes really
lack something cruical.


You can of course search the net for latex classes that do what
you want.  If you can't find any, you'll have to roll your own.
This requires quite a bit of latex knowledge, but it is possible
to pick up all that knowledge as you go.  Get a good latex manual
or two. Some knowledge of typography or programming will
be useful.


After you find or make a latex class, you need to make a lyx
.layout file.  Documentation on how to do this comes
with lyx, see chapter 5 in help-customization.  You will need
some latex knowledge here, i.e. exactly how to use the
latex class you're going to use.  Some people have done this, some
find it difficult.  You won't find it hard if you're capable of
making your own latex class though.


This kind of customization can be rather time-consuming in the
beginning, but it could save lots of work later.


Helge Hafting






Re: HTML export

2006-08-31 Thread Jean-Pierre Chretien

To: lyx-users@lists.lyx.org
From: Enrico Forestieri [EMAIL PROTECTED]
Subject: Re: HTML export
Date: Thu, 31 Aug 2006 12:07:00 + (UTC)

TechTonics [EMAIL PROTECTED] writes:

 I'm surprised Html view works for you for Cygwin because I
 think (thought) it was LyX not the Cygwin or Win configuration.

The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.

Is't for that need that originaldir flag is added in the preference template ?
This seems broken on Solaris, and possibly on Windows (check in this thread).

Thanks for the scripts anyway, but the question about extra flags remains.

-- 
Jean-Pierre




Re: Index entries: only the first instane appears.

2006-08-31 Thread mail.k

I can send a truncated version in private. Is this ok?

Just to clarify, do I have to mark every instance of the same index 
entry myself for it to appear in the index? Is it not enough to mark 
every term once?




Re: Index entries: only the first instane appears.

2006-08-31 Thread Bennett Helm

On Aug 31, 2006, at 10:33 AM, mail.k wrote:

Just to clarify, do I have to mark every instance of the same index  
entry myself for it to appear in the index? Is it not enough to  
mark every term once?


Correct: you must mark each occurrence you want to be indexed. (In  
general, not every occurrence of a term should be in the index, after  
all.)


Bennett


Re: Index entries: only the first instane appears.

2006-08-31 Thread Juergen Spitzmueller
mail.k wrote:
 Just to clarify, do I have to mark every instance of the same index
 entry myself for it to appear in the index? Is it not enough to mark
 every term once?

No, you have to mark every instance. This also makes sense. Consider you want 
to refer only to the *important* pages where a term occurs. This is what a 
good index does.

Jürgen


Re: word counter: feature not usefull for me

2006-08-31 Thread Marc Vinyals
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

En/na Marcelo Acuña ha escrit:
  Word counter count words in Notes and ERTs.
  This is not usefull for me.
  I think that command in ERT must not be counted.
[...]
  Marc, said that this is in bugzilla.
 I posted this question because, when I put problem
 with notes and word counter in bugzilla, I received a
 mail from Lyx team saying that this behaviour is
 rigth.
 
  Thanks Helge, Marc
 Marcelo

OK, I see you reported #2566. Didn't check emails.

IMO, the best solution is to make LFUN_WORDS_COUNT display both
printable and absolute words in the info dialog, but I suppose this
would require some non-trivial code. countWords should be redesigned to
parse environments instead of simply counting chars.

This requires further discussion, I guess. I suggest marking #2566 as a
duplicate / depending on #2064 and posting more descriptive comments there.

Marc.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE9wAEu4rFT+k3kmQRAjzaAJ9mRw2+ZODVXApPoOPJwQiq21qGFQCfdVGK
kENd7XIb80LFczcKQi0Eom8=
=56cB
-END PGP SIGNATURE-


writing two consecutive cases in AMS article

2006-08-31 Thread Andrew Corrigan

Hello Everyone,

I'm trying to typeset my homework using Lyx.  So far I have a document 
where the lines are of the type:

Theorem
Proof
Case
Case

The problem I have is that the second Case does not actually say 'Case', 
unlike the first line.  The line is merely indented.  I noticed that 
this always happens with consecutive lines of the same case.  How do I 
make the word 'Case' appear?


Thanks!
- Andrew Corrigan


Re: Trouble again with instant preview...

2006-08-31 Thread Paul A. Rubin

Rudi Gaelzer wrote:
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.




When instant preview is enabled, LyX exports each distinct math inset to 
a separate tex file in the temp directory, and names them 
0lyxpreview.tex, 1lyxpreview.tex, etc.  So 0lyxpreview.tex would 
contain all the headers for a normal LaTeX file, but the only contents 
of the document is your first math inset.


Did you look in the temporary directory (while LyX was running) to see 
if 0lyxpreview.tex was written there?


/Paul



Re: writing two consecutive cases in AMS article

2006-08-31 Thread Paul A. Rubin

Andrew Corrigan wrote:

Hello Everyone,

I'm trying to typeset my homework using Lyx.  So far I have a document 
where the lines are of the type:

Theorem
Proof
Case
Case

The problem I have is that the second Case does not actually say 'Case', 
unlike the first line.  The line is merely indented.  I noticed that 
this always happens with consecutive lines of the same case.  How do I 
make the word 'Case' appear?




Stick a line containing {} in ERT (and nothing else) between them, and 
make it a standard paragraph.  I've attached a minimal example.


/Paul



cases.lyx
Description: application/lyx


Re: HTML export

2006-08-31 Thread TechTonics

Enrico Forestieri wrote:

TechTonics [EMAIL PROTECTED] writes:


I'm surprised Html view works for you for Cygwin because I
think (thought) it was LyX not the Cygwin or Win configuration.


The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.
Please find below two scripts htlatex and htlatex.bat. The first
one is for Cygwin and you can put it in /usr/local/bin. The second
(less refined ;-)) one is for a native LyX and should be put somewhere
in the PATH ahead of the miktex bin dir (LyXDir/latextools is a good
choice). You should now have no problems with View-Html ;-)



I did as you suggested. Both scripts work to some extent.
The big improvement is that the .png files which are needed
to display equations inside the html doc are now generated.
They are also correctly generated compared to the manual method.
But the output html file looks more normal than htlatex.

Those pngs are not integrated into the final html file output.
For splash.lyx-splash.html it means the small footnote at the
bottom of the splash page is a separate html file. IOW, there are
two html files created. In Windows, it is necessary to delete the
originaldir found in Additional Flags = originaldir,needaux

Cygwin seems to work the same, now makes the good pngs, but the
output html file is bereft of their images.

The soup is missing an ingredient,
Stephen


Re: Trouble again with instant preview...

2006-08-31 Thread TechTonics

Rudi Gaelzer wrote:
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.




C:\lyx142\lyxtemp\lyx_tmpdir1252a01476\lyx_tmpbuf0

08/31/2006  01:22 PM73 0lyxpreview.aux
08/31/2006  01:22 PM 2,668 0lyxpreview.dvi
08/31/2006  01:22 PM 6,876 0lyxpreview.log
08/31/2006  01:22 PM   120 0lyxpreview.metrics

08/31/2006  01:22 PM 2,225 0lyxpreview.tex

08/31/2006  01:22 PM 7,420 0lyxpreview2.png
08/31/2006  01:22 PM   187 0lyxpreview3.png
08/31/2006  01:22 PM   222 0lyxpreview4.png
08/31/2006  01:22 PM   181 0lyxpreview5.png
08/31/2006  01:22 PM   199 0lyxpreview6.png
08/31/2006  01:22 PM   670 demoarticle.4ct
08/31/2006  01:22 PM   662 demoarticle.4tc
08/31/2006  01:22 PM   718 demoarticle.aux
08/31/2006  01:23 PM 5,211 demoarticle.css
08/31/2006  01:22 PM19,920 demoarticle.dvi
08/31/2006  01:22 PM 7,790 demoarticle.html
08/31/2006  01:22 PM 2,992 demoarticle.idv
08/31/2006  01:22 PM 7,276 demoarticle.lg
08/31/2006  01:22 PM18,881 demoarticle.log
08/31/2006  01:22 PM 4,058 demoarticle.tex
08/31/2006  01:22 PM 1,773 demoarticle.tex.dep
08/31/2006  01:23 PM16 demoarticle.tmp
08/31/2006  01:22 PM   444 demoarticle.xref
08/31/2006  01:23 PM12,087 zzdemoarticle.ps

---

This, 0lyxpreview.tex, is a result of importing demoarticle.tex
-demoarticle.lyx-View HTML. This is somewhat related to your
problem. The file will exist in your .../lyx_tmpdir/lyx_tmpbuf0
and gets erased if you close the lyx document. I don't know if
Enrico's script for Cygwin will help you; thread: HTML export

Regards,
Stephen


Re: HTML export

2006-08-31 Thread TechTonics

Jean-Pierre Chretien wrote:

To: lyx-users@lists.lyx.org
From: Enrico Forestieri [EMAIL PROTECTED]
Subject: Re: HTML export
Date: Thu, 31 Aug 2006 12:07:00 + (UTC)

TechTonics [EMAIL PROTECTED] writes:


I'm surprised Html view works for you for Cygwin because I
think (thought) it was LyX not the Cygwin or Win configuration.

The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.


Is't for that need that originaldir flag is added in the preference template ?
This seems broken on Solaris, and possibly on Windows (check in this thread).

Thanks for the scripts anyway, but the question about extra flags remains.



This is now working better, the pngs are generated in the right 
directory, but not included in the output html file. I had to

remove originaldir from originaldir,needaux in additional flags.
Otherwise for Windows, the output file was myfile.htm
rather than the expected myfile.html
and LyX would say it couldn't find the file.
Removing originaldir, creates the looked for myfile.html. The file is 
created in either case, but with originaldir the filename is wrong.


Regards,
Stephen



Re: HTML export

2006-08-31 Thread Enrico Forestieri
Jean-Pierre Chretien [EMAIL PROTECTED] writes:

 Is't for that need that originaldir flag is added in the preference template ?
 This seems broken on Solaris, and possibly on Windows (check in this thread).

I checked the LyX sources and found that what I was trying to achieve
through the scripts is the same thing you obtain when you *omit* the
originaldir flag. So, simply delete the originaldir flag and send to
the bit bucket those scripts ;-)

-- 
Enrico



Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Martin A. Hansen

I am still so disappointed by lyx-word conversion so I was looking at
pdf2rtf converters. There appear to be several commercial ones and some open
source ones.

Anybody knows how well these works?

I am in particular interested in getting body text, sections, lists,
figures, references, tables and footnotes correct (in that order).

(latex2rtf makes a horrible job imho - citations gets fubar)


Martin


Re: Paragraph spacing of an array caption+label.

2006-08-31 Thread Helge Hafting

Nicolas Ferré wrote:

Dear all,

If I write the label of an array immediately after the array and if I 
change the paragraph spacing of the caption above the array from the 
default one, a cross-reference to this array label appears in the dvi 
as the section numbering instead of the array numbering. See the 
minimal example attached.


A solution consists in setting the label in the caption paragraph.

Is this a bug or a feature ?

It is the way latex (and therefore lyx) works.

Tables aren't numbered, floats aren't numbered,
it is the captions that are numbered.

So if you want to cross-reference a label number, you should
indeed put the label inside that caption.

Now, is this a feature or an annoyance?  I think it is a feature, for
it allows several tables/figures in a single float. (See the attached file.)
That would be impossible if the float itself was the numbered entity.

This is useful when figures/tables are so small that they fit
comfortably side by side.  This saves paper, and avoids unpleasantly large
white areas in the document.

Helge Hafting


doubletab.lyx
Description: application/lyx


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Helge Hafting

Martin A. Hansen wrote:

I am still so disappointed by lyx-word conversion so I was looking at
pdf2rtf converters. There appear to be several commercial ones and 
some open

source ones.

Anybody knows how well these works?

I didn't know there were commercial ones.  For the open
source ones, just download the lot and try them all.
For commercial ones, write to the vendor and ask specifically
about the features you care about. Perhaps you can send them
a demo document for conversion - then you buy _if_ the result
is good.

I think some kind of latex-rtf converter would be better than a
pdf-rtf converter.  This because PDF don't contain logical markup.
A converter will have to guess. Is a numeral set in a tiny font
a footnote marker, or is it an exponent?  Impossible to say!

The latex file contains all logical markup though, so at least
a good conversion to rtf is possible.  That don't mean a
good converter exists though.

I am in particular interested in getting body text, sections, lists,
figures, references, tables and footnotes correct (in that order).

(latex2rtf makes a horrible job imho - citations gets fubar)

And you really have to convert to rtf?  A pdf file won't do?

Helge Hafting


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Georg Baum
Martin A. Hansen wrote:

 I am still so disappointed by lyx-word conversion so I was looking at
 pdf2rtf converters. There appear to be several commercial ones and some
 open source ones.
 
 Anybody knows how well these works?
 
 I am in particular interested in getting body text, sections, lists,
 figures, references, tables and footnotes correct (in that order).
 
 (latex2rtf makes a horrible job imho - citations gets fubar)

Did you try latex - openoffice - rtf? latex - openoffice via tex4ht works
quite well, so this might be a possibility.


Georg



Re: Index entries: only the first instane appears.

2006-08-31 Thread Juergen Spitzmueller
mail.k wrote:
 I've marked some words or phrases in my text as index entries and
 added the index at the end of the document. But if an indexed term
 appears, say, on pages 3, 26, and 154, the index will list only the
 first instance, i.e., page 3.

Can you provide a minimal example file that shows the behaviour?

Jürgen


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Juergen Spitzmueller
Martin A. Hansen wrote:
 (latex2rtf makes a horrible job imho - citations gets fubar)

It's a bit tricky, but it works for me. The important thing is that the aux 
and bbl files have to be there, i.e. bibtex must be executed before 
latex2rtf.
Usually, running View-DVI in advance of latex2rtf solves the problem.

Jürgen


styles for medicine, patient records..

2006-08-31 Thread Bruce Muirhead
does anyone know if there are existing classes which suit the medical
profession for things such as patient records and laboratory reports?

Or, is there something which could easily be modified?

Or, where would I begin designing something like that myself?

thanks in advance

Bruce


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Martin A. Hansen

i know the tricks for latex2rtf, but somehow the citation numbering in the
text is missing - and i run latex, bibtex and latex again - multiple times -
and still no numbers i the text.

latex2rtf is also very old ...


martin

On 8/31/06, Juergen Spitzmueller [EMAIL PROTECTED] wrote:


Martin A. Hansen wrote:
 (latex2rtf makes a horrible job imho - citations gets fubar)

It's a bit tricky, but it works for me. The important thing is that the
aux
and bbl files have to be there, i.e. bibtex must be executed before
latex2rtf.
Usually, running View-DVI in advance of latex2rtf solves the problem.

Jürgen



Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Jean-Pierre Chretien

Date: Thu, 31 Aug 2006 12:00:52 +0200
From: Martin A. Hansen [EMAIL PROTECTED]
To: Juergen Spitzmueller [EMAIL PROTECTED]
Subject: Re: Anyone with experience in pdf2rtf conversion?
Cc: lyx-users@lists.lyx.org
X-Google-Sender-Auth: 2b48d18e39950cbe

i know the tricks for latex2rtf, but somehow the citation numbering in the
text is missing - and i run latex, bibtex and latex again - multiple times -
and still no numbers i the text.

latex2rtf is also very old ...

Here I have 
latex2rtf 1.9.16a (Sun Nov  7 19:02:39 2004)
and I use it to build and update periodically the list of publications
of my lab in rtf format (among others).
They appear correctly numbered.
With earlier versions I had to patch the bbl file in the document
in a wrapper script to make it work, this version is OK.

-- 
Jean-Pierre





Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Martin A. Hansen

I have the same version.


m

On 8/31/06, Jean-Pierre Chretien [EMAIL PROTECTED] wrote:



Date: Thu, 31 Aug 2006 12:00:52 +0200
From: Martin A. Hansen [EMAIL PROTECTED]
To: Juergen Spitzmueller [EMAIL PROTECTED]
Subject: Re: Anyone with experience in pdf2rtf conversion?
Cc: lyx-users@lists.lyx.org
X-Google-Sender-Auth: 2b48d18e39950cbe

i know the tricks for latex2rtf, but somehow the citation numbering in
the
text is missing - and i run latex, bibtex and latex again - multiple
times -
and still no numbers i the text.

latex2rtf is also very old ...

Here I have
latex2rtf 1.9.16a (Sun Nov  7 19:02:39 2004)
and I use it to build and update periodically the list of publications
of my lab in rtf format (among others).
They appear correctly numbered.
With earlier versions I had to patch the bbl file in the document
in a wrapper script to make it work, this version is OK.

--
Jean-Pierre






Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Juergen Spitzmueller
Martin A. Hansen wrote:
 i know the tricks for latex2rtf, but somehow the citation numbering in the
 text is missing - and i run latex, bibtex and latex again - multiple times
 - and still no numbers i the text.

I use natbib, which works rather well. And on a quick test, numbered (with 
plain.bst) worked as well.

 latex2rtf is also very old ...

1.9.15 is two years old. Not older than LyX 1.3. I agree that its development 
is not very fast recently, but I have encountered that Scott Prahl is quite 
open to suggestions.

Sure, htlatex is more shiny in general, but for me, latex2rtf usually does the 
better job, *especially* wrt bibliographies.

Jürgen


Re: HTML export

2006-08-31 Thread Enrico Forestieri
TechTonics [EMAIL PROTECTED] writes:

 I'm surprised Html view works for you for Cygwin because I
 think (thought) it was LyX not the Cygwin or Win configuration.

The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.
Please find below two scripts htlatex and htlatex.bat. The first
one is for Cygwin and you can put it in /usr/local/bin. The second
(less refined ;-)) one is for a native LyX and should be put somewhere
in the PATH ahead of the miktex bin dir (LyXDir/latextools is a good
choice). You should now have no problems with View-Html ;-)

-- 
Enrico

8 htlatex 8
#!/bin/sh
# This is a wrapper script for LyX/Cygwin to let LyX use the native
# Windows' version of htlatex which is part of MikTeX.
#
# 2006-08-31 Enrico Forestieri
# ===

# The program to call (This should be in the PATH)
prog=htlatex.exe
dir=
while [ $# -gt 0 ] ; do
case $1 in
-*)   prog=$prog $1
  ;;
*)dir=`dirname $1`
  file=`basename $1`
  prog=$prog \$file\
  ;;
esac
shift
done

[ -n $dir ]  cd $dir
eval exec $prog
8888


8 htlatex.bat 8
@echo off
set drivename=%~d1
set pathname=%~p1
set basename=%~n1
%drivename%
cd %pathname%
htlatex.exe %*
8888



Re: Index entries: only the first instane appears.

2006-08-31 Thread Bennett Helm

On Aug 31, 2006, at 4:59 AM, Juergen Spitzmueller wrote:


mail.k wrote:

I've marked some words or phrases in my text as index entries and
added the index at the end of the document. But if an indexed term
appears, say, on pages 3, 26, and 154, the index will list only the
first instance, i.e., page 3.


Can you provide a minimal example file that shows the behaviour?


(Are you marking *each* instance you want indexed?)

Bennett


Re: Trouble again with instant preview...

2006-08-31 Thread Rudi Gaelzer
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.

On Wednesday 30 August 2006 19:42, Rudi Gaelzer wrote:
 I installed lyx 1.3.7 for the x86_64 architecture  with the rpm packages:
 lyx-1.3.7-5.fc3.2.x86_64.rpm
 lyx-qt-1.3.7-5.fc3.2.x86_64.rpm

 Again, instant preview seems not to be working...
 I got a debug file with lyx -dbg mathed,action 2 lyx_bug.txt, which I'm
 sending along.  The only information I could get from it was:
 latex failed to compile 0lyxpreview.tex

 Can anyone help me out on this one?  I'm sorry to be bothering you guys
 again with this, but this bug keeps on pestering me...

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: +55-53-275-7416
FAX:  +55-53-275-7343
Usuário de Linux Registrado Nº 153741


Re: styles for medicine, patient records..

2006-08-31 Thread Helge Hafting

Bruce Muirhead wrote:

does anyone know if there are existing classes which suit the medical
profession for things such as patient records and laboratory reports?

Or, is there something which could easily be modified?

Or, where would I begin designing something like that myself?
  

Depends a lot on what you need.

For easy, consider using the existing report class for lab
reports. You can of course make a template document if you
have some standard stuff that goes in all of your lab reports.

You should check out whether a well made template
document does the job, or if the standard classes really
lack something cruical.


You can of course search the net for latex classes that do what
you want.  If you can't find any, you'll have to roll your own.
This requires quite a bit of latex knowledge, but it is possible
to pick up all that knowledge as you go.  Get a good latex manual
or two. Some knowledge of typography or programming will
be useful.


After you find or make a latex class, you need to make a lyx
.layout file.  Documentation on how to do this comes
with lyx, see chapter 5 in help-customization.  You will need
some latex knowledge here, i.e. exactly how to use the
latex class you're going to use.  Some people have done this, some
find it difficult.  You won't find it hard if you're capable of
making your own latex class though.


This kind of customization can be rather time-consuming in the
beginning, but it could save lots of work later.


Helge Hafting






Re: HTML export

2006-08-31 Thread Jean-Pierre Chretien

To: lyx-users@lists.lyx.org
From: Enrico Forestieri [EMAIL PROTECTED]
Subject: Re: HTML export
Date: Thu, 31 Aug 2006 12:07:00 + (UTC)

TechTonics [EMAIL PROTECTED] writes:

 I'm surprised Html view works for you for Cygwin because I
 think (thought) it was LyX not the Cygwin or Win configuration.

The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.

Is't for that need that originaldir flag is added in the preference template ?
This seems broken on Solaris, and possibly on Windows (check in this thread).

Thanks for the scripts anyway, but the question about extra flags remains.

-- 
Jean-Pierre




Re: Index entries: only the first instane appears.

2006-08-31 Thread mail.k

I can send a truncated version in private. Is this ok?

Just to clarify, do I have to mark every instance of the same index 
entry myself for it to appear in the index? Is it not enough to mark 
every term once?




Re: Index entries: only the first instane appears.

2006-08-31 Thread Bennett Helm

On Aug 31, 2006, at 10:33 AM, mail.k wrote:

Just to clarify, do I have to mark every instance of the same index  
entry myself for it to appear in the index? Is it not enough to  
mark every term once?


Correct: you must mark each occurrence you want to be indexed. (In  
general, not every occurrence of a term should be in the index, after  
all.)


Bennett


Re: Index entries: only the first instane appears.

2006-08-31 Thread Juergen Spitzmueller
mail.k wrote:
 Just to clarify, do I have to mark every instance of the same index
 entry myself for it to appear in the index? Is it not enough to mark
 every term once?

No, you have to mark every instance. This also makes sense. Consider you want 
to refer only to the *important* pages where a term occurs. This is what a 
good index does.

Jürgen


Re: word counter: feature not usefull for me

2006-08-31 Thread Marc Vinyals
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

En/na Marcelo Acuña ha escrit:
  Word counter count words in Notes and ERTs.
  This is not usefull for me.
  I think that command in ERT must not be counted.
[...]
  Marc, said that this is in bugzilla.
 I posted this question because, when I put problem
 with notes and word counter in bugzilla, I received a
 mail from Lyx team saying that this behaviour is
 rigth.
 
  Thanks Helge, Marc
 Marcelo

OK, I see you reported #2566. Didn't check emails.

IMO, the best solution is to make LFUN_WORDS_COUNT display both
printable and absolute words in the info dialog, but I suppose this
would require some non-trivial code. countWords should be redesigned to
parse environments instead of simply counting chars.

This requires further discussion, I guess. I suggest marking #2566 as a
duplicate / depending on #2064 and posting more descriptive comments there.

Marc.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE9wAEu4rFT+k3kmQRAjzaAJ9mRw2+ZODVXApPoOPJwQiq21qGFQCfdVGK
kENd7XIb80LFczcKQi0Eom8=
=56cB
-END PGP SIGNATURE-


writing two consecutive cases in AMS article

2006-08-31 Thread Andrew Corrigan

Hello Everyone,

I'm trying to typeset my homework using Lyx.  So far I have a document 
where the lines are of the type:

Theorem
Proof
Case
Case

The problem I have is that the second Case does not actually say 'Case', 
unlike the first line.  The line is merely indented.  I noticed that 
this always happens with consecutive lines of the same case.  How do I 
make the word 'Case' appear?


Thanks!
- Andrew Corrigan


Re: Trouble again with instant preview...

2006-08-31 Thread Paul A. Rubin

Rudi Gaelzer wrote:
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.




When instant preview is enabled, LyX exports each distinct math inset to 
a separate tex file in the temp directory, and names them 
0lyxpreview.tex, 1lyxpreview.tex, etc.  So 0lyxpreview.tex would 
contain all the headers for a normal LaTeX file, but the only contents 
of the document is your first math inset.


Did you look in the temporary directory (while LyX was running) to see 
if 0lyxpreview.tex was written there?


/Paul



Re: writing two consecutive cases in AMS article

2006-08-31 Thread Paul A. Rubin

Andrew Corrigan wrote:

Hello Everyone,

I'm trying to typeset my homework using Lyx.  So far I have a document 
where the lines are of the type:

Theorem
Proof
Case
Case

The problem I have is that the second Case does not actually say 'Case', 
unlike the first line.  The line is merely indented.  I noticed that 
this always happens with consecutive lines of the same case.  How do I 
make the word 'Case' appear?




Stick a line containing {} in ERT (and nothing else) between them, and 
make it a standard paragraph.  I've attached a minimal example.


/Paul



cases.lyx
Description: application/lyx


Re: HTML export

2006-08-31 Thread TechTonics

Enrico Forestieri wrote:

TechTonics [EMAIL PROTECTED] writes:


I'm surprised Html view works for you for Cygwin because I
think (thought) it was LyX not the Cygwin or Win configuration.


The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.
Please find below two scripts htlatex and htlatex.bat. The first
one is for Cygwin and you can put it in /usr/local/bin. The second
(less refined ;-)) one is for a native LyX and should be put somewhere
in the PATH ahead of the miktex bin dir (LyXDir/latextools is a good
choice). You should now have no problems with View-Html ;-)



I did as you suggested. Both scripts work to some extent.
The big improvement is that the .png files which are needed
to display equations inside the html doc are now generated.
They are also correctly generated compared to the manual method.
But the output html file looks more normal than htlatex.

Those pngs are not integrated into the final html file output.
For splash.lyx-splash.html it means the small footnote at the
bottom of the splash page is a separate html file. IOW, there are
two html files created. In Windows, it is necessary to delete the
originaldir found in Additional Flags = originaldir,needaux

Cygwin seems to work the same, now makes the good pngs, but the
output html file is bereft of their images.

The soup is missing an ingredient,
Stephen


Re: Trouble again with instant preview...

2006-08-31 Thread TechTonics

Rudi Gaelzer wrote:
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.




C:\lyx142\lyxtemp\lyx_tmpdir1252a01476\lyx_tmpbuf0

08/31/2006  01:22 PM73 0lyxpreview.aux
08/31/2006  01:22 PM 2,668 0lyxpreview.dvi
08/31/2006  01:22 PM 6,876 0lyxpreview.log
08/31/2006  01:22 PM   120 0lyxpreview.metrics

08/31/2006  01:22 PM 2,225 0lyxpreview.tex

08/31/2006  01:22 PM 7,420 0lyxpreview2.png
08/31/2006  01:22 PM   187 0lyxpreview3.png
08/31/2006  01:22 PM   222 0lyxpreview4.png
08/31/2006  01:22 PM   181 0lyxpreview5.png
08/31/2006  01:22 PM   199 0lyxpreview6.png
08/31/2006  01:22 PM   670 demoarticle.4ct
08/31/2006  01:22 PM   662 demoarticle.4tc
08/31/2006  01:22 PM   718 demoarticle.aux
08/31/2006  01:23 PM 5,211 demoarticle.css
08/31/2006  01:22 PM19,920 demoarticle.dvi
08/31/2006  01:22 PM 7,790 demoarticle.html
08/31/2006  01:22 PM 2,992 demoarticle.idv
08/31/2006  01:22 PM 7,276 demoarticle.lg
08/31/2006  01:22 PM18,881 demoarticle.log
08/31/2006  01:22 PM 4,058 demoarticle.tex
08/31/2006  01:22 PM 1,773 demoarticle.tex.dep
08/31/2006  01:23 PM16 demoarticle.tmp
08/31/2006  01:22 PM   444 demoarticle.xref
08/31/2006  01:23 PM12,087 zzdemoarticle.ps

---

This, 0lyxpreview.tex, is a result of importing demoarticle.tex
-demoarticle.lyx-View HTML. This is somewhat related to your
problem. The file will exist in your .../lyx_tmpdir/lyx_tmpbuf0
and gets erased if you close the lyx document. I don't know if
Enrico's script for Cygwin will help you; thread: HTML export

Regards,
Stephen


Re: HTML export

2006-08-31 Thread TechTonics

Jean-Pierre Chretien wrote:

To: lyx-users@lists.lyx.org
From: Enrico Forestieri [EMAIL PROTECTED]
Subject: Re: HTML export
Date: Thu, 31 Aug 2006 12:07:00 + (UTC)

TechTonics [EMAIL PROTECTED] writes:


I'm surprised Html view works for you for Cygwin because I
think (thought) it was LyX not the Cygwin or Win configuration.

The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.


Is't for that need that originaldir flag is added in the preference template ?
This seems broken on Solaris, and possibly on Windows (check in this thread).

Thanks for the scripts anyway, but the question about extra flags remains.



This is now working better, the pngs are generated in the right 
directory, but not included in the output html file. I had to

remove originaldir from originaldir,needaux in additional flags.
Otherwise for Windows, the output file was myfile.htm
rather than the expected myfile.html
and LyX would say it couldn't find the file.
Removing originaldir, creates the looked for myfile.html. The file is 
created in either case, but with originaldir the filename is wrong.


Regards,
Stephen



Re: HTML export

2006-08-31 Thread Enrico Forestieri
Jean-Pierre Chretien [EMAIL PROTECTED] writes:

 Is't for that need that originaldir flag is added in the preference template ?
 This seems broken on Solaris, and possibly on Windows (check in this thread).

I checked the LyX sources and found that what I was trying to achieve
through the scripts is the same thing you obtain when you *omit* the
originaldir flag. So, simply delete the originaldir flag and send to
the bit bucket those scripts ;-)

-- 
Enrico



Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Martin A. Hansen

I am still so disappointed by lyx->word conversion so I was looking at
pdf2rtf converters. There appear to be several commercial ones and some open
source ones.

Anybody knows how well these works?

I am in particular interested in getting body text, sections, lists,
figures, references, tables and footnotes correct (in that order).

(latex2rtf makes a horrible job imho - citations gets fubar)


Martin


Re: Paragraph spacing of an array caption+label.

2006-08-31 Thread Helge Hafting

Nicolas Ferré wrote:

Dear all,

If I write the label of an array immediately after the array and if I 
change the paragraph spacing of the caption above the array from the 
default one, a cross-reference to this array label appears in the dvi 
as the section numbering instead of the array numbering. See the 
minimal example attached.


A solution consists in setting the label in the caption paragraph.

Is this a bug or a feature ?

It is the way latex (and therefore lyx) works.

Tables aren't numbered, floats aren't numbered,
it is the captions that are numbered.

So if you want to cross-reference a label number, you should
indeed put the label inside that caption.

Now, is this a feature or an annoyance?  I think it is a feature, for
it allows several tables/figures in a single float. (See the attached file.)
That would be impossible if the float itself was the numbered entity.

This is useful when figures/tables are so small that they fit
comfortably side by side.  This saves paper, and avoids unpleasantly large
white areas in the document.

Helge Hafting


doubletab.lyx
Description: application/lyx


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Helge Hafting

Martin A. Hansen wrote:

I am still so disappointed by lyx->word conversion so I was looking at
pdf2rtf converters. There appear to be several commercial ones and 
some open

source ones.

Anybody knows how well these works?

I didn't know there were commercial ones.  For the open
source ones, just download the lot and try them all.
For commercial ones, write to the vendor and ask specifically
about the features you care about. Perhaps you can send them
a demo document for conversion - then you buy _if_ the result
is good.

I think some kind of latex->rtf converter would be better than a
pdf->rtf converter.  This because PDF don't contain logical markup.
A converter will have to guess. Is a numeral set in a tiny font
a footnote marker, or is it an exponent?  Impossible to say!

The latex file contains all logical markup though, so at least
a good conversion to rtf is possible.  That don't mean a
good converter exists though.

I am in particular interested in getting body text, sections, lists,
figures, references, tables and footnotes correct (in that order).

(latex2rtf makes a horrible job imho - citations gets fubar)

And you really have to convert to rtf?  A pdf file won't do?

Helge Hafting


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Georg Baum
Martin A. Hansen wrote:

> I am still so disappointed by lyx->word conversion so I was looking at
> pdf2rtf converters. There appear to be several commercial ones and some
> open source ones.
> 
> Anybody knows how well these works?
> 
> I am in particular interested in getting body text, sections, lists,
> figures, references, tables and footnotes correct (in that order).
> 
> (latex2rtf makes a horrible job imho - citations gets fubar)

Did you try latex -> openoffice -> rtf? latex -> openoffice via tex4ht works
quite well, so this might be a possibility.


Georg



Re: Index entries: only the first instane appears.

2006-08-31 Thread Juergen Spitzmueller
mail.k wrote:
> I've marked some words or phrases in my text as "index entries" and
> added the index at the end of the document. But if an indexed term
> appears, say, on pages 3, 26, and 154, the index will list only the
> first instance, i.e., page 3.

Can you provide a minimal example file that shows the behaviour?

Jürgen


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Juergen Spitzmueller
Martin A. Hansen wrote:
> (latex2rtf makes a horrible job imho - citations gets fubar)

It's a bit tricky, but it works for me. The important thing is that the aux 
and bbl files have to be there, i.e. bibtex must be executed before 
latex2rtf.
Usually, running View->DVI in advance of latex2rtf solves the problem.

Jürgen


styles for medicine, patient records..

2006-08-31 Thread Bruce Muirhead
does anyone know if there are existing classes which suit the medical
profession for things such as patient records and laboratory reports?

Or, is there something which could easily be modified?

Or, where would I begin designing something like that myself?

thanks in advance

Bruce


Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Martin A. Hansen

i know the tricks for latex2rtf, but somehow the citation numbering in the
text is missing - and i run latex, bibtex and latex again - multiple times -
and still no numbers i the text.

latex2rtf is also very old ...


martin

On 8/31/06, Juergen Spitzmueller <[EMAIL PROTECTED]> wrote:


Martin A. Hansen wrote:
> (latex2rtf makes a horrible job imho - citations gets fubar)

It's a bit tricky, but it works for me. The important thing is that the
aux
and bbl files have to be there, i.e. bibtex must be executed before
latex2rtf.
Usually, running View->DVI in advance of latex2rtf solves the problem.

Jürgen



Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Jean-Pierre Chretien

>>Date: Thu, 31 Aug 2006 12:00:52 +0200
>>From: "Martin A. Hansen" <[EMAIL PROTECTED]>
>>To: "Juergen Spitzmueller" <[EMAIL PROTECTED]>
>>Subject: Re: Anyone with experience in pdf2rtf conversion?
>>Cc: lyx-users@lists.lyx.org
>>X-Google-Sender-Auth: 2b48d18e39950cbe
>>
>>i know the tricks for latex2rtf, but somehow the citation numbering in the
>>text is missing - and i run latex, bibtex and latex again - multiple times -
>>and still no numbers i the text.
>>
>>latex2rtf is also very old ...

Here I have 
latex2rtf 1.9.16a (Sun Nov  7 19:02:39 2004)
and I use it to build and update periodically the list of publications
of my lab in rtf format (among others).
They appear correctly numbered.
With earlier versions I had to patch the bbl file in the document
in a wrapper script to make it work, this version is OK.

-- 
Jean-Pierre





Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Martin A. Hansen

I have the same version.


m

On 8/31/06, Jean-Pierre Chretien <[EMAIL PROTECTED]> wrote:



>>Date: Thu, 31 Aug 2006 12:00:52 +0200
>>From: "Martin A. Hansen" <[EMAIL PROTECTED]>
>>To: "Juergen Spitzmueller" <[EMAIL PROTECTED]>
>>Subject: Re: Anyone with experience in pdf2rtf conversion?
>>Cc: lyx-users@lists.lyx.org
>>X-Google-Sender-Auth: 2b48d18e39950cbe
>>
>>i know the tricks for latex2rtf, but somehow the citation numbering in
the
>>text is missing - and i run latex, bibtex and latex again - multiple
times -
>>and still no numbers i the text.
>>
>>latex2rtf is also very old ...

Here I have
latex2rtf 1.9.16a (Sun Nov  7 19:02:39 2004)
and I use it to build and update periodically the list of publications
of my lab in rtf format (among others).
They appear correctly numbered.
With earlier versions I had to patch the bbl file in the document
in a wrapper script to make it work, this version is OK.

--
Jean-Pierre






Re: Anyone with experience in pdf2rtf conversion?

2006-08-31 Thread Juergen Spitzmueller
Martin A. Hansen wrote:
> i know the tricks for latex2rtf, but somehow the citation numbering in the
> text is missing - and i run latex, bibtex and latex again - multiple times
> - and still no numbers i the text.

I use natbib, which works rather well. And on a quick test, numbered (with 
plain.bst) worked as well.

> latex2rtf is also very old ...

1.9.15 is two years old. Not older than LyX 1.3. I agree that its development 
is not very fast recently, but I have encountered that Scott Prahl is quite 
open to suggestions.

Sure, htlatex is more shiny in general, but for me, latex2rtf usually does the 
better job, *especially* wrt bibliographies.

Jürgen


Re: HTML export

2006-08-31 Thread Enrico Forestieri
TechTonics <[EMAIL PROTECTED]> writes:

> I'm surprised Html view works for you for Cygwin because I
> think (thought) it was LyX not the Cygwin or Win configuration.

The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.
Please find below two scripts "htlatex" and "htlatex.bat". The first
one is for Cygwin and you can put it in /usr/local/bin. The second
(less refined ;-)) one is for a native LyX and should be put somewhere
in the PATH ahead of the miktex bin dir (/latextools is a good
choice). You should now have no problems with View->Html ;-)

-- 
Enrico

8< htlatex 8<
#!/bin/sh
# This is a wrapper script for LyX/Cygwin to let LyX use the native
# Windows' version of htlatex which is part of MikTeX.
#
# 2006-08-31 Enrico Forestieri
# ===

# The program to call (This should be in the PATH)
prog=htlatex.exe
dir=""
while [ $# -gt 0 ] ; do
case "$1" in
-*)   prog="$prog $1"
  ;;
*)dir=`dirname "$1"`
  file=`basename "$1"`
  prog="$prog \"$file\""
  ;;
esac
shift
done

[ -n "$dir" ] && cd "$dir"
eval "exec $prog"
8<8<8<8<


8< htlatex.bat 8<
@echo off
set drivename=%~d1
set pathname=%~p1
set basename=%~n1
%drivename%
cd %pathname%
htlatex.exe %*
8<8<8<8<



Re: Index entries: only the first instane appears.

2006-08-31 Thread Bennett Helm

On Aug 31, 2006, at 4:59 AM, Juergen Spitzmueller wrote:


mail.k wrote:

I've marked some words or phrases in my text as "index entries" and
added the index at the end of the document. But if an indexed term
appears, say, on pages 3, 26, and 154, the index will list only the
first instance, i.e., page 3.


Can you provide a minimal example file that shows the behaviour?


(Are you marking *each* instance you want indexed?)

Bennett


Re: Trouble again with instant preview...

2006-08-31 Thread Rudi Gaelzer
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.

On Wednesday 30 August 2006 19:42, Rudi Gaelzer wrote:
> I installed lyx 1.3.7 for the x86_64 architecture  with the rpm packages:
> lyx-1.3.7-5.fc3.2.x86_64.rpm
> lyx-qt-1.3.7-5.fc3.2.x86_64.rpm
>
> Again, instant preview seems not to be working...
> I got a debug file with "lyx -dbg mathed,action 2> lyx_bug.txt", which I'm
> sending along.  The only information I could get from it was:
> "latex failed to compile 0lyxpreview.tex"
>
> Can anyone help me out on this one?  I'm sorry to be bothering you guys
> again with this, but this bug keeps on pestering me...

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: +55-53-275-7416
FAX:  +55-53-275-7343
Usuário de Linux Registrado Nº 153741


Re: styles for medicine, patient records..

2006-08-31 Thread Helge Hafting

Bruce Muirhead wrote:

does anyone know if there are existing classes which suit the medical
profession for things such as patient records and laboratory reports?

Or, is there something which could easily be modified?

Or, where would I begin designing something like that myself?
  

Depends a lot on what you need.

For "easy", consider using the existing "report" class for lab
reports. You can of course make a template document if you
have some standard stuff that goes in all of your lab reports.

You should check out whether a well made template
document does the job, or if the standard classes really
lack something cruical.


You can of course search the net for latex classes that do what
you want.  If you can't find any, you'll have to roll your own.
This requires quite a bit of latex knowledge, but it is possible
to pick up all that knowledge as you go.  Get a good latex manual
or two. Some knowledge of typography or programming will
be useful.


After you find or make a latex class, you need to make a lyx
.layout file.  Documentation on how to do this comes
with lyx, see chapter 5 in help->customization.  You will need
some latex knowledge here, i.e. exactly how to use the
latex class you're going to use.  Some people have done this, some
find it difficult.  You won't find it hard if you're capable of
making your own latex class though.


This kind of customization can be rather time-consuming in the
beginning, but it could save lots of work later.


Helge Hafting






Re: HTML export

2006-08-31 Thread Jean-Pierre Chretien

>>To: lyx-users@lists.lyx.org
>>From: Enrico Forestieri <[EMAIL PROTECTED]>
>>Subject: Re: HTML export
>>Date: Thu, 31 Aug 2006 12:07:00 + (UTC)
>>
>>TechTonics <[EMAIL PROTECTED]> writes:
>>
>>> I'm surprised Html view works for you for Cygwin because I
>>> think (thought) it was LyX not the Cygwin or Win configuration.
>>
>>The problem is that LyX calls htlatex with a full path and does not
>>change the current dir to the dir containing the file to be converted.

Is't for that need that originaldir flag is added in the preference template ?
This seems broken on Solaris, and possibly on Windows (check in this thread).

Thanks for the scripts anyway, but the question about extra flags remains.

-- 
Jean-Pierre




Re: Index entries: only the first instane appears.

2006-08-31 Thread mail.k

I can send a truncated version in private. Is this ok?

Just to clarify, do I have to mark every instance of the same index 
entry myself for it to appear in the index? Is it not enough to mark 
every term once?




Re: Index entries: only the first instane appears.

2006-08-31 Thread Bennett Helm

On Aug 31, 2006, at 10:33 AM, mail.k wrote:

Just to clarify, do I have to mark every instance of the same index  
entry myself for it to appear in the index? Is it not enough to  
mark every term once?


Correct: you must mark each occurrence you want to be indexed. (In  
general, not every occurrence of a term should be in the index, after  
all.)


Bennett


Re: Index entries: only the first instane appears.

2006-08-31 Thread Juergen Spitzmueller
mail.k wrote:
> Just to clarify, do I have to mark every instance of the same index
> entry myself for it to appear in the index? Is it not enough to mark
> every term once?

No, you have to mark every instance. This also makes sense. Consider you want 
to refer only to the *important* pages where a term occurs. This is what a 
good index does.

Jürgen


Re: word counter: feature not usefull for me

2006-08-31 Thread Marc Vinyals
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

En/na Marcelo Acuña ha escrit:
>>>  Word counter count words in Notes and ERTs.
>>>  This is not usefull for me.
>>>  I think that command in ERT must not be counted.
[...]
>  Marc, said that this is in bugzilla.
> I posted this question because, when I put problem
> with notes and word counter in bugzilla, I received a
> mail from Lyx team saying that this behaviour is
> rigth.
> 
>  Thanks Helge, Marc
> Marcelo

OK, I see you reported #2566. Didn't check emails.

IMO, the best solution is to make LFUN_WORDS_COUNT display both
printable and "absolute" words in the info dialog, but I suppose this
would require some non-trivial code. countWords should be redesigned to
parse environments instead of simply counting chars.

This requires further discussion, I guess. I suggest marking #2566 as a
duplicate / depending on #2064 and posting more descriptive comments there.

Marc.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE9wAEu4rFT+k3kmQRAjzaAJ9mRw2+ZODVXApPoOPJwQiq21qGFQCfdVGK
kENd7XIb80LFczcKQi0Eom8=
=56cB
-END PGP SIGNATURE-


writing two consecutive cases in AMS article

2006-08-31 Thread Andrew Corrigan

Hello Everyone,

I'm trying to typeset my homework using Lyx.  So far I have a document 
where the lines are of the type:

Theorem
Proof
Case
Case

The problem I have is that the second Case does not actually say 'Case', 
unlike the first line.  The line is merely indented.  I noticed that 
this always happens with consecutive lines of the same case.  How do I 
make the word 'Case' appear?


Thanks!
- Andrew Corrigan


Re: Trouble again with instant preview...

2006-08-31 Thread Paul A. Rubin

Rudi Gaelzer wrote:
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.




When instant preview is enabled, LyX exports each distinct math inset to 
a separate tex file in the temp directory, and names them 
"0lyxpreview.tex", "1lyxpreview.tex", etc.  So 0lyxpreview.tex would 
contain all the headers for a normal LaTeX file, but the only contents 
of the document is your first math inset.


Did you look in the temporary directory (while LyX was running) to see 
if 0lyxpreview.tex was written there?


/Paul



Re: writing two consecutive cases in AMS article

2006-08-31 Thread Paul A. Rubin

Andrew Corrigan wrote:

Hello Everyone,

I'm trying to typeset my homework using Lyx.  So far I have a document 
where the lines are of the type:

Theorem
Proof
Case
Case

The problem I have is that the second Case does not actually say 'Case', 
unlike the first line.  The line is merely indented.  I noticed that 
this always happens with consecutive lines of the same case.  How do I 
make the word 'Case' appear?




Stick a line containing {} in ERT (and nothing else) between them, and 
make it a standard paragraph.  I've attached a minimal example.


/Paul



cases.lyx
Description: application/lyx


Re: HTML export

2006-08-31 Thread TechTonics

Enrico Forestieri wrote:

TechTonics <[EMAIL PROTECTED]> writes:


I'm surprised Html view works for you for Cygwin because I
think (thought) it was LyX not the Cygwin or Win configuration.


The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.
Please find below two scripts "htlatex" and "htlatex.bat". The first
one is for Cygwin and you can put it in /usr/local/bin. The second
(less refined ;-)) one is for a native LyX and should be put somewhere
in the PATH ahead of the miktex bin dir (/latextools is a good
choice). You should now have no problems with View->Html ;-)



I did as you suggested. Both scripts work to some extent.
The big improvement is that the .png files which are needed
to display equations inside the html doc are now generated.
They are also correctly generated compared to the manual method.
But the output html file looks more "normal" than htlatex.

Those pngs are not integrated into the final html file output.
For splash.lyx->splash.html it means the small footnote at the
bottom of the splash page is a separate html file. IOW, there are
two html files created. In Windows, it is necessary to delete the
"originaldir" found in Additional Flags = originaldir,needaux

Cygwin seems to work the same, now makes the good pngs, but the
output html file is bereft of their images.

The soup is missing an ingredient,
Stephen


Re: Trouble again with instant preview...

2006-08-31 Thread TechTonics

Rudi Gaelzer wrote:
Does anyone know if the file 0lyxpreview.tex is a standard file in either lyx 
or texmf packages?  Apparently, the reason why Instant Preview did not work 
was because it didn't find this file to process.




C:\lyx142\lyxtemp\lyx_tmpdir1252a01476\lyx_tmpbuf0

08/31/2006  01:22 PM73 0lyxpreview.aux
08/31/2006  01:22 PM 2,668 0lyxpreview.dvi
08/31/2006  01:22 PM 6,876 0lyxpreview.log
08/31/2006  01:22 PM   120 0lyxpreview.metrics

08/31/2006  01:22 PM 2,225 0lyxpreview.tex

08/31/2006  01:22 PM 7,420 0lyxpreview2.png
08/31/2006  01:22 PM   187 0lyxpreview3.png
08/31/2006  01:22 PM   222 0lyxpreview4.png
08/31/2006  01:22 PM   181 0lyxpreview5.png
08/31/2006  01:22 PM   199 0lyxpreview6.png
08/31/2006  01:22 PM   670 demoarticle.4ct
08/31/2006  01:22 PM   662 demoarticle.4tc
08/31/2006  01:22 PM   718 demoarticle.aux
08/31/2006  01:23 PM 5,211 demoarticle.css
08/31/2006  01:22 PM19,920 demoarticle.dvi
08/31/2006  01:22 PM 7,790 demoarticle.html
08/31/2006  01:22 PM 2,992 demoarticle.idv
08/31/2006  01:22 PM 7,276 demoarticle.lg
08/31/2006  01:22 PM18,881 demoarticle.log
08/31/2006  01:22 PM 4,058 demoarticle.tex
08/31/2006  01:22 PM 1,773 demoarticle.tex.dep
08/31/2006  01:23 PM16 demoarticle.tmp
08/31/2006  01:22 PM   444 demoarticle.xref
08/31/2006  01:23 PM12,087 zzdemoarticle.ps

---

This, 0lyxpreview.tex, is a result of importing demoarticle.tex
->demoarticle.lyx->View HTML. This is somewhat related to your
problem. The file will exist in your .../lyx_tmpdir/lyx_tmpbuf0
and gets erased if you close the lyx document. I don't know if
Enrico's script for Cygwin will help you; thread: "HTML export"

Regards,
Stephen


Re: HTML export

2006-08-31 Thread TechTonics

Jean-Pierre Chretien wrote:

To: lyx-users@lists.lyx.org
From: Enrico Forestieri <[EMAIL PROTECTED]>
Subject: Re: HTML export
Date: Thu, 31 Aug 2006 12:07:00 + (UTC)

TechTonics <[EMAIL PROTECTED]> writes:


I'm surprised Html view works for you for Cygwin because I
think (thought) it was LyX not the Cygwin or Win configuration.

The problem is that LyX calls htlatex with a full path and does not
change the current dir to the dir containing the file to be converted.


Is't for that need that originaldir flag is added in the preference template ?
This seems broken on Solaris, and possibly on Windows (check in this thread).

Thanks for the scripts anyway, but the question about extra flags remains.



This is now working better, the pngs are generated in the right 
directory, but not included in the output html file. I had to

remove originaldir from originaldir,needaux in additional flags.
Otherwise for Windows, the output file was myfile.htm
rather than the expected myfile.html
and LyX would say it couldn't find the file.
Removing originaldir, creates the looked for myfile.html. The file is 
created in either case, but with originaldir the filename is wrong.


Regards,
Stephen



Re: HTML export

2006-08-31 Thread Enrico Forestieri
Jean-Pierre Chretien <[EMAIL PROTECTED]> writes:

> Is't for that need that originaldir flag is added in the preference template ?
> This seems broken on Solaris, and possibly on Windows (check in this thread).

I checked the LyX sources and found that what I was trying to achieve
through the scripts is the same thing you obtain when you *omit* the
originaldir flag. So, simply delete the originaldir flag and send to
the bit bucket those scripts ;-)

-- 
Enrico