[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] grohtml and non-ms macros
From: |
Zvezdan Petkovic |
Subject: |
[Groff] grohtml and non-ms macros |
Date: |
Tue, 2 Jan 2007 03:23:41 -0500 |
User-agent: |
Mutt/1.4.2i |
I personally use groff for PDF and PostScript documents, so I did not
care for grohtml too much. The recent discussion about doclifter
prompted me to recheck, and it seems to be a little -ms centric.
This is a part of a paragraph from an -me document.
.lp
Let's look again at an $n$-bit integer
$[ x sub n-1 , x sub n-2 , . . . , x sub 1 , x sub 0 ]$.
It can be viewed as a bit vector $x vec$.
One way to look at it is a binary number with $n$ digits.
That is the
.i unsigned
interpretation of $x vec$:
.EQ
U({x vec}) = sum from i=0 to n-1 x sub i 2 sup i
.EN
It is translated using grohtml.
groff -I. -I/home/zvezdan/share/tmac -Iimages/inforepr -Rpte \
-P'-s 10' -Thtml -me -mpdfmark >inforepr.html
First, if I don't define -Iimages/inforepr all images are stored in my
tmac directory (which should be really used by soelim only).
Secondly, the HTML counterpart of the above paragraph looks like this:
<p style="margin-top: 1em" valign="top"><small>Let’s
look again at an
<img src="images/inforepr-15.png" alt="Image images/inforepr-15.png">
-bit integer
<img src="images/inforepr-16.png" alt="Image images/inforepr-16.png">
. It can be viewed as a bit vector
<img src="images/inforepr-17.png" alt="Image images/inforepr-17.png">
. One way to look at it is a binary number with
<img src="images/inforepr-18.png" alt="Image images/inforepr-18.png">
digits. That is the <i>unsigned</i>
interpretation</small></p>
<p style="margin-top: 1em" valign="top"><small>of
<img src="images/inforepr-19.png" alt="Image images/inforepr-19.png">
:</small></p>
<p style="margin-left:40%;"><small><i>U</i>(
<i><small><small><small>→</small></small></small>
x</i>)=
<i><small><small>ni</small></small></i><small><small>−1=0</small></small></small>
<big>Σ</big> <i><small><small>x
<small><small>i</small></small></small></small></i>
<small><small>2
<i><small><small>i</small></small></i></small></small></p>
After this point all the letters are too small for comfortable reading.
Questions:
- This is not a too complicated paragraph, yet is it broken in
two paragraphs at "interpretation</p> <p>of". Why?
- Where five levels of <small> come from?
(The document of 5 pages ends up with 7 <small> levels).
Best regards,
Zvezdan
- [Groff] grohtml and non-ms macros,
Zvezdan Petkovic <=
Re: [Groff] grohtml and non-ms macros, Gaius Mulley, 2007/01/02