How could I write my name, for example, in a \LaTeX style? It is just interesting, as in Google all other things pop up when I try to search for an answer!
- 27,421
- 189
5 Answers
this requires xelatex

\documentclass{article}
\XeTeXinterchartokenstate = 1
\XeTeXcharclass`L=4
\XeTeXcharclass`A=4
\XeTeXcharclass`T=4
\XeTeXcharclass`E=4
\XeTeXcharclass`X=4
\XeTeXinterchartoks 255 4{\z}
\def\z#1{{\XeTeXinterchartokenstate = 0\lowercase{\,#1}}}
\lccode`L=`D
\lccode`T=`V
\lccode`E=`I
\lccode`X=`D
\begin{document}
\LaTeX
\end{document}
- 757,742
-
1XD nice. If I'm not mistaken, this maps the LaTeX glyphs onto the letters in your name :) Cheeky. – Sean Allred May 13 '15 at 19:32
-
that's a rather scrawny "a". would look better as a small cap (or a "smaller" cap) since the slope of "A" nicely mirrors the slope of the "V". maybe if you ask nicely, i'll concoct a prettier version for you. – barbara beeton May 13 '15 at 20:32
-
@barbarabeeton It has to fit into the offsets designed for the original \LaTeX, I don't think Jonathan quite had this in mind when designing xetex char classes. – David Carlisle May 13 '15 at 20:33
-
if you want to laugh, you can look up what we've done to get a sloped xetex for tugboat. now that's a real kludge! – barbara beeton May 13 '15 at 20:35
You can write your name creatively as I do mine:
\documentclass{article}
\usepackage{amsmath,amssymb}
\newsavebox{\mynamebox}
\savebox{\mynamebox}{%%
$\Lambda\mspace{-13mu}-\mspace{-5mu}%%
\cdot\mspace{-0.25mu}%%
\xi\mspace{-1mu}^{\parallel}\mspace{-3mu}%%
\epsilon^{\mspace{-2mu}\dagger\mspace{-5mu}\dagger}$}%%
\begin{document}
\usebox\mynamebox
\end{document}

- 50,533
Best way to find out how the \TeX logo works is to look at \meaning\TeX. Since \LaTeX is protected, you need to use \expandafter\meaning\csname LaTeX \endcsname. texdef is a tool you can use on the command line to quickly look these things up: texdef -t latex TeX LaTeX [... more macros ...].
Among other font-selection commands, the logos use \kern and \raisebox to fine-tune the horizontal/vertical position of each character. For (a bad) example:
AL\kern-3pt\relax\raisebox{1.5pt}{L}\kern-3pt\relax
\raisebox{3pt}{R}\kern-7.33pt\relax
\raisebox{-5pt}{E}\kern-1pt\relax D
- 27,421
-
-
-
-
-
3OMG.... I've been reading your name wrong for too too long. How embarassing. – A.Ellett May 13 '15 at 20:13
-
1if you examine the tex and latex logos carefully, you will observe that they won't spread adjacent lines apart, since they don't greatly exceed the depth of the usual descender in the current font. and neither of them rises higher than the cap height. for the (quite highly tuned for computer modern) definition of
\LaTeXet al., look intoltugboat.cls. for a somewhat "simpler" (to comprehend) definition, see the plain textugboat.cmn(on ctan and in tex live). – barbara beeton May 13 '15 at 20:28
Based on my SX logo, which uses the \S sectioning glyph as my initials.
\documentclass{article}
\usepackage{graphicx}
\usepackage{stackengine}
\begin{document}
\Huge\scalebox{3.8}{\S}\kern-.5ex\bfseries\LARGE\setstackgap{L}{1.35\baselineskip}%
\Centerstack[l]{te\kern2pt\tclap[5pt]{v}\kern2pt{}en egl\tclap[12pt]{t}e\bclap[10pt]{s}}
\end{document}

Here is my SX logo
\documentclass{article}
\usepackage{graphicx}
\usepackage{stackengine}
\begin{document}
\Huge
\def\rl{\rule{2.05ex}{0ex}}
\fboxrule=2pt
\fbox{\rl\stackinset{c}{}{b}{3.65ex}{\LARGE\bfseries B}{\scalebox{4}{\S}}\rl}
\end{document}
which is my stackexchange icon, and initials: SBS, obtained by overlaying a "B" atop the LaTeX section symbol \S (Computer Modern).

- 237,551
-
Another example:
\input opmac \ooalign{\S\cr \thefontscale[180]\hfil \raise2.4ex\hbox{B}\hfil\cr} \bye. – wipet May 13 '15 at 20:14 -
2
-
3\pdfliteral seems to be more complicated:
\ooalign{\S\cr \hfil \raise.43ex \hbox to0pt{\pdfliteral{q .2 0 0 .2 0 0 cm}\hss\bf B\hss\pdfliteral{Q}}\hfil\cr}– wipet May 13 '15 at 20:40 -
1
It requires a bit / lot of manual adjusting, but I am using this one since, well, forever:
\def\RGtti{R\kern-0.3em\raise-0.6ex\hbox{G}\kern-0.1em\hbox{tti}}
...and I have a fully-linked version too (more manual adjusting)...
\def\RGttiC{\hbox{\strut R\kern-0.3em\raise-0.6ex\hbox{G}\kern-0.15em%
\hbox{t\kern-0.08em t\kern-0.05em i}%
\kern-0.7em\raise0.935ex\hbox{\vrule height 0.07ex depth 0pt width 0.5em}%
\vrule height 0pt depth 0pt width 0.2em}
}
- 40,848
- 3
- 64
- 125

tex\latex\base\latex.ltxsearch for\LaTeX– touhami May 13 '15 at 19:02texdef -t latex TeX LaTeX– Sean Allred May 13 '15 at 19:08[fun]tag? – barbara beeton May 13 '15 at 20:37