GeneralFont substitution warnings during compilation

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Font substitution warnings during compilation

Post by Johannes_B »

n indeed stands for normal, chancery (or better chorus) is a calligraphic font and does not exist as normal, but only in italics (it). LaTeX uses the next best font, as explained earlier.


WHat a good font for an epigraph is? Depends and it is your decision in the end. What might be ok for a childrens book might not be appropriate for a newspaper or a history book about the second world war.
But that is a design decision, i am the wrong person to ask here ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Recommended reading 2024:

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

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

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

Font substitution warnings during compilation

Post by Cham »

Ok then, how would you edit the previous epigraph code ? This one below ?

Code: Select all

\usepackage{epigraph}
\renewcommand{\textflush}{flushleft}
\setlength{\epigraphrule}{0pt}
\newcommand*{\chancery}{\usefont{T1}{qzc}{m}{it}\selectfont}
\newcommand{\epig}[2]{\epigraphhead[70]{\epigraph{\chancery{#1}}{\chancery{#2}}}}
Notice that I've removed some parts that appear to be useless.

I also would like to try this font, but I don't know how (just for the epigraphs) : http://www.tug.dk/FontCatalogue/vicentino/

I don't know how to edit the code above. When I tried the \modernscriptshape font, it doesn't work.

Or else, how do you use the Chorus font in that epigraph ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Font substitution warnings during compilation

Post by Stefan Kottwitz »

You need to load the package and to activate the required encoding:

Code: Select all

\usepackage{vicent}
\usepackage[OT1]{fontenc}
Encoding could be switched for that. Just, no T1 and no Type 1 doesn't seem to be so good.

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Font substitution warnings during compilation

Post by Cham »

Adding these two lines of code gives me a compilation error !
! LaTeX Error: File `vicent.sty' not found.
I guess that's because that font isn't part of my LaTeX standard installation, is that right ?
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Font substitution warnings during compilation

Post by Cham »

If I try this instead, it works, but it changes all my document globally, not just the epigraphs :

Code: Select all

\usepackage{tgchorus}
\usepackage[OT1]{fontenc}
The problem is to load a new font just for the epigraphs, without changing anything else.

Here's the MWE code again, to be edited to use the chorus font (just for the epigraphs) :

Code: Select all

\documentclass[12pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{epigraph}
\renewcommand{\textflush}{flushleft}
\setlength{\epigraphrule}{0pt}
\newcommand*{\chancery}{\usefont{T1}{qzc}{m}{it}\selectfont}
\newcommand{\epig}[2]{\epigraphhead[70]{\epigraph{\chancery{#1}}{\chancery{#2}}}}

\begin{document}
\chapter{test}

\epig{This is an epigraph}{John Doe}

\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Font substitution warnings during compilation

Post by Stefan Kottwitz »

Sure, you need to use the font locally, should work. I just cannot test right now.

Sober books have a certain set of fonts for some purposes, such as for body text, headings, emphasizing, code. I can imagine that epigraphs do emphasizing, but consistent with the rest of the document, so italic, and the default italic family should be defined.

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Font substitution warnings during compilation

Post by Cham »

I don't see how to edit the code above to use the Chorus font in the epigraphs alone.

I need a code example.

EDIT : My epigraphs aren't for emphasizing. They are just some amuzing citations or poems from a famous personn, before introducing a new subject.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Font substitution warnings during compilation

Post by Stefan Kottwitz »

Cham wrote:My epigraphs aren't for emphasizing.
Yes, I thought so. I said so before because I know often documents use a set of fonts, and choose from that set depending on the purpose. Such as italic for emphasizing, bold for headings, monospace for code, one font for each. So maybe not using some very different font locally, but choosing from the font family set.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Font substitution warnings during compilation

Post by Johannes_B »

Cham wrote:I don't see how to edit the code above to use the Chorus font in the epigraphs alone.

You are, you are just calling the switch chancery, which will be more than missleading and confusing in the future.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Font substitution warnings during compilation

Post by Cham »

Johannes_B wrote: You are, you are just calling the switch chancery, which will be more than missleading and confusing in the future.
Ok, I now understand :

You mean that "qzc" is already the "Chorus" font itself, and not "Chancery".
Post Reply