I'm drafting agreements on the topic of renewable energies. Trouble is, clients sometimes need a word-version = my agreement in html
. The package tex4ht
does the job pretty well, unless I use the package scrjura
, a part of the KOMA-Script-bundle. But scrjura
makes writing my agreements a lot easier, I would not like to do without it. The package allows to print the agreement in accordance to German standards.
See this example:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{scrjura, indentfirst}
%\usepackage{tex4ht}
\begin{document}
\begin{contract}
\Paragraph{title=Does it make sense?}
This first sentences usually talk about the sense of the whole
contract / agreement / whatever. Unlike many people think, it is not
forbidden to lawyers to write plain text.
But there are obstacles. We need some definitions.
\Paragraph{title=Share-purchase}
Let's assume we talk about a share-deal agreement. We'd have to name
the shares.
And the price.
\end{contract}
\end{document}
Ok, the output with pdflatex is:
Now let's add \usepackage{tex4ht}
, save the file and compile with htlatex filename.tex
. The result is a miss, but not by a mile:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
<!-- html -->
<meta name="src" content="stackexchange-html.tex">
<meta name="date" content="2011-08-12 16:00:00">
<link rel="stylesheet" type="text/css" href="stackexchange-html.css">
</head><body
>
<a
id="x1-2r1"></a>
<!--l. 7--><p class="noindent" ><span
class="cmsy-10x-x-120">§</span><span
class="cmssbx-10x-x-120"> 1</span> <span
class="cmssbx-10x-x-120">Does it make sense?</span><a
id="Q1-1-1"></a><a
id="x1-3"></a>
<a
id="x1-4r1"></a><a
id="x1-5r1"></a>(1) This first sentences usually talk about the sense of the whole contract /
agreement / whatever. Unlike many people think, it is not forbidden to lawyers to
write plain text.
<a
id="x1-6r2"></a><a
id="x1-7r1"></a>(2) But there are obstacles. We need some definitions.
<a
id="x1-8r2"></a>
<span
class="cmsy-10x-x-120">§</span><span
class="cmssbx-10x-x-120"> 2</span> <span
class="cmssbx-10x-x-120">Share-purchase</span><a
id="Q1-1-2"></a><a
id="x1-9"></a>
<a
id="x1-10r1"></a><a
id="x1-11r1"></a>(1) Let’s assume we talk about a share-deal agreement. We’d have to name the
shares.
<a
id="x1-12r2"></a><a
id="x1-13r1"></a>(2) And the price.
</body></html>
If you save this as a html-file and open it into your browser, you will notice that everything is ok, except that there are no paragraphs. The fat printed titles appear in the same line as the numbered "paragraphs", of which each one should have it's own, well, paragraph, as in the picture above.
Can anybody help me to write a config-file for tex4ht to get an output including proper paragraphs?
EDIT:
The command \Paragraph{title= ...}
provides a headline to the following text. How can I inform tex4ht about this?