101

I'm looking after a macro to write the (La)TeX logo (with parentheses), i.e. something similar to \TeX, \LaTeX, but where the output includes ()'s.

11
  • Where exactly is the problem? Commented Feb 14, 2011 at 21:42
  • 4
    I think he wants a macro which writes "(La)TeX" in the same style like \TeX or \LaTeX. Commented Feb 14, 2011 at 21:46
  • 2
    If you want to have it output (L_A)T_EX with the braces (as in Martin's answer), could you please make your question clearer. I read it as the “TeX logo and LaTeX logo”.
    – Caramdir
    Commented Feb 14, 2011 at 21:47
  • 8
    It's usually referred to as \AllTeX
    – Joseph Wright
    Commented Feb 14, 2011 at 21:48
  • 5
    @Martin. tugboat package by Robin Fairbairns
    – Joseph Wright
    Commented Feb 14, 2011 at 22:04

3 Answers 3

119
\documentclass[twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage{tgpagella}
\usepackage{dtk-logos}% or use package holog

\begin{document}
\Large
\XeTeX    \\ \XeLaTeX  \\
\AmS      \\ \AmSLaTeX \\
\AMSLaTeX \\ \AmSTeX   \\
\AMSTEX   \\ \AMSTeX   \\
\BibTeX   \\ \LAMSTeX  \\
\LamSTeX  \\ \La       \\
\LaTeX    \\ \LaTeXTeX \\
\MF       \\ \MFun     \\
\MP       \\ \SLITEX   \\
\SLiTeX   
\newpage
\MakeIndex\\ \emTeX    \\
\PubliCTeX\\ \TeXXeT   \\
\TeXeT    \\ \WinEdt   \\
\LyX      \\ \exTeX    \\
\LaTeXe   \\ \PS       \\
\PiC      \\ \PiCTeX   \\
\NTS      \\ \eTeX     \\
\ExTeX    \\ \DANTE    \\
\ConTeXt  \\ \MiKTeX   

\end{document}

enter image description here

Just saw, that I have a bug for METAFUN ...


Here a second image which shows the commands and output side by side to make them easier to find. (Added by Martin Scharrer)

enter image description here

23
  • 1
    The TeX--XeT logo is wrong! It's supposed to have the second half in a flipped font (xbmc10), which is unfortunately not (yet) available as a well-hinted Type1 font. I intend to rectify this at some point, having armed myself with the Type 1 spec and the METAFONTbook. I believe this plan would work: (1) write some METAFONT code to output enough information ((l+r)/2 with an appropriate mode?) to locate the appropriate axis about which to flip each character in the AMS' CMBX10 Type1 font (2) write e.g. a fontforge script to actually flip the glyphs about these axes.
    – SamB
    Commented Feb 16, 2011 at 1:04
  • 8
    What about LuaTex and LuaLaTex?
    – RBerteig
    Commented Feb 22, 2011 at 7:19
  • 17
    What about iTeX?! Commented Feb 23, 2011 at 3:56
  • 2
    I'm missing a "Xe(La)TeX". Is there the "Xe" on its own? Commented Mar 24, 2011 at 18:05
  • 1
    @xport: LOL, and you should wrap it in an \mbox to keep the font change local and also enter horizontal mode. Commented Aug 13, 2011 at 11:10
31

The hologo package provides a long list of TeX related logos. They are used with \hologo{<name>} where <name> is the name of the respective logo:

\documentclass{article}

\usepackage{hologo}
\usepackage{longtable,array}

\begin{document}

Usage: \verb=\hologo{<name>}=

Example: \verb=\hologo{(La)TeX}= \hologo{(La)TeX}

Table of all possible names:

\def\hologoEntry#1#2#3{%
  #1&#2&\hologoLogoSetup{#1}{variant=#2}\hologo{#1}&#3\tabularnewline
}
\begin{longtable}{>{\ttfamily}l>{\ttfamily}lll}
  \rmfamily\bfseries{name} & \rmfamily\bfseries variant
  & \bfseries logo & \bfseries since\\
  \hline
  \endhead
  \hologoList
\end{longtable}

\end{document}

The following picture shows the available names for \hologo (the document produced with the code above):

enter image description here

2
  • I got errors using the doc and gmutils packages, but this did it for me! Thanks so much for your answer!
    – jvriesem
    Commented Nov 6, 2013 at 22:11
  • What about their boldface version?
    – Qaher
    Commented Jul 10, 2019 at 6:02
19

I coded the following macro based on the normal \LaTeX macro for the documentation of my new adjustbox package. The \textorpdfstring needs hyperref and is to ensure that it works in sectioning commands.

\def\LATeX{\texorpdfstring{(L\kern -.36em{\sbox \z@ T\vbox to\ht \z@ {\hbox {\check@mathfonts \fontsize \sf@size \z@ \math@fontsfalse \selectfont A}\vss }}\kern -.15em)\kern -.075em\TeX}{(La)TeX}}

without \texorpdfstring:

\def\LATeX{(L\kern -.36em{\sbox \z@ T\vbox to\ht \z@ {\hbox {\check@mathfonts \fontsize \sf@size \z@ \math@fontsfalse \selectfont A}\vss }}\kern -.15em)\kern -.075em\TeX}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .