4

How to put LaTeX symbol in a document with custom font set as default font?

I'm using Source Sans Pro as my default text font, when use \LaTeX to have its symbol, I get this:

enter image description here

which is very ugly!

  • 1
    Welcome to TeX.SX! Please help us (and also you) and add a minimal working example (MWE), that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass and ending with \end{document}. – Bobyandbob Jun 9 '17 at 8:03
  • Sans serif fonts as default text fonts are ugly. So is \LaTeX in such fonts. – Kola B. Jun 9 '17 at 8:09
6

Small example

\documentclass{memoir}

\usepackage[default]{sourcesanspro}

\begin{document}

\LaTeX

{\fontfamily{cmr}\selectfont \LaTeX}

\end{document}

produces:

The ouput of the above Latex code

see also: Switching back to Computer Modern within XeLaTeX

6

You can use the metalogo package:

\documentclass{article}
\usepackage[default]{sourcesanspro}
\usepackage{metalogo}

\begin{document}

{\fontfamily{cmr}\selectfont\LaTeX} % the original

\LaTeX % what you get normally

\setlogokern{La}{-.24em}
\setlogokern{aT}{-.05em}

\LaTeX

\end{document}

enter image description here

In the picture I set the standard result in Computer Modern, the default one gets with Source Sans Pro and finally the adjusted one.

When you're satisfied with the result, maybe changing also other parameters (check with the documentation of metalogo), you can transfer the settings in the document preamble, for instance

\documentclass{article}
\usepackage[default]{sourcesanspro}
\usepackage{metalogo}

\setlogokern{La}{-.24em}
\setlogokern{aT}{-.05em}

\begin{document}

\LaTeX

\end{document}
  • er, the "aT" could be just a bit tighter. and, if i'm "really" being fussy, the "E" could be a tad higher, so that a line drawn between the adjacent right angles of the "TE" is at a 45 degree angle. (look at the logo on the cover of the texbook.) the spacing adjustments are very font-dependent. – barbara beeton Jun 9 '17 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.