homepage
work
tippe top
Choro d'Arte
Antiphons
software
gletex
Index
What is gletex?
Usage
Examples
Restrictions
Database
History
Installation
Print version
sizesub & sizedef
|
|
Examples and tips
tex "$\vec a$" 2 "cc"
A vector might be the most simple example where TeX is needed
within gle. Although TeX fonts are available in gle, complex
formulas can't be written.
latex "$$\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{\pi^2}{6}$$" 11 "bl"
This formula is written with LaTeX commands. This might be
easier for everyone, who is more familiar with LaTeX than with
plain TeX. But TeX commands executed more quickly, because LaTeX needs
more time during startup due to its macros. $$ instead of a
single $ for switching into (La)TeX mathematical modus might be
useful for large terms, because (La)TeX shrinks the hight of
mathematical terms within normal text, which is done inside single $'.
But $$ switches into a full line mathematical modus (see LaTeX command
"\displaystyle"), which is preferred by most users.
tex "\input colordvi.tex \textColor{c m y k} text example" 2 "cc"
This is an easy way for writing colored text with (La)TeX and
gletex. c, m, y, and k describe the CMKY code of the color (c=cyan,
m=magenta, y=yellow, and k=black) and can be values from zero to one.
The same color in gle can be created with the undocumented command
cvtrgb(r,g,b), which can be written instead of a color name. The
letters r, g, and b are the RGB code of the color (r=red, g=green, and
b=blue) and can be numbers from zero to one. The conversion to CMKY is
c=1-r, m=1-g, b=1-y, and k=0. By the way, the color white within a
(La)TeX expression might be used for an alignment. gletex uses the
bounding box of the created encapsulated postscript file to align the
(La)TeX expression. Therefore white text can be used to align the
output. This solution is sloppy, but it might be used to prevent time
consuming manual alignments.
tex "\hsize=50truecm This text is a example for a long line, which \TeX should not break into several lines." 4 "cc"
Large (La)TeX texts are splitted into several lines to fit the
paragraph width. Sometimes this behavior is disturbing within gletex.
For instance, if you want to print something in landscape format. A
simple solution for this problem is to set the page width to a value
large enough to prevent the line breaks. Additionally the following
lines are useful while plotting A4 pages in landscape format:
size 21 29.7
amove 10.5 14.85
begin rotate 90
begin translate -4.35 4.35
...
end translate
end rotate
|