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;
}


Actions


Drop the following in your actions folder

tex.php
<?php
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>';
?>


xetex.php
<?php
echo '<span class="latex">X<sub>&#398;</sub>T<sub>e</sub>X</span>';
?>


See them in action


Refs



CategoryUserContributions
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki