Fonts & Character SetsSeveral Fonts in one Document

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Several Fonts in one Document

Post by Cham »

I'm trying to use the Vicentino font, using a command like the one below, but it doesn't work.

Code: Select all

\newcommand*{\poemstyle}{\usefont{OT1}{??}{m}{n}\selectfont}
How can I use the \modernscriptshape version?

I'm a total newbie with fonts in LaTeX. :oops:
Last edited by Cham on Sat Jul 13, 2013 5:39 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Several Fonts in one Document

Post by localghost »

The mentioned page of the font catalogue shows you exactly what to do.
  • Load the corresponding package.
  • Use the \modernscriptshape command at the concerned places.
You will probably need the necessary files.


Thorsten
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Several Fonts in one Document

Post by Cham »

Sorry, but it's really cryptic to me. This is so complicated, I don't understand anything at all here!

EDIT: The problem is as soon as I add

Code: Select all

\usepackage{vicent}
\usepackage[OT1]{fontenc}
I'm getting an error message (can't compile). If I remove the second line, then all the document is messed up.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Several Fonts in one Document

Post by Cham »

I'm about to throw the computer through the window! I'm unable to make this font to work (or any other one)! :cry:

Please, what should be the right command to use a new font in a document?

I need some specific examples of the uses of the following command :

Code: Select all

\newcommand*{\poemstyle}{\usefont{??}{??}{??}{??}\selectfont}
What should be the four entries, for the Vicentino \modernscriptshape?
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Several Fonts in one Document

Post by Cham »

Here's a working code to play with:

Code: Select all

\documentclass[12pt,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{lipsum}
\usepackage{epigraph}
\setlength{\epigraphrule}{0pt}
\newcommand*{\chapterpoem}{\usefont{T1}{qzc}{m}{n}\selectfont}
\newcommand{\epig}[2]{\epigraphhead[70]{\epigraph{\chapterpoem{#1}}{\chapterpoem\textit{#2}}}}

\begin{document}

\chapter{Test chapter one}
\epig{This is just a simple test sample.}{A pigeon}

\lipsum[1-4]
\end{document}
For "Zapf Chancery", it's working. But how should we change that font to use the Vicentino family (\modernscriptshape), if we suppose it's already installed in the LaTeX system ?

Or what "standard" (preinstalled with the TeX distribution) stylized font would you suggest instead of Chancery/Vicentino, for small poems in a math book ?
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Re: How to use several font families in the same document ?

Post by Cham »

Nobody has a suggestion on my last query ?
ralfinho
Posts: 6
Joined: Fri Jan 04, 2013 12:15 pm

Re: Several Fonts in one Document

Post by ralfinho »

Hey Cham,

I have checked my MikTeX 2.9. There is no Vincentino installed. You have to install it yourself, like Lokalghost advised you. Go on his link necessary files. There you are advised what to do and you find the name of the fontfamily: vc, the command is: \usefont{OT1}{vc}{m}{n} . No \selectfont after \usefont command. But you must first install the font.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Several Fonts in one Document

Post by Cham »

What cursive fonts are installed by default, in pdfLaTeX, apart of Zapf Chancery and the math scripts ?
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Several Fonts in one Document

Post by Cham »

I just found the cursive package, which gives the ability to write text in a "cursive-like" manner.

Are there any other packages like this one ?
ralfinho
Posts: 6
Joined: Fri Jan 04, 2013 12:15 pm

Several Fonts in one Document

Post by ralfinho »

  1. {\fontfamily{qzc} \selectfont This is TeX Gyre Chorus}
    TeX Gyre Chorus is an enhanced Zapf Chancery
  2. in the preamble: \usepackage{calligra}
    in the document: {\calligra This is Calligra}
In the TeX Font Catalogue you'll find more fonts.
Last edited by cgnieder on Sat Jul 20, 2013 3:33 pm, edited 1 time in total.
Post Reply