On Fri, Apr 28, 2000 at 10:04:21PM +0200, Friedemann Baitinger wrote:
> it's been a while when I last tried to convert an old Linux Mini-HowTo
> to SGML using LyX. I figured I'd give it another shot with this new
> prerelease but no luck so far. When I open a new document with nothing
> in it and do a 'File->View dvi' nothing happens as expected, however, as
> soon as I change the 'Layout->Document->Class' to 'SGML (DocBook
> article)' and then do a 'File->View dvi' I immediately get an alert
> pop-up stating a 'There were errors during the LaTeX run -- one error
> detected -- you should try to fix it'. No errors are highlighted in the
> document (obviously since there is nothing in it).
> 
> On the text console I see a message showing up:
> 
> sh: none: command not found
> 
> Any ideas? BTW: View Postscript doesn't work either and FWIW: exporting
> to SGML seems to work nicely.
> 
> Are there any prerequisites to run this new version LyX, any
> dependencies which I may have overlooked?

  No, there aren't new dependencies. It was my mistake, I haven't added
the automatic configuration, I forgot it.

  Please add the following lines to your lyxrc file:

#
# LINUXDOC SECTION #######################################################
#

# If you want to pass extra flags to the LinuxDoc sgml scripts, insert them
# here. 
# Example: the next line activates iso-latin1 support:
#\linuxdoc_to_latex_command "sgml2latex -c latin"

# Here you have the command to convert from linuxdoc to html.
# Example: one html file only.
#\linuxdoc_to_html_command "sgml2html -s 0"

# The LinuxDoc to LyX converter
#\linuxdoc_to_lyx_command "sgml2lyx"

#
# DOCBOOK SECTION ########################################################
#

# Command to convert a docbook file to dvi
#\docbook_to_dvi_command "sgmltools -b dvi"

# Command to convert a docbook file to html
#\docbook_to_html_command "sgmltools -b html"

# Command to convert a docbook file to pdf
#\docbook_to_pdf_command ""


################################### end ################################

  Uncomment (removed the leading #) the lines that apply to you. Notice that
now it will possible to use other docbook distributions besides sgmltools v2.
After the configuration code this will work out of the box with suse, red hat,
and possibly sgmltools-lite (v3 of sgmltools).

  RSN, I will add the code that does the detection during reconfigure.

  Notice that now it will be possible to export the lyx-docbook document directly
to html. AS well as use personal stylesheets to configure your output.

  Igonre the pdf part, for now, as I'm expecting the lyx-latex backends to support
it to add it to docbook. 

> -- 
> Friedemann Baitinger       [EMAIL PROTECTED]      http://baiti.net/fb
> 
> Success occurs in private and failure in full view.

-- 
José

Reply via email to