we all know \TeX produces the TeX logo and \LaTeX produces the LaTeX logo. But there seems no command like \BibTeX for producing the BibTeX logo, while Wikipedia adopts a complicated workaround: \mathrm{B{\scriptstyle{IB}} \! T\!_{\displaystyle E} \! X}. So is there no simple command? (I think Bib\TeX is no good because the case does not conform to the official one)
- 259,911
- 34
- 706
- 1,036
- 507
-
1Possible duplicate? See Herbert's answer to How to write (La)TeX (with braces) – Gonzalo Medina May 12 '11 at 22:51
-
Yes, you are right. That helps :) – Ziyuan May 13 '11 at 01:40
4 Answers
It used to be the case that the dtk-logos package provided commands such as `\BibTeX'. It is part of the dtk package.
\documentclass{article}
\usepackage{dtk-logos}
\begin{document}
\BibTeX % Doesn't work in TeXLive 2015
\end{document}
However, dtk-logos is still under development, and subject to change. A safer option is to use the hologo package.
\documentclass{article}
\usepackage{hologo}
\begin{document}
\hologo{BibTeX}
\end{document}
In fact, the current version of dtk-logos loads hologo, but I think it's probably best to load hologo directly, until development of dtk-logos is complete.
- 29,535
- 43,767
-
More complicated than I thought: {B\kern-.05em%\hbox{$\m@th$\csname S@\f@size\endcsname\fontsize\sf@size\z@\math@fontsfalse\selectfont I\kern-.025emB}\kern-.08em-\TeX} – Ziyuan May 13 '11 at 01:40
-
@Ian Thompson: the current versions of dtklogos no longer support this, you may want to update your answer. See mine below. – akim Mar 01 '16 at 06:53
-
@akim --- Thanks for pointing this out. I knew about the change, but had long since forgotten about this question. I've updated the answer. – Ian Thompson Mar 01 '16 at 10:25
FWIW, Oren Patashnik's original BibTeX documentation defines a \BibTeX command in the preamble of the corresponding .tex file:
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
The larger title version is hand-crafted like this:
\title{B\kern-.05em{\large I}\kern-.025em{\large B}\kern-.08em\TeX ing}
- 259,911
- 34
- 706
- 1,036
- 333
-
2Incidentally,
\rmand\scare deprecated. Use\textrmand\textscinstead. – Stephan Kolassa Oct 13 '16 at 09:55 -
1so for those who want to copy version of the original for latex2e:
\def\BibTeX{\textrm{B\kern-.05em\textsc{i\kern-.025em b}\kern-.08em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}– postylem Mar 12 '21 at 16:04
I don't think there's an official BibTeX logo. Usually I adopt \textsc{Bib}\TeX, but also \textsc{Bib}\negthinspace\TeX might be used. The $\mathrm{B\scriptstyle IB}\!$\TeX trick might be used if the font doesn't have small caps.
- 1,121,712
The version of dtklogos that I have (2014/11/15 v2.2) no longer defines \BibTeX, rather it loads the hologo package. The latter does not define \BibTeX, but \hologo{BibTeX}. Unfortunately, dtklogos did not install a backward compatible command for it.
\documentclass{standalone}
\usepackage{hologo}
\begin{document}
\hologo{BibTeX}
\end{document}
- 407
-
-
Really? At first I made this a comment of the accepted answer, but it seemed too hidden so I made it another answer. But editing the accepted answer felt uneasy/unethical... Is this really the preferred way? – akim Feb 29 '16 at 16:57
-
You can ask Ian to include it in his answer, according to his profile, he was online three hours ago. If you are sure he has seen it but ignored it, a new nswer is ok. Though editing would be ok as well. Many will have your answer at the very bottom and never scroll down to read it. – Johannes_B Feb 29 '16 at 17:10