Hi,
with this patch LyX now is capable to write manpages :-)
First a linuxdoc file is produced from the lyx file, then using sgml-tools
v1.0.9 + some simple patches, sgml2txt --manpage file, and there you have a
manpage :-)
As an example, I attach also the reLyX manpage, both the as the man
outputs.
More about the patches for sgml-tools later... It's lunch time now ;-)
José
--
José Abílio de Oliveira Matos
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LyX is RUNNING...
jamatos-990122.patch.gz
#This file was created by <jamatos> Fri Jan 22 12:17:00 1999
#LyX 1.0 (C) 1995-1998 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass manpage
\options title="reLyX" sectnum="1"
\language default
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Subsection
NAME
\layout Standard
reLyX - translate well-behaved LaTeX into LyX
\layout Subsection
Synopsis
\layout Standard
The simplest way to use reLyX is via the File->Import command in LyX.
(This option is available starting with version 1.0.0.) That runs reLyX on
the given file and loads the resulting file into LyX.
You should try that first, and call it from the command line only if you
need to use more complicated options.
\layout Standard
\series bold
reLyX
\series default
[
\series bold
-c
\series default
\shape italic
textclass
\shape default
] [
\series bold
-df
\series default
] [
\series bold
-o
\series default
\shape italic
outputdir
\shape default
] [
\series bold
-r
\series default
\shape italic
renv1
\shape default
[,
\shape italic
renv2
\shape default
...]] [
\series bold
-s
\series default
\shape italic
sfile1
\shape default
[,
\shape italic
sfile2
\shape default
...]]
\emph on
inputfile
\layout Standard
\series bold
reLyX
\series default
\series bold
-p
\series default
\series bold
-c
\series default
\shape italic
textclass
\shape default
[
\series bold
-df
\series default
] [
\series bold
-o
\series default
\shape italic
outputdir
\shape default
] [
\series bold
-r
\series default
\shape italic
renv1
\shape default
[,
\shape italic
renv2
\shape default
...]] [
\series bold
-s
\series default
\shape italic
sfile1
\shape default
[,
\shape italic
sfile2
\shape default
...]]
\emph on
inputfiles
\layout Standard
\series bold
reLyX
\series default
\series bold
-h
\layout Subsection
Options
\layout Description
\series bold
-c
\series default
Class.
By default, when reLyX sees a
\family typewriter
\backslash
documentclass{foo}
\family default
command, it creates a file of textclass
\begin_inset Quotes eld
\end_inset
foo
\begin_inset Quotes erd
\end_inset
and reads the LyX layout file for that class (something like /usr/local/share/l
yx/layouts/foo.layout OR
\series bold
HOME
\series default
/.lyx/layouts/foo.layout).
Use
\series bold
-c
\series default
to declare a different textclass (and read a different layout file).
\layout Description
\series bold
-d
\series default
Debug.
By default, reLyX gives sparse output and deletes the temporary files which
were created during translation.
Using the
\series bold
-d
\series default
flag will create much more output (both to stdout and stderr) and leave
the temporary files around.
\layout Description
\series bold
-f
\series default
Force.
reLyX will not run if the .lyx file it would generate already exists Use
the
\series bold
-f
\series default
option (carefully) to clobber any existing files.
\layout Description
\series bold
-h
\series default
Help.
Print out usage information and quit
\layout Description
\series bold
-o
\series default
Output directory.
With this option, all temporary files and LyX output files (for the given
input file, for any included files, or for any file fragments given with
the
\series bold
-p
\series default
option) will be put into
\shape italic
outputdir
\shape default