See http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html Now TeX4ht supports Open Document format.
*** Bug 157583 has been marked as a duplicate of this bug. ***
Created attachment 118649 [details] dev-tex/tex4ht-20070505_p0055.ebuild (bump again) the newest version, it worsk for me with tetex-3.0_p1-r3
hi, i tried newer version renaming to tex4ht-20070717_p0228.ebuild and oolatex doesnt work for me. error message i get is System call: java -classpath //texmf-dist/tex4ht/bin xtpipes -i //texmf-dist/tex4ht/xttl/ -o exam.4oo exam.tmp Exception in thread "main" java.lang.NoClassDefFoundError: xtpipes i guess that path //texmf-dist/tex4ht/ bin,xttl should be sed-ed to some appropriate location, but havent found that yet.
oolatex depends on some java classes. Ebuild modifications are: - add >=virtual/jdk-1.5 to DEPEND - add >=virtual/jre-1.5 to RDEPEND - add an extra sed statement to make oolatex find the compiled java files (see item 14 of http://www.cse.ohio-state.edu/~gurari/TeX4ht/uupdate.html) - compile the java files - install the compiled java files - install the .4xt files (also needed by oolatex) - replace has_tetex_3 with latex-package_has_tetex_3 (I do not understand why it is needed, but on my system it is). I tested oolatex on a non-trivial tex file and it works.
Created attachment 132247 [details] another version bump and oolatex works
hmmm, would it be possible to make java optional ? java is not supported on all architectures, this would restrict tex4ht :/ I suppose that would mean not installing jh* binaries; but oolatex wouldn't work
Yes, java could be made optional but I would not install oolatex in case that java has not been installed (I stumbled on the oolatex bug when trying to convert a latex file to open document from LyX). I can modify the ebuild if you like. When fixing oolatex I was wondering if it is possible to use use gcj instead instead of a default java (I suppose that gcj is more portable than the other java's). I can give it a try when the gcj invokation resembles the javac invokation (I am an ebuild and a java newbie).
(In reply to comment #7) > Yes, java could be made optional but I would not install oolatex in case that > java has not been installed (I stumbled on the oolatex bug when trying to > convert a latex file to open document from LyX). > > I can modify the ebuild if you like. Yes, please :) I didn't check what exactly needs java, neither where the class files are (they shouldnt be installed if java is not wanted). > When fixing oolatex I was wondering if it is possible to use use gcj instead > instead of a default java (I suppose that gcj is more portable than the other > java's). I can give it a try when the gcj invokation resembles the javac > invokation (I am an ebuild and a java newbie). I don't know much about gcj (even less than about java...), but I don't think we can assume it's present on the system, it would require to check if gcc has been built with the gcj useflag.
Created attachment 134572 [details] bumped version and added java use flag Here you are: 1. the java classes are only compiled when the java use flag is enabled. 2. the /usr/bin/oo* scripts are not installed when the java use flag is disabled 3. the compiled java files and helper (xml) files are only installed when the java use flag is enabled. 4. add a message that the ODF converters require the java use flag. Gerard
thanks Gerard, it's now bumped. I'll make it installable with texlive as it's currently not possible. I've done small modifications to match gentoo way of handling java stuff (thanks to wltjr), and renamed ht to ht.tex4ht in order to avoid collision with hteditor.