14

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!

Sean Allred
  • 27,421
pigeon
  • 189

5 Answers5

14

this requires xelatex

enter image description here

\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}
David Carlisle
  • 757,742
  • 1
    XD 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
14

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}

enter image description here

A.Ellett
  • 50,533
11

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
Sean Allred
  • 27,421
  • \meaning\TeX yes \meaning\LaTeX no – touhami May 13 '15 at 19:14
  • @touhami See edit – Sean Allred May 13 '15 at 19:17
  • Did you mean to forget your F? – A.Ellett May 13 '15 at 20:11
  • @A.Ellett I don't have an F. :) – Sean Allred May 13 '15 at 20:13
  • 3
    OMG.... I've been reading your name wrong for too too long. How embarassing. – A.Ellett May 13 '15 at 20:13
  • 1
    if 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 \LaTeX et al., look into ltugboat.cls. for a somewhat "simpler" (to comprehend) definition, see the plain tex tugboat.cmn (on ctan and in tex live). – barbara beeton May 13 '15 at 20:28
11

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}

enter image description here

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).

enter image description here

2

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

enter image description here

Rmano
  • 40,848
  • 3
  • 64
  • 125