TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

Surely this is easy, but I'm just beginning.

I've created a font and I want to change "My Words Here" without modifying the document font for the rest of the page. I'm sure I just have the syntax wrong. How do I fix it?


\textsc{My Words Here}
share|improve this question

marked as duplicate by doncherry, lockstep, Alan Munn, Jubobs, Stefan Kottwitz Nov 27 '13 at 23:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Why did you use those tags? If gregorio is involved, your example should mention it; the first line means nothing. – egreg Nov 27 '13 at 22:58
Sorry - I just realized those tokens and then I saw your comment. I use a script to replace them. I'll remove them. – bgmCoder Nov 27 '13 at 23:04
up vote 4 down vote accepted

Just confine the font change in the environment. Note that Gentium doesn't provide small caps.



This is in the normal font
This is in the Gentium font
and back in the normal font.

enter image description here

share|improve this answer
Thanks, egreg - that' just what I wanted. – bgmCoder Nov 27 '13 at 23:29

A (probably) general LaTeX solution:

  \fontsize{22}{25}% % about \huge
{\BGMfont My Words Here}

Without an illustration of the result, of course, because it is an answer for the first version of your question, when the name of the font was not known.

share|improve this answer

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