Take the 2-minute tour ×
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.

I would like to make a package for a title/cover page which should use a predefined font, whereas the document in which the package is loaded and used (used by using a command that generates a new page) should use whatever font it wants.

How may I do that?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Font selection (family, shape or size) should be grouped to localize any changes. As reference, see Effect of changing \fontfamily and \familydefault.

Here's a mockup of using Bookman (pbk) for your title page, followed by regular Latin Modern (lmodern) for the remainder of the document:

enter image description here

\documentclass{article}
\usepackage{lmodern}% http://ctan.org/pkg/lm
\begin{document}
\thispagestyle{empty}
\vspace*{.4\textheight}
\begingroup
\centering
\fontfamily{pbk}\selectfont
{\Huge\bfseries My Title\par}
{\Large My Name\par}
\bigskip
\today\par
\endgroup
\newpage% End of title page

Here is some regular text in Latin Modern.
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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