Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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. –  BGM Nov 27 '13 at 23:04

2 Answers 2

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. –  BGM 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.