Re: Import and export to many formats...

2010-03-05 Thread Guenter Milde
On 2010-03-04, Nikos Alexandris wrote:

> OK, I think I found it: I also had an Appendix with a rotated table. I
> removed the Appendix completely and it worked! :-)

> Well, as expected, it looks horrible but at least the text is there.


This is why I believe we should be more specific about the export
options of LyX in the Features advertisement. Something like

* good export to latex, PDF, PS, HTML

* via external converters, it is also possible to convert to oo, rtf,
  word, however there are limitations due to the conceptual
  differences in these formats.

Maybe even more fine-grained (excellent, good, acceptable,
problematic, ...)

Günter



Re: Import and export to many formats...

2010-03-04 Thread Nikos Alexandris
On Wed, 2010-03-03 at 08:43 -0700, Rob Oakes wrote:
> Hi Nikos,
> 
> To get ODF to work, you must have Sun Java installed from the  
> restricted repositories.  If you don't install that version, it won't  
> work.

Rob,

actually it did worked in my system  without sun-java:

# checking for version
java -version

java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

# exporting .lyx to .odt (after erasing the appendix in an article_class
document)
# works, i.e. does not produce empty file

# I also have sun-java but not set to be default
update-java-alternatives -l

java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-su


Nikos





Re: Import and export to many formats...

2010-03-04 Thread Nikos Alexandris
On Thu, 2010-03-04 at 01:31 +0100, Νίκος Αλεξανδρής wrote:
> On Wed, 2010-03-03 at 23:36 +, Guenter Milde wrote:
> > On 2010-03-03, Νίκος Αλεξανδρής wrote:
> > > On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote:
> > 
> > > Thanks, works as expected! Seems that the problem is my complex (?)
> > > article (still I use the normal article document class though).
> > 
> > Is your article in Greek? Maybe this is the showstopper.
> 
> No, no Guenter. It's all english stuff. Just the usual stuff: title,
> sections, subsections, tables, nested items, a few footnotes,
> references, LyX labels, LyX notes, no figures yet. [Below some details.]
> 
> 
> > Also, running the conversion "by hand" and reporting the errors might
> > give more insight to us all.
> 
> Right. I'll try to spend some time on this tomorrow. 

OK, I think I found it: I also had an Appendix with a rotated table. I
removed the Appendix completely and it worked! :-)

Well, as expected, it looks horrible but at least the text is there.

Thanks, Nikos



Re: Import and export to many formats...

2010-03-03 Thread Νίκος Αλεξανδρής
On Wed, 2010-03-03 at 23:36 +, Guenter Milde wrote:
> On 2010-03-03, Νίκος Αλεξανδρής wrote:
> > On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote:
> 
> > Thanks, works as expected! Seems that the problem is my complex (?)
> > article (still I use the normal article document class though).
> 
> Is your article in Greek? Maybe this is the showstopper.

No, no Guenter. It's all english stuff. Just the usual stuff: title,
sections, subsections, tables, nested items, a few footnotes,
references, LyX labels, LyX notes, no figures yet. [Below some details.]


> Also, running the conversion "by hand" and reporting the errors might
> give more insight to us all.

Right. I'll try to spend some time on this tomorrow. 

Thanks, Nikos



//---//
#LyX 1.6.5 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\begin_preamble
% colors
\usepackage{color}

% trying to round-up numbers
\usepackage[english]{rccol}

% landscaped table
\usepackage{lscape}

% scale tables
\usepackage{graphicx}

% ?
\usepackage{epsfig}
\end_preamble
\use_default_options false
\begin_modules
logicalmkup
minimalistic
\end_modules
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\float_placement h
\paperfontsize default
\spacing double
\use_hyperref true
\pdf_title "..."
\pdf_author "Nikos Alexandris"
\pdf_subject "..."
\pdf_keywords "..."
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 0
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref section
\pdf_pdfusetitle true
\papersize a4paper
\use_geometry true
\use_amsmath 0
\use_esint 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\leftmargin 2cm
\topmargin 2cm
\rightmargin 2cm
\bottommargin 2cm
\secnumdepth 2
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle empty
\bullet 1 0 9 -1
\bullet 2 1 31 -1
\bullet 3 0 17 -1
\tracking_changes false
\output_changes false
\author "" 
\author "" 
\end_header
//---//



Re: Import and export to many formats...

2010-03-03 Thread Guenter Milde
On 2010-03-03, Νίκος Αλεξανδρής wrote:
> On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote:

> Thanks, works as expected! Seems that the problem is my complex (?)
> article (still I use the normal article document class though).

Is your article in Greek? Maybe this is the showstopper.

Also, running the conversion "by hand" and reporting the errors might
give more insight to us all.

Günter



Re: Import and export to many formats...

2010-03-03 Thread Νίκος Αλεξανδρής
On Wed, 2010-03-03 at 23:10 +0100, Alex Fernandez wrote:
> To export to Word the best way is IMHO to export using eLyXer with the
> --html option:
>   $ elyxer --html input.lyx output.html
> And then import from Word.
> 
> The reason for this --html option is that Word does not like the
> default XHTML too much. The same can be said for OpenOffice; I have
> had no luck importing from Abiword at all.

You have a point here. Comparing the different tests I did, it seems to
be (currently) the best option.

Nikos



Re: Import and export to many formats...

2010-03-03 Thread Alex Fernandez
Hi Nikos,

2010/3/2 Νίκος Αλεξανδρής :
> Fortunately or Unfortunately, I am aware of all the things you mention.

> - I've been testing eLyXer since its first days (thanks to Alexander
> again for this nice tool)

Thanks to you!

> - I (also?) believe the best way (currently) is to export (somehow) in
> html and then OOo/abiword -> M$-Word.

To export to Word the best way is IMHO to export using eLyXer with the
--html option:
  $ elyxer --html input.lyx output.html
And then import from Word.

The reason for this --html option is that Word does not like the
default XHTML too much. The same can be said for OpenOffice; I have
had no luck importing from Abiword at all.

Alex.


Re: Import and export to many formats...

2010-03-03 Thread Typhoon
On Wed, 03 Mar 2010 08:58:57 -0500
"Ethan Metsger"  wrote:

> On Tue, 02 Mar 2010 21:21:24 -0500, Νίκος Αλεξανδρής  
>  wrote:
> 
> > Seriously, I really would like to see it, just one example please
> > under Ubuntu/ Debian somebody?
> 
> It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10.
> 
> The transformation of a multi-page internal design document went
> smoothly, including some equations I threw in just for fun.  The
> formatting needs minor tweaks as OO.org doesn't include spacings for
> some of the styles that are attractive, but otherwise it seemed to
> work pretty well.
> 
> Just for fun, I ran a beamer presentation through just to see if I
> could break it, and it seemed to handle it ok.  The formatting was
> certainly FUBAR, as you might expect, but the text and graphics were
> all there.
> 
> Best,
> 
> Ethan
> 
> 

I have mentioned this before, but even I keep forgetting it. oolatex
(the script in tex4ht that does the conversion to OO files) will choke
on the non-Sun Java JRE that is installed by default on Debian. It looks
like it runs, but gives an empty document.

I have converted textbooks of some 600 pages using many
cross-references, multiple indexes and bibliographies using the Memoir
class. It is seldom perfect, but plenty good enough for publishers (I
think mine still uses hot type, but I could be mistaken :-)).

Cheers,
Alan



-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206



Re: Import and export to many formats...

2010-03-03 Thread Ethan Metsger
On Wed, 03 Mar 2010 10:51:50 -0500, Νίκος Αλεξανδρής  
 wrote:




(
I also load the packages {lscape}{graphicx}{epsfig} in the Preamble. Any
possible conflict here?
)


I don't know of any reason this would be a problem--like I said, Beamer  
presentations were converted, although the formatting was lost and very  
ugly.  I don't use ODF much at all, so I honestly can't tell you what  
could be wrong.  You can check the output of the tex4ht process if you run  
lyx in a terminal.  Maybe it will provide some additional clues.


Best,

Ethan


Re: Import and export to many formats...

2010-03-03 Thread Νίκος Αλεξανδρής
On Wed, 2010-03-03 at 08:43 -0700, Rob Oakes wrote:
> Hi Nikos,
> 
> To get ODF to work, you must have Sun Java installed from the  
> restricted repositories.  If you don't install that version, it won't  
> work.

I'll check this out although I think I have Sun's java as default in my
system.

Thank you, Nikos


signature.asc
Description: This is a digitally signed message part


Re: Import and export to many formats...

2010-03-03 Thread Νίκος Αλεξανδρής
On Wed, 03 Mar 2010 10:17:57 -0500, Νίκος Αλεξανδρής wrote:
> 
> > That's good news. Do you use labels/indices in your .lyx document?
> > [ Hmmm... my attempts (today) produce only an empty .odt file :-( ]

On Wed, 2010-03-03 at 10:42 -0500, Ethan Metsger wrote:
> I put together the attached files.  It doesn't look like the references  
> are perfectly resolved, though for the most part it seems okay to me.   
> Again, this is pretty simple, and I haven't done much work with indexing  
> and cross-reference in my documents, but for the most part it seems okay.
> 
> It didn't work when I embedded Unicode (no surprises there), but the  
> export otherwise worked nicely enough.  My Ubuntu install is pretty stock,  
> outside of whatever work requirements for development are installed--I  
> haven't installed anything extra that should make it work differently for  
> you.

Thanks, works as expected! Seems that the problem is my complex (?)
article (still I use the normal article document class though).

(
I also load the packages {lscape}{graphicx}{epsfig} in the Preamble. Any
possible conflict here?
)

Nikos




Re: Import and export to many formats...

2010-03-03 Thread Rob Oakes

Hi Nikos,

To get ODF to work, you must have Sun Java installed from the  
restricted repositories.  If you don't install that version, it won't  
work.


Cheers,

Rob Oakes

Sent from Rob's Palm

On Mar 3, 2010, at 8:17 AM, Νίκος Αλεξανδρής uni-freiburg.de> wrote:



Νίκος Αλεξανδρής wrote:
Seriously, I really would like to see it, just one example please  
under

Ubuntu/ Debian somebody?


Ethan Metsger wrote:

It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10.

The transformation of a multi-page internal design document went  
smoothly,

including some equations I threw in just for fun.


That's good news. Do you use labels/indices in your .lyx document?
[ Hmmm... my attempts (today) produce only an empty .odt file :-( ]


The formatting needs minor tweaks as OO.org doesn't include spacings
for some of the styles that are attractive, but otherwise it seemed  
to

work pretty well.


Just for fun, I ran a beamer presentation through just to see if I  
could
break it, and it seemed to handle it ok.  The formatting was  
certainly

FUBAR, as you might expect, but the text and graphics were all there.


That's positive :-). Hopefully one day it'll be a single-step away to
get an acceptable conversion (of what can be actually converted) to  
the

most widespread formats :-)

Nikos



Re: Import and export to many formats...

2010-03-03 Thread Charles de Miramon
Νίκος Αλεξανδρής wrote:

> Please, let me know if I am doing something wrong, or forgot an
> important package to install.
> 

apt-get install tex4ht latex2rtf


At some point the tex4ht package in Debian was not working but now it is in 
good shape, I think. 

Nevertheless tex4ht is a complex and fragile beast. Specially at the end of 
an odt conversion, tex4ht uses a small java program to create the odt zip 
file and that program only works with the sun java (curse, curse java).  


It is better to run tex4ht from the command line on an exported LaTeX file 
than to do it from the menu. There, you can see the error messages. 

 
Charles



Re: Import and export to many formats...

2010-03-03 Thread Νίκος Αλεξανδρής
Νίκος Αλεξανδρής wrote:
> > Seriously, I really would like to see it, just one example please under
> > Ubuntu/ Debian somebody?

Ethan Metsger wrote:
> It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10.
> 
> The transformation of a multi-page internal design document went smoothly,  
> including some equations I threw in just for fun. 

That's good news. Do you use labels/indices in your .lyx document?
[ Hmmm... my attempts (today) produce only an empty .odt file :-( ]

> The formatting needs minor tweaks as OO.org doesn't include spacings
> for some of the styles that are attractive, but otherwise it seemed to
> work pretty well.

> Just for fun, I ran a beamer presentation through just to see if I could  
> break it, and it seemed to handle it ok.  The formatting was certainly  
> FUBAR, as you might expect, but the text and graphics were all there.

That's positive :-). Hopefully one day it'll be a single-step away to
get an acceptable conversion (of what can be actually converted) to the
most widespread formats :-)

Nikos



Re: Import and export to many formats...

2010-03-03 Thread Ethan Metsger
On Tue, 02 Mar 2010 21:21:24 -0500, Νίκος Αλεξανδρής  
 wrote:



Seriously, I really would like to see it, just one example please under
Ubuntu/ Debian somebody?


It worked for me out of the box with LyX 1.6.4 / Ubuntu 9.10.

The transformation of a multi-page internal design document went smoothly,  
including some equations I threw in just for fun.  The formatting needs  
minor tweaks as OO.org doesn't include spacings for some of the styles  
that are attractive, but otherwise it seemed to work pretty well.


Just for fun, I ran a beamer presentation through just to see if I could  
break it, and it seemed to handle it ok.  The formatting was certainly  
FUBAR, as you might expect, but the text and graphics were all there.


Best,

Ethan



Re: Import and export to many formats...

2010-03-03 Thread Uwe Stöhr

Νίκος Αλεξανδρής schrieb:


All this is very far from what the statement implies (e.g.
out-of-the-box import/export). Isn't, this statement, a bit/too much?
Personally, I agree with you but there are several users around using tex4ht on TeXLive who are 
confident with the OpenDocument conversion capabilities of tex4ht.


Seriously, I really would like to see it, just one example please under
Ubuntu/ Debian somebody?


OK, then please report this issue again on the lyx-devel mailing list. 
If there is nobody who can show you that it works, we'll remove the 
statement about the converters from our web page.


regards Uwe


Re: Import and export to many formats...

2010-03-03 Thread Helge Hafting

Νίκος Αλεξανδρής wrote:

In the Features [1] page the visitor reads, among other details:

"Import and export to many formats (LaTeX, PDF, Postscript, DVI, ASCII,
HTML, OpenDocument, RTF, MS Word, and others) thanks to configurable
converters".

Am I the only LyX user who is having so much trouble to export .lyx
files in these file formats?

Please, let me know how I could export, _without_ the need to search in
the internet for just a simple example, lets say to... M$ Windowz.


The conversions depends on external software. This must be installed
before conversion is possible. Some conversions can be done in several 
ways, with different programs. Some programs do a better job than 
others, so you might get bad results if all you have is the worst program.


Do not expect all the conversions to yield good results in all cases.
Most of the formats you can export to, is only partially compatible with 
LyX. So the converted document will at best be different, and at worst 
be useless.


Conversion to latex is about the only conversion that always works 
perfectly. Conversions to pdf, dvi and  postscript goes through latex 
and is normally perfect. But documents using special features may fail 
in some of these conversions. For example, dvi does not support pstricks.


All other formats have less than perfect conversions.

ASCII obviously looses most of the formatting, as it doesn't support
fonts and images. But then, nobody expects more from ASCII.

Not all features are supported in HTML, so some things may be missing.
Still, LyX can be ok for writing html if you avoid some features.

opendocument/rtf/word is particularly troublesome. The three are 
compatible, and therefore all have the same problems. This is a word 
processor format with a simpler feature set than LyX, so a perfect
conversion will never be possible. In particular, any such conversion 
will loose the good line and page breaking and the hyphenation that LyX 
does so well. After conversion, a document can merely look like a

word document, not better.

Also, this converter is far from finished. Much better conversion to 
word is _possible_, but it looks like nobody/few is interested in 
working on that for free. Developers tend to want to improve LyX itself 
rather than the converters, removing the need for word rather than 
adding compatibility.


Helge Hafting




Re: Import and export to many formats...

2010-03-03 Thread Νίκος Αλεξανδρής
Νίκος:
> > > All this is very far from what the statement implies (e.g.
> > > out-of-the-box import/export). Isn't, this statement, a bit/too much?

Uwe: 
> > Personally, I agree with you but there are several users around using 
> > tex4ht on TeXLive who are 
> > confident with the OpenDocument conversion capabilities of tex4ht.

(Just for the records)

# install texlive
sudo apt-get install texlive

#run texhash
sudo texhash

# reconfigure LyX (...a couple of times?)
# quit & re-launch LyX

- Indeed, some entries (HTML and OpenDocument) poped-up in the
import/export options.

- HTML seems to work (but I could perform this, .tex>.html, before, also
using texmacs) and its more or less acceptable.

- OpenDocument doesn't work as already mentioned several time in the
list. Perhaps it works with (over-)simple(-ified) documents (?)

- Export to HTML (M$-Word) (that is the option under export) != M$-Word
(what the "Features" page implies).

- .rtf still does not work.

Please, let me know if I am doing something wrong, or forgot an
important package to install.

Kind regards,
Nikos



signature.asc
Description: This is a digitally signed message part


Re: Import and export to many formats...

2010-03-02 Thread Νίκος Αλεξανδρής
On Wed, 2010-03-03 at 02:40 +0100, Uwe Stöhr wrote:
> Am 02.03.2010 23:03, schrieb Νίκος Αλεξανδρής:
> 
> > All this is very far from what the statement implies (e.g.
> > out-of-the-box import/export). Isn't, this statement, a bit/too much?
> 
> Personally, I agree with you but there are several users around using tex4ht 
> on TeXLive who are 
> confident with the OpenDocument conversion capabilities of tex4ht.

Seriously, I really would like to see it, just one example please under
Ubuntu/ Debian somebody?


> On the other side too much advertisement doesn't harm. Even when exporting 
> fails, new users are at 
> least attracted to test out LyX.

Well, I am not against "advertisement" so to say. Not even against some
more aggressive propaganda. But I consider it as justified when its
true, honest. This is one of the things I really appreciate in the
Open-Source community, the honesty of people who simply say:

<<
Heck, no! Our programs have bugs and they are far from being perfect
just because there is no such thing as a bug-free/perfect program. We
believe that the open-source approach brings tools of higher quality,
that can satisfy individual needs. This is afterall why the community is
an important element of the whole idea.

And the Open-Source (business) model, given there is good coordination,
can actually bring plenty and fair job opportunities. There is room for
everybody.
>>

Stating something that is not exactly true isn't the best strategy in
the long-run. Just my thoughts.

Cheers, Nikos



Re: Import and export to many formats...

2010-03-02 Thread Uwe Stöhr

Am 02.03.2010 23:03, schrieb Νίκος Αλεξανδρής:


All this is very far from what the statement implies (e.g.
out-of-the-box import/export). Isn't, this statement, a bit/too much?


Personally, I agree with you but there are several users around using tex4ht on TeXLive who are 
confident with the OpenDocument conversion capabilities of tex4ht.


On the other side too much advertisement doesn't harm. Even when exporting fails, new users are at 
least attracted to test out LyX.


regards Uwe


Re: Import and export to many formats...

2010-03-02 Thread Νίκος Αλεξανδρής
On Tue, 2010-03-02 at 22:19 +0100, Uwe Stöhr wrote:
> Νίκος Αλεξανδρής schrieb:
> 
> > In the Features [1] page the visitor reads, among other details:
> > 
> > "Import and export to many formats (LaTeX, PDF, Postscript, DVI, ASCII,
> > HTML, OpenDocument, RTF, MS Word, and others) thanks to configurable
> > converters".
> 
> It works when you have tex4ht installed. This is a program compilation 
> delivered with LaTeX-distributions. The export chain is then 
> LyX->OpenDocument (via the LyX Export menu) and then via OpenOffice or 
> AbiWord from OpenDocument to MSWord.
> 
> tex4ht can also convert to RTF (personally I never tested this).
> 
> But the good news is that there is a beautiful and well working program 
> available to export LyX ->HTML Its name is eLyXer. When you install LyX 
> using my alternative Windows installer, this program is automatically 
> installed. It is accessed when using the LyX menu Export->HTML.
> Starting with the HTML file you can easily create OpenDocument or MSWord 
> files using OpenOffice, MSWord or other word processors like KOffice and 
> AbiWord.
> 
> But not enough, LyX 2.0 will come with native HTML export making the 
> export business more comfortable.
> 
> regards Uwe


Thanks Uwe.

Fortunately or Unfortunately, I am aware of all the things you mention. 

- I've tried several times tex4ht (not good results, if at all)
- I have never seen by-default installed the LyX -> .odt option
- I never got a working .rtf
- I've been testing eLyXer since its first days (thanks to Alexander
again for this nice tool)
- I (also?) believe the best way (currently) is to export (somehow) in
html and then OOo/abiword -> M$-Word.

All this is very far from what the statement implies (e.g.
out-of-the-box import/export). Isn't, this statement, a bit/too much?

Cheers, Nikos



Re: Import and export to many formats...

2010-03-02 Thread Uwe Stöhr

Νίκος Αλεξανδρής schrieb:


In the Features [1] page the visitor reads, among other details:

"Import and export to many formats (LaTeX, PDF, Postscript, DVI, ASCII,
HTML, OpenDocument, RTF, MS Word, and others) thanks to configurable
converters".


It works when you have tex4ht installed. This is a program compilation 
delivered with LaTeX-distributions. The export chain is then 
LyX->OpenDocument (via the LyX Export menu) and then via OpenOffice or 
AbiWord from OpenDocument to MSWord.


tex4ht can also convert to RTF (personally I never tested this).

But the good news is that there is a beautiful and well working program 
available to export LyX ->HTML Its name is eLyXer. When you install LyX 
using my alternative Windows installer, this program is automatically 
installed. It is accessed when using the LyX menu Export->HTML.
Starting with the HTML file you can easily create OpenDocument or MSWord 
files using OpenOffice, MSWord or other word processors like KOffice and 
AbiWord.


But not enough, LyX 2.0 will come with native HTML export making the 
export business more comfortable.


regards Uwe


Import and export to many formats...

2010-03-02 Thread Νίκος Αλεξανδρής
In the Features [1] page the visitor reads, among other details:

"Import and export to many formats (LaTeX, PDF, Postscript, DVI, ASCII,
HTML, OpenDocument, RTF, MS Word, and others) thanks to configurable
converters".

Am I the only LyX user who is having so much trouble to export .lyx
files in these file formats?

Please, let me know how I could export, _without_ the need to search in
the internet for just a simple example, lets say to... M$ Windowz.

Otherwise, this statement is inaccurate (WRT to M$-Word, .odt and .rtf
as well) and should, therefore, be removed from the web-page. For me,
this painless export to .rtf never worked.

Thanks, Nikos

---
http://www.lyx.org/Features


signature.asc
Description: This is a digitally signed message part