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.

David Carlisle
  • 757,742
PHL
  • 7,555

3 Answers3

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

  • 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 Feb 16 '11 at 01:04
  • Oh, and I guess either someone has to add "U" to the "logo" family, or the METAFUN logo has to be in a different font? (The METAFUN manual appears to set it in \textrm at the moment; this is not particularly easy on my eyes.) – SamB Feb 16 '11 at 01:12
  • 8
    What about LuaTex and LuaLaTex? – RBerteig Feb 22 '11 at 07:19
  • 17
    What about iTeX?! – Richard Terrett Feb 23 '11 at 03:56
  • 2
    I'm missing a "Xe(La)TeX". Is there the "Xe" on its own? – Martin Scharrer Mar 24 '11 at 18:05
  • @Richard: You forgot its bell jingle. :) – night owl Jul 23 '11 at 23:23
  • @Herbet: How to fix the MFun control sequence? If that is not what SamB is talking about already. – night owl Jul 24 '11 at 00:57
  • 1
    @xport: LOL, and you should wrap it in an \mbox to keep the font change local and also enter horizontal mode. – Martin Scharrer Aug 13 '11 at 11:10
  • @Martin: I have not read TeXBook. :-) – Display Name Aug 13 '11 at 12:10
  • With this code example, by \DANTE I got the result of @MartinScharrer in caps, but not the one seen in the first picture. – Stefan Kottwitz Nov 06 '11 at 12:34
  • @Stefan Kottwitz: Do you have the dante font installed? –  Nov 06 '11 at 13:07
  • @Herbert: I guess not. Is it available on CTAN? A first glance did not show it to me. However, I would expect a warning instead of silently using a different font. – Stefan Kottwitz Nov 06 '11 at 13:15
  • Btw. the background: I just took a long text I wrote for the Web with a lot of TeX, LaTeX words in the body text, replacing all occurrences of logos using xesearch by \SearchList{logos}{\csname#1\endcsname}{TeX,LaTeX,eTeX,XeTeX,XeLaTeX,LuaTeX,LuaLaTeX,ConTeXt,DANTE,AMS,...} and \SearchList{acronyms}{\textsc{#1}}{TUG,CTAN,...}. – Stefan Kottwitz Nov 06 '11 at 13:20
  • @Herbert -- the "meta" logos are set with the font logo<size>, which contains only the letters necessary for "METAFONT" and "METAPOST". no "U" (and no lowercase either). the original "MF" logo was set with manfnt, and that didn't have "P" or "S", so someone (i've forgotten who) extracted the logo letters and created the logo fonts. an extended logo font could be created with the "U", but as far as i know, no one has done so yet. you might suggest it to taco. – barbara beeton Aug 21 '12 at 12:46
  • @Herbert -- i just noticed -- the height of the "A" in \La is not good; it should be the same as its height in "(La)TeX)". – barbara beeton Nov 04 '12 at 14:20
  • You are my hero. – Richard Dec 10 '12 at 15:19
  • \providecommand\TeXLive{\TeX{}Live} – PatrickT Feb 14 '14 at 11:33
  • Currently the dtklogos packages does not work anymore when compiling with lualatex: fontspec complains that it cannot find the font DANTE. – Caramdir Aug 28 '14 at 21:01
  • you need an open type version of the DANTE font. –  Aug 28 '14 at 22:01
  • @Herbert: That doesn't seem to be on ctan? – Caramdir Sep 01 '14 at 01:05
  • It seems almost all the logo macros have been removed in recent versions of dtklogos. I am using 2014/11/15 v2.2 and almost every logo in this answer's sample document fails with an "Undefined control sequence" error. – Psychonaut Jan 04 '16 at 11:59
  • @Caramdir the dtklogos is obsolete nowadays. Please use dtk-logos instead. – Jan Mar 11 '17 at 18:17
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

cgnieder
  • 66,645
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}
Martin Scharrer
  • 262,582