The l2h help pages |
|
© Leon van Dommelen |
|
The latest version of this document is online at
eng.famu.fsu.edu or at
dommelen.net.
Example l2h-compatible documents
Below is a list of example documents in a form that l2h can use to
make pdf files and web pages. Different examples require different
formats of the "images" (photographs, drawings, and scientific plots)
in your document. But that is not a big deal. You can easily convert
between different formats. See the images web
page on that. Processed pdf files and web pages are also listed,
so that you can see how they look in final form. It also shows how
the theme selection affects the appearance of the web page.
-
Example 1 is standard. All pictures and
graphs must be in eps format. This is the format the author of l2h
uses himself to write his 1,600 page book on quantum mechanics, so
this is the most well tested. Do not use this if you write in Greek
or a nonWestern European language. While Greek characters in
mathematics are fine, Greek, Cyrillic, or CJK (China-Japan-Korea) text
characters cannot be used with this example (nor with the next three).
(Yes, you can write very short Greek quotations in math mode.)
- View the resulting pdf. This pdf
was optimized for quicker start-up on the web (done by pressing "p"
twice).
- View the resulting web pages.
These used the "original-grey" web page theme. Hyphenation and
finalization were applied and jpg generation was enabled. Without
finalizing, you could fine-tune your browser width to get the
H2O string at the end of section 2.1 to break at the 2
(which is an image). Like in H
2O say, if the H is near
the end of the line. That would be pretty stupid. Note further that
figure 3 is better quality than figure 1 because it used a suitable
\htmlimage command; compare in particular the Miata noses. Figure 4
is probably even better because it is a jpg instead of a gif; observe
the more continuous colors of the red miata and the snow. Jpg quality
was set at 87. Note also in chapter 1 that Greek, Russian, and CJK
text characters do show up on the web pages.
The above results were produced on my desktop running Ubuntu 12.04 LTS
with gnome-session-fallback, TeXlive 2009-15, ghostscript 9.05, perl
5.14.2, tcsh 6.17.06, pdftk 1.44-4, pdftops 0.18.4-1.
-
Example 2 is like example 1, but set up for a
scientific article instead of a book.
- View the resulting pdf. In this
example, I used latex removal and then WordPerfect to check the
grammar. This allowed me to correct "reasonable" to "reasonably",
page 3, line 5, and "in vacuum" to "in a vacuum", page 5, last
paragraph, plus make a few stylistic improvements. I used
Ghostscript's new -dFastWebView to optimize for the web. Evince
complains about the document, Acrobat Reader does not. Both display
the document OK, anyway. Otherwise, the same observations as for
example 1 above apply.
- View the resulting web pages.
These used the default "white-blue" theme. Otherwise, the same
observations as for example 1 above apply.
The above results were produced on my Windows Vista laptop, with
Private Firewall 7.0, Microsoft Security Essentials, MiKTeX 2.9, perl
5.16.3, GPL ghostscript 9.07. I even made
a graphical log of entire thing.
-
Example 3 is like example 1, but set up to
use pdflatex or xelatex. All pictures must now be created
in both eps and noneps (like jpg, pdf, ...) format. You may
want to select this if you plan to use something like TeXstudio or
TeXworks as your editor. (Although you can configure them
for the DVI-PS-PDF route and then use 1 or 2 above.)
The above results were produced on my very old MS Windows XP laptop,
with an old version of ZoneAlarm, MiKTeX 2.9 (upgraded from 2.5), perl
5.8.3 (2004), AFPL ghostscript 8.14 (2004).
-
Example 4 is like example 3, but set up for a
scientific article instead of a book.
- View the resulting pdf. I could
not optimize this one because pdfopt is no longer supported by
ghostscript. Otherwise, the same observations as for example 1 above
apply.
- View the resulting web pages.
These used the "white-blue" theme. Otherwise, the same observations
as for example 1 above apply.
These results were produced on my Intel desktop with a newly installed
Ubuntu 13.04 operating system. I even made
a graphical log of entire thing.
-
Example 5 is set up for writing in Greek or
nonWestern European languages. You must have XeLaTeX installed to use
this. Web pages require pdf versions of your graphics. You may also
have to twiddle with the LaTeX; the l2h author writes only Dutch and
English and has no clue. In particular, you will have to enable
fonts that have the characters that you need. See the
Internationalization
web page for more.
- View the resulting pdf. I
enabled a yellow page color for this pdf, by uncommenting the
\pagecolor line. I also installed and used the "Linux Libertine O"
fonts 5.1.3-1 to get the Greek and Russian characters to show up in
the pdf, and I used the "WenQuanYi Micro Hei" fonts to get the CJK
(China-Japan-Korea) characters to show up. (The "TITUS Cyberbit
Basic" and "Bitstream Cyberbit" fonts also work if you install them.)
Otherwise, the same observations as for example 1 above apply.
- View the resulting web pages.
These used the "yellow-orange" theme. While examples 1 through 4
would be able to show the Greek, Russian, and CJK characters in the
text of the web pages, they would not do the Greek photon label in
figure 4. (Unless you cheat by typing it in math mode. But that
would not work for Russian, AFAIK.) Otherwise, the same observations
as for example 1 above apply.
The above results were produced on my laptop running Ubuntu 12.04 LTS
with gnome-session-fallback, TeXlive 2009-15, ghostscript 9.05, perl
5.14.2, tcsh 6.17.06, pdftk 1.44, pdftops 0.18.4.
-
Example 6 is like example 5, but set up for a
scientific article instead of a book.
- View the resulting pdf. In this
example, I used latex removal and then Microsoft Word to check the
grammar. I accepted some suggestions of the grammar checker, like
changing "But" in "However" in several places. I used the "Times New
Roman" font to get the Greek and Russian characters to show up in the
pdf, and I used the "SimSun" font to get the CJK (China-Japan-Korea)
characters to show up. (The "TITUS Cyberbit Basic" and "Bitstream
Cyberbit" fonts also work if you install them.) Note that "Times New
Roman" is severely crippled on Windows XP and linux, and is not useful
there. Windows Vista is OK. I could not optimize this one because
pdfopt is no longer supported by ghostscript. Otherwise, the same
observations as for example 1 above apply.
- View the resulting web pages.
These used the "white-blue" theme. While examples 1 through 4 would
be able to show the Greek, Russian, and CJK characters in the text of
the web pages, they would not do the Greek photon label in figure 4.
(Unless you cheat by typing it in math mode. But that would not work
for Russian, AFAIK.) Otherwise, the same observations as for example
1 above apply.
These results were produced on my Windows 7 desktop with Comodo
Firewall 6.0.264710.2708, the full TeX-live, perl 5.16.3, GPL
ghostscript 9.07. I even made a graphical
log of entire thing.
- FSU-thesis is for a Florida State
University thesis.
This was made on the College of Engineering "wolf" computer, a 64-bit
Debian work station. This computer was used in text mode using ssh
from my desktop PC. (Think "Putty"). Using wolf has the advantage
that you do not have to install anything on your own computer. Only
an easy install of just l2h_deb6-64.zip on
the COE wolf. (Actually, you do not even have to do that. You can
use my installation.)
- FAMU-thesis is for a Florida A \& M
University thesis. Note: This is un unofficial hack by Leon van
Dommelen and is not approved by FAMU. It may not meet FAMU
requirements. As far as I know, there is no official FAMU LaTeX
template, that is why I made this one. However, if you want to try
it, work with me and we will fix whatever does not meet requirements.
This was made on the College of Engineering "dingo" computer, a Sun
SPARC work station. This computer was used in text mode using ssh
from my desktop PC. (Think "Putty"). Using dingo has the advantage
that you do not have to install anything at all. (The LaTeX on dingo
is far out of date, requiring some fixes like disabling UTF-8. So if
you want to use dingo, come see me in my office and I will set you up
to use my SPARC l2h.)
- Quantum
Mechanics for Engineers. My real online book.
- View
the resulting pdf. Watch it: this is 1600 pages of solid math,
and 20 Mbytes to download.
-
View the resulting web pages. The white-blue theme was used.
Note how much faster and more precise the index is to use in the web
pages than in the pdf, even though both are hot-linked!