我想用中世纪的字体来格式化我儿子的诗——即哥特式纹理。以下代码不起作用。我需要做什么?
\documentclass[12pt,a4paper,article]{memoir} % for a short document
\usepackage{pgothic}
\usepackage[T1]{fontenc}
\pgothfamily
\newcommand{\attrib}[1]{%
\nopagebreak{\raggedleft\footnotesize #1\par}}
\begin{document}
\poemtitle{The Long Patrol}
\settowidth{\versewidth}{``Look out! Here comes the long patrol team!}
\begin{verse}[\versewidth]
Oh I'm a long patrol hare \\
Nothing do I fear \\
When rats see us they scream, \\
``Look out! Here comes the long patrol team! \\
The ferrets all run \\
To their Dad and Mum \\
The foxes and stoats\\
Clamber into sea rats' boats \\
Oh I'm a long patrol hare \\
Long patrol is what vermin fear! \\
\end{verse}
\attrib{Akira Sims}
\end{document}
谢谢 :)
答案1
之后\documentclass
,将接下来的三行代码替换为以下内容:
\usepackage{allpgoth}
\usepackage[T1]{fontenc}
LaTeX 将为您创建新的 Metafont——这是我们日常所见不到的。
您可以在 TeXLive 发行版的 下找到稀疏文档和示例。我通过查看子目录中的texmf-dist/doc/fonts/bookhands/
文件找到了这一点。allfont.tex
pgothic
答案2
移动\pgothfamily
后\begin{document}
包使字体可用,但不会使其成为默认字体。另一个答案显示了一个替代界面,显然确实使其成为默认界面。(或者你可以重新定义\defaultfamily
为pgoth