TeX Logo actions
Three simple actions to generate CSS-driven TeX logos.
Styling
Add the following to your stylesheet:
.latex {
font-family: Times, "Times New Roman", serif;
letter-spacing: 1px;
}
.latex sup {
text-transform: uppercase;
letter-spacing: 1px;
font-size: 0.85em;
vertical-align: 0.15em;
margin-left: -0.36em;
margin-right: -0.15em;
}
.latex sub {
text-transform: uppercase;
vertical-align: -0.5ex;
margin-left: -0.1667em;
margin-right: -0.125em;
font-size: 1em;
}
font-family: Times, "Times New Roman", serif;
letter-spacing: 1px;
}
.latex sup {
text-transform: uppercase;
letter-spacing: 1px;
font-size: 0.85em;
vertical-align: 0.15em;
margin-left: -0.36em;
margin-right: -0.15em;
}
.latex sub {
text-transform: uppercase;
vertical-align: -0.5ex;
margin-left: -0.1667em;
margin-right: -0.125em;
font-size: 1em;
}
Actions
Drop the following in your actions folder
tex.php
<?php
echo '<span class="latex">T<sub>e</sub>X</span>';
?>
echo '<span class="latex">T<sub>e</sub>X</span>';
?>
latex.php
<?php
echo '<span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>';
?>
echo '<span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>';
?>
xetex.php
<?php
echo '<span class="latex">X<sub>Ǝ</sub>T<sub>e</sub>X</span>';
?>
echo '<span class="latex">X<sub>Ǝ</sub>T<sub>e</sub>X</span>';
?>
See them in action
Refs
CategoryUserContributions