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.
- 757,742
- 7,555
3 Answers
\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}

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)

-
1The 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)/2with an appropriate mode?) to locate the appropriate axis about which to flip each character in the AMS'CMBX10Type1 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
\textrmat the moment; this is not particularly easy on my eyes.) – SamB Feb 16 '11 at 01:12 -
8
-
17
-
2
-
-
@Herbet: How to fix the
MFuncontrol 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
\mboxto keep the font change local and also enter horizontal mode. – Martin Scharrer Aug 13 '11 at 11:10 -
-
With this code example, by
\DANTEI got the result of @MartinScharrer in caps, but not the one seen in the first picture. – Stefan Kottwitz Nov 06 '11 at 12:34 -
-
@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
xesearchby\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 withmanfnt, and that didn't have "P" or "S", so someone (i've forgotten who) extracted the logo letters and created thelogofonts. an extendedlogofont 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
\Lais not good; it should be the same as its height in "(La)TeX)". – barbara beeton Nov 04 '12 at 14:20 -
-
-
Currently the
dtklogospackages does not work anymore when compiling withlualatex:fontspeccomplains that it cannot find the fontDANTE. – Caramdir Aug 28 '14 at 21:01 -
-
-
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
dtklogosis obsolete nowadays. Please usedtk-logosinstead. – Jan Mar 11 '17 at 18:17
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&\hologoLogoSetup{#1}{variant=#2}\hologo{#1}\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):
- 70,814
- 66,645
-
I got errors using the
docandgmutilspackages, but this did it for me! Thanks so much for your answer! – jvriesem Nov 06 '13 at 22:11 -
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}
- 262,582

\LaTeX)? – Caramdir Feb 14 '11 at 21:43\TeXor\LaTeX. – Martin Scharrer Feb 14 '11 at 21:46(L_A)T_EXwith 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 Feb 14 '11 at 21:47\AllTeX– Joseph Wright Feb 14 '11 at 21:48\AllTeXwould include e.g. ConTeXt, woudn't it, while (La)TeX meansLaTeX and/or TeX. – Martin Scharrer Feb 14 '11 at 21:50\AllTeXis used by TUGBoat to mean 'all TeX formats', as I understand it, and typesets '(La)TeX)'. – Joseph Wright Feb 14 '11 at 21:59tugboatpackage by Robin Fairbairns – Joseph Wright Feb 14 '11 at 22:04\TeX. – Joseph Wright Aug 22 '12 at 06:50