HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Rashif Ray Rahman
Hi guys

Either rtf2latexe does a very bad job, or I'm missing some tips on its usage.

Heading 1 gets translated to Section* instead of Section, and it'd be
good if Title were mapped to Chapter and not left alone. What's more,
anything more than a Heading 3 gets no section at all. I believe up to
Heading 5 can be mapped with Paragraph and Subparagraph. What's worse
is that there are plenty of forced spaces here, there and everywhere,
along with some other gibberish that I did not want LaTeX to give me.
When I typed the document(s) in Word or Writer, I did no formatting at
all (myself) except for selecting paragraph styles (headings). In HTML
terms, that'd mean:

h1Some Section/h1
La la la la...
   -- this blank line here simply means new
paragraph, not forced space
Bla bla bla...

What's even worse is that there appears to be no active html2latex
project. I do not see it anywhere in my distribution (I'm using Linux)
and I wonder whether there's any story to that. Anyway, even if there
were, I'd have to resort to online 'cleanup' tools to paste my
document and get some clean HTML markup. Neither Word nor Writer
outputs anything useful, and I don't want to go through the hoop of Ms
Word  Writer  LaTeX extension  TeX file with gibberish when my
document in fact is dead simple.

So...is there a way to import and export _very_ basic documents? If
not, it's time to get coding (note to self as well as others). I
didn't manage to use LyX's import functions as even with rtf2latexe I
don't see an option. I did see HTML import before but after
reconfiguring recently it is nowhere to be seen in the UI.

The process should preserve only the layout and structure (i.e.
sectioning). There is no need to deal with figures or tables, and even
retaining formatting (bold and italic fonts) is not a requirement.
Paragraph spacing should conform to LyX settings, whereby an empty
line is removed if there is no provision for such spacing in LyX.

This way, one could use Word or Writer to finish up the content, save
to RTF or HTML, and then import in LyX. Really, this is theoretically
a no-brainer, since you'd be dealing with only headings. It can be
accomplished with sed!


--
GPG/PGP ID: C0711BF1


Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Richard Heck

On 05/14/2012 08:36 AM, Rashif Ray Rahman wrote:

Hi guys

Either rtf2latexe does a very bad job, or I'm missing some tips on its usage.

It looks to me as if this is under active development:
http://sourceforge.net/tracker/?atid=374868group_id=22324func=browse
so you could try reporting bugs there.



What's even worse is that there appears to be no active html2latex
project. I do not see it anywhere in my distribution (I'm using Linux)
and I wonder whether there's any story to that. Anyway, even if there
were, I'd have to resort to online 'cleanup' tools to paste my
document and get some clean HTML markup. Neither Word nor Writer
outputs anything useful, and I don't want to go through the hoop of Ms
Word  Writer  LaTeX extension  TeX file with gibberish when my
document in fact is dead simple.

Writer does a much better job nowadays than it used to do, because the 
LaTeX output
is more configurable. Try the Ultra clean article export, for example. 
(There's no need

to involve Word in any way here.)

Better yet, download the writer2latex binary from
http://writer2latex.sourceforge.net/
and the PyODConverter from:
https://github.com/mirkonasato/pyodconverter
and you can do it all from the command line. E.g.:
python DocumentConverter.py myfile.rtf myfile.odt
w2l -clean myfile.odt

Richard



Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Nico Williams
Richard,

Does LyX XHTML output preserve enough LyX metadata to be suitable as
an import format?

Nico
--


Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Richard Heck

On 05/14/2012 10:26 AM, Nico Williams wrote:

Richard,

Does LyX XHTML output preserve enough LyX metadata to be suitable as
an import format?

You mean back into LyX?

Richard



Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Nico Williams
On Mon, May 14, 2012 at 9:30 AM, Richard Heck rgh...@comcast.net wrote:
 On 05/14/2012 10:26 AM, Nico Williams wrote:

 Richard,

 Does LyX XHTML output preserve enough LyX metadata to be suitable as
 an import format?

 You mean back into LyX?

Yes.  With XML formats becoming ubiquitous that seems like it'd be useful.

Nico
--


Weird Slowness in Kile

2012-05-14 Thread Richard Heck


I thought it would be worth mentioning that I've just seen, twice, a 
kind of slowness in Kile (which is a KDE and therefore Qt-based LaTeX 
editor) very similar to what has been reported here, now and again, as a 
slowness in LyX. All of a sudden, and for reasons I don't understand, 
Kile ground to a near halt, with top showing XOrg consuming 100% or more 
CPU. (Fortunately, there are four processors!) Closing it and restarting 
it solved the problem.


Richard



Re: Weird Slowness in Kile

2012-05-14 Thread stefano franchi
Richard,

I use Kile on a regular basis, but I never experienced that. Or
rather, every once in a while I experience a general X-related
lockdown---CPU at 100%, no graphic interaction possible, no switching
to virtual terminal allowed either (presumably because X steals all
keyboard input). My only way out is ssh-ing from another computer and
restarting the whole box.
I wonder if it is related, though. Are you using nvidia proprietary
drivers? The consensus on the archlinux boards seems to point at them.

Cheers,

Stefano

On Mon, May 14, 2012 at 2:10 PM, Richard Heck rgh...@comcast.net wrote:

 I thought it would be worth mentioning that I've just seen, twice, a kind of
 slowness in Kile (which is a KDE and therefore Qt-based LaTeX editor) very
 similar to what has been reported here, now and again, as a slowness in LyX.
 All of a sudden, and for reasons I don't understand, Kile ground to a near
 halt, with top showing XOrg consuming 100% or more CPU. (Fortunately, there
 are four processors!) Closing it and restarting it solved the problem.

 Richard




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Biblatex

2012-05-14 Thread Bernd Kappenberg

Hallo,

Ich habe Biblatex für LyX nach dieser Methode installiert 
(http://wiki.lyx.org/BibTeX/Biblatex).


Es kommt aber eine Fehlermeldung:
- Undefined control sequence. \begin{document}

Ich kann nicht rausfinden, wo der Fehler liegt.

Grüße,
Bernd

--
Bernd Kappenberg
Zeichen setzen für Europa
Der Gebrauch europäischer lateinischer Sonderzeichen in der deutschen 
Öffentlichkeit
ISBN 3-89821-749-3



Re: Weird Slowness in Kile

2012-05-14 Thread Richard Heck

On 05/14/2012 04:16 PM, stefano franchi wrote:

Richard,

I use Kile on a regular basis, but I never experienced that. Or
rather, every once in a while I experience a general X-related
lockdown---CPU at 100%, no graphic interaction possible, no switching
to virtual terminal allowed either (presumably because X steals all
keyboard input). My only way out is ssh-ing from another computer and
restarting the whole box.
I wonder if it is related, though. Are you using nvidia proprietary
drivers? The consensus on the archlinux boards seems to point at them.


Yes.

I've seen the general lock, too.

rh



HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Rashif Ray Rahman
Hi guys

Either rtf2latexe does a very bad job, or I'm missing some tips on its usage.

Heading 1 gets translated to Section* instead of Section, and it'd be
good if Title were mapped to Chapter and not left alone. What's more,
anything more than a Heading 3 gets no section at all. I believe up to
Heading 5 can be mapped with Paragraph and Subparagraph. What's worse
is that there are plenty of forced spaces here, there and everywhere,
along with some other gibberish that I did not want LaTeX to give me.
When I typed the document(s) in Word or Writer, I did no formatting at
all (myself) except for selecting paragraph styles (headings). In HTML
terms, that'd mean:

h1Some Section/h1
La la la la...
   -- this blank line here simply means new
paragraph, not forced space
Bla bla bla...

What's even worse is that there appears to be no active html2latex
project. I do not see it anywhere in my distribution (I'm using Linux)
and I wonder whether there's any story to that. Anyway, even if there
were, I'd have to resort to online 'cleanup' tools to paste my
document and get some clean HTML markup. Neither Word nor Writer
outputs anything useful, and I don't want to go through the hoop of Ms
Word  Writer  LaTeX extension  TeX file with gibberish when my
document in fact is dead simple.

So...is there a way to import and export _very_ basic documents? If
not, it's time to get coding (note to self as well as others). I
didn't manage to use LyX's import functions as even with rtf2latexe I
don't see an option. I did see HTML import before but after
reconfiguring recently it is nowhere to be seen in the UI.

The process should preserve only the layout and structure (i.e.
sectioning). There is no need to deal with figures or tables, and even
retaining formatting (bold and italic fonts) is not a requirement.
Paragraph spacing should conform to LyX settings, whereby an empty
line is removed if there is no provision for such spacing in LyX.

This way, one could use Word or Writer to finish up the content, save
to RTF or HTML, and then import in LyX. Really, this is theoretically
a no-brainer, since you'd be dealing with only headings. It can be
accomplished with sed!


--
GPG/PGP ID: C0711BF1


Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Richard Heck

On 05/14/2012 08:36 AM, Rashif Ray Rahman wrote:

Hi guys

Either rtf2latexe does a very bad job, or I'm missing some tips on its usage.

It looks to me as if this is under active development:
http://sourceforge.net/tracker/?atid=374868group_id=22324func=browse
so you could try reporting bugs there.



What's even worse is that there appears to be no active html2latex
project. I do not see it anywhere in my distribution (I'm using Linux)
and I wonder whether there's any story to that. Anyway, even if there
were, I'd have to resort to online 'cleanup' tools to paste my
document and get some clean HTML markup. Neither Word nor Writer
outputs anything useful, and I don't want to go through the hoop of Ms
Word  Writer  LaTeX extension  TeX file with gibberish when my
document in fact is dead simple.

Writer does a much better job nowadays than it used to do, because the 
LaTeX output
is more configurable. Try the Ultra clean article export, for example. 
(There's no need

to involve Word in any way here.)

Better yet, download the writer2latex binary from
http://writer2latex.sourceforge.net/
and the PyODConverter from:
https://github.com/mirkonasato/pyodconverter
and you can do it all from the command line. E.g.:
python DocumentConverter.py myfile.rtf myfile.odt
w2l -clean myfile.odt

Richard



Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Nico Williams
Richard,

Does LyX XHTML output preserve enough LyX metadata to be suitable as
an import format?

Nico
--


Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Richard Heck

On 05/14/2012 10:26 AM, Nico Williams wrote:

Richard,

Does LyX XHTML output preserve enough LyX metadata to be suitable as
an import format?

You mean back into LyX?

Richard



Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Nico Williams
On Mon, May 14, 2012 at 9:30 AM, Richard Heck rgh...@comcast.net wrote:
 On 05/14/2012 10:26 AM, Nico Williams wrote:

 Richard,

 Does LyX XHTML output preserve enough LyX metadata to be suitable as
 an import format?

 You mean back into LyX?

Yes.  With XML formats becoming ubiquitous that seems like it'd be useful.

Nico
--


Weird Slowness in Kile

2012-05-14 Thread Richard Heck


I thought it would be worth mentioning that I've just seen, twice, a 
kind of slowness in Kile (which is a KDE and therefore Qt-based LaTeX 
editor) very similar to what has been reported here, now and again, as a 
slowness in LyX. All of a sudden, and for reasons I don't understand, 
Kile ground to a near halt, with top showing XOrg consuming 100% or more 
CPU. (Fortunately, there are four processors!) Closing it and restarting 
it solved the problem.


Richard



Re: Weird Slowness in Kile

2012-05-14 Thread stefano franchi
Richard,

I use Kile on a regular basis, but I never experienced that. Or
rather, every once in a while I experience a general X-related
lockdown---CPU at 100%, no graphic interaction possible, no switching
to virtual terminal allowed either (presumably because X steals all
keyboard input). My only way out is ssh-ing from another computer and
restarting the whole box.
I wonder if it is related, though. Are you using nvidia proprietary
drivers? The consensus on the archlinux boards seems to point at them.

Cheers,

Stefano

On Mon, May 14, 2012 at 2:10 PM, Richard Heck rgh...@comcast.net wrote:

 I thought it would be worth mentioning that I've just seen, twice, a kind of
 slowness in Kile (which is a KDE and therefore Qt-based LaTeX editor) very
 similar to what has been reported here, now and again, as a slowness in LyX.
 All of a sudden, and for reasons I don't understand, Kile ground to a near
 halt, with top showing XOrg consuming 100% or more CPU. (Fortunately, there
 are four processors!) Closing it and restarting it solved the problem.

 Richard




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Biblatex

2012-05-14 Thread Bernd Kappenberg

Hallo,

Ich habe Biblatex für LyX nach dieser Methode installiert 
(http://wiki.lyx.org/BibTeX/Biblatex).


Es kommt aber eine Fehlermeldung:
- Undefined control sequence. \begin{document}

Ich kann nicht rausfinden, wo der Fehler liegt.

Grüße,
Bernd

--
Bernd Kappenberg
Zeichen setzen für Europa
Der Gebrauch europäischer lateinischer Sonderzeichen in der deutschen 
Öffentlichkeit
ISBN 3-89821-749-3



Re: Weird Slowness in Kile

2012-05-14 Thread Richard Heck

On 05/14/2012 04:16 PM, stefano franchi wrote:

Richard,

I use Kile on a regular basis, but I never experienced that. Or
rather, every once in a while I experience a general X-related
lockdown---CPU at 100%, no graphic interaction possible, no switching
to virtual terminal allowed either (presumably because X steals all
keyboard input). My only way out is ssh-ing from another computer and
restarting the whole box.
I wonder if it is related, though. Are you using nvidia proprietary
drivers? The consensus on the archlinux boards seems to point at them.


Yes.

I've seen the general lock, too.

rh



HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Rashif Ray Rahman
Hi guys

Either rtf2latexe does a very bad job, or I'm missing some tips on its usage.

Heading 1 gets translated to Section* instead of Section, and it'd be
good if Title were mapped to Chapter and not left alone. What's more,
anything more than a Heading 3 gets no section at all. I believe up to
Heading 5 can be mapped with Paragraph and Subparagraph. What's worse
is that there are plenty of forced spaces here, there and everywhere,
along with some other gibberish that I did not want LaTeX to give me.
When I typed the document(s) in Word or Writer, I did no formatting at
all (myself) except for selecting paragraph styles (headings). In HTML
terms, that'd mean:

Some Section
La la la la...
   <-- this blank line here simply means new
paragraph, not "forced" space
Bla bla bla...

What's even worse is that there appears to be no active html2latex
project. I do not see it anywhere in my distribution (I'm using Linux)
and I wonder whether there's any story to that. Anyway, even if there
were, I'd have to resort to online 'cleanup' tools to paste my
document and get some clean HTML markup. Neither Word nor Writer
outputs anything useful, and I don't want to go through the hoop of Ms
Word > Writer > LaTeX extension > TeX file with gibberish when my
document in fact is dead simple.

So...is there a way to import and export _very_ basic documents? If
not, it's time to get coding (note to self as well as others). I
didn't manage to use LyX's import functions as even with rtf2latexe I
don't see an option. I did see HTML import before but after
reconfiguring recently it is nowhere to be seen in the UI.

The process should preserve only the layout and structure (i.e.
sectioning). There is no need to deal with figures or tables, and even
retaining formatting (bold and italic fonts) is not a requirement.
Paragraph spacing should conform to LyX settings, whereby an empty
line is removed if there is no provision for such spacing in LyX.

This way, one could use Word or Writer to finish up the content, save
to RTF or HTML, and then import in LyX. Really, this is theoretically
a no-brainer, since you'd be dealing with only headings. It can be
accomplished with sed!


--
GPG/PGP ID: C0711BF1


Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Richard Heck

On 05/14/2012 08:36 AM, Rashif Ray Rahman wrote:

Hi guys

Either rtf2latexe does a very bad job, or I'm missing some tips on its usage.

It looks to me as if this is under active development:
http://sourceforge.net/tracker/?atid=374868_id=22324=browse
so you could try reporting bugs there.



What's even worse is that there appears to be no active html2latex
project. I do not see it anywhere in my distribution (I'm using Linux)
and I wonder whether there's any story to that. Anyway, even if there
were, I'd have to resort to online 'cleanup' tools to paste my
document and get some clean HTML markup. Neither Word nor Writer
outputs anything useful, and I don't want to go through the hoop of Ms
Word>  Writer>  LaTeX extension>  TeX file with gibberish when my
document in fact is dead simple.

Writer does a much better job nowadays than it used to do, because the 
LaTeX output
is more configurable. Try the "Ultra clean article" export, for example. 
(There's no need

to involve Word in any way here.)

Better yet, download the writer2latex binary from
http://writer2latex.sourceforge.net/
and the PyODConverter from:
https://github.com/mirkonasato/pyodconverter
and you can do it all from the command line. E.g.:
python DocumentConverter.py myfile.rtf myfile.odt
w2l -clean myfile.odt

Richard



Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Nico Williams
Richard,

Does LyX XHTML output preserve enough LyX metadata to be suitable as
an import format?

Nico
--


Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Richard Heck

On 05/14/2012 10:26 AM, Nico Williams wrote:

Richard,

Does LyX XHTML output preserve enough LyX metadata to be suitable as
an import format?

You mean back into LyX?

Richard



Re: HTML and RTF: Very basic import and export strategy

2012-05-14 Thread Nico Williams
On Mon, May 14, 2012 at 9:30 AM, Richard Heck  wrote:
> On 05/14/2012 10:26 AM, Nico Williams wrote:
>>
>> Richard,
>>
>> Does LyX XHTML output preserve enough LyX metadata to be suitable as
>> an import format?
>
> You mean back into LyX?

Yes.  With XML formats becoming ubiquitous that seems like it'd be useful.

Nico
--


Weird Slowness in Kile

2012-05-14 Thread Richard Heck


I thought it would be worth mentioning that I've just seen, twice, a 
kind of slowness in Kile (which is a KDE and therefore Qt-based LaTeX 
editor) very similar to what has been reported here, now and again, as a 
slowness in LyX. All of a sudden, and for reasons I don't understand, 
Kile ground to a near halt, with top showing XOrg consuming 100% or more 
CPU. (Fortunately, there are four processors!) Closing it and restarting 
it solved the problem.


Richard



Re: Weird Slowness in Kile

2012-05-14 Thread stefano franchi
Richard,

I use Kile on a regular basis, but I never experienced that. Or
rather, every once in a while I experience a general X-related
lockdown---CPU at 100%, no graphic interaction possible, no switching
to virtual terminal allowed either (presumably because X steals all
keyboard input). My only way out is ssh-ing from another computer and
restarting the whole box.
I wonder if it is related, though. Are you using nvidia proprietary
drivers? The consensus on the archlinux boards seems to point at them.

Cheers,

Stefano

On Mon, May 14, 2012 at 2:10 PM, Richard Heck  wrote:
>
> I thought it would be worth mentioning that I've just seen, twice, a kind of
> slowness in Kile (which is a KDE and therefore Qt-based LaTeX editor) very
> similar to what has been reported here, now and again, as a slowness in LyX.
> All of a sudden, and for reasons I don't understand, Kile ground to a near
> halt, with top showing XOrg consuming 100% or more CPU. (Fortunately, there
> are four processors!) Closing it and restarting it solved the problem.
>
> Richard
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Biblatex

2012-05-14 Thread Bernd Kappenberg

Hallo,

Ich habe Biblatex für LyX nach dieser Methode installiert 
(http://wiki.lyx.org/BibTeX/Biblatex).


Es kommt aber eine Fehlermeldung:
- Undefined control sequence. \begin{document}

Ich kann nicht rausfinden, wo der Fehler liegt.

Grüße,
Bernd

--
Bernd Kappenberg
Zeichen setzen für Europa
Der Gebrauch europäischer lateinischer Sonderzeichen in der deutschen 
Öffentlichkeit
ISBN 3-89821-749-3



Re: Weird Slowness in Kile

2012-05-14 Thread Richard Heck

On 05/14/2012 04:16 PM, stefano franchi wrote:

Richard,

I use Kile on a regular basis, but I never experienced that. Or
rather, every once in a while I experience a general X-related
lockdown---CPU at 100%, no graphic interaction possible, no switching
to virtual terminal allowed either (presumably because X steals all
keyboard input). My only way out is ssh-ing from another computer and
restarting the whole box.
I wonder if it is related, though. Are you using nvidia proprietary
drivers? The consensus on the archlinux boards seems to point at them.


Yes.

I've seen the general lock, too.

rh