Wiki source for TeXLogoActions
=====""TeX"" Logo actions=====
Three simple actions to generate CSS-driven ""TeX"" logos.
=== Styling ===
Add the following to your stylesheet:
%%(css)
.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)
<?php
echo '<span class="latex">T<sub>e</sub>X</span>';
?>
%%
==##latex.php##==
%%(php)
<?php
echo '<span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>';
?>
%%
==##xetex.php##==
%%(php)
<?php
echo '<span class="latex">X<sub>Ǝ</sub>T<sub>e</sub>X</span>';
?>
%%
=== See them in action ===
~-[[http://nitens.org/taraborelli/texlogo | CSS driven TeX logos]]
=== Refs ===
~-[[http://edward.oconnor.cx/2007/08/tex-poshlet | TeX and LaTeX logo poshlet]]
----
CategoryUserContributions
Three simple actions to generate CSS-driven ""TeX"" logos.
=== Styling ===
Add the following to your stylesheet:
%%(css)
.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)
<?php
echo '<span class="latex">T<sub>e</sub>X</span>';
?>
%%
==##latex.php##==
%%(php)
<?php
echo '<span class="latex">L<sup>a</sup>T<sub>e</sub>X</span>';
?>
%%
==##xetex.php##==
%%(php)
<?php
echo '<span class="latex">X<sub>Ǝ</sub>T<sub>e</sub>X</span>';
?>
%%
=== See them in action ===
~-[[http://nitens.org/taraborelli/texlogo | CSS driven TeX logos]]
=== Refs ===
~-[[http://edward.oconnor.cx/2007/08/tex-poshlet | TeX and LaTeX logo poshlet]]
----
CategoryUserContributions