不久前,我想用LaTeX 字体目录但我当时没有足够的时间弄清楚如何操作。有没有简单的方法可以在段落开头插入其中一个首字下沉符号?
哎呀,大多数都没有\usepackage{foo}
如何使用它们,它们有类似
\input Carrickc.fd
\newcommand*\initfamily{\usefont{U}{Carrickc}{xl}{n}}
所以我甚至不确定我是否可以将它们与 LaTeX 一起使用。
答案1
\documentclass{article}
\usepackage{Carrickc,lettrine}
\renewcommand\LettrineFontHook{\Carrickcfamily}
\begin{document}
\lettrine{A}{s} any dedicated reader can clearly see, the Ideal of practical reason is a representation of, as far as I know, the things in themselves; as I have shown elsewhere, the phenomena should only be used as a canon for our understanding.
\end{document}
您需要 TeX Live 2015 或当前版本的 MikTeX 才能进行此操作或安装cfr 首字母手动。
请参阅该软件包的文档以获取使用initials
TeX Live 附带的字体的更多示例。(Carrickc 就是其中之一。)
下表显示了文档中针对各种首字母组合可用的命令:
答案2
这是使用该lettrine
包的一个示例。
\documentclass{article}
\usepackage[english]{babel}
\usepackage{graphicx, type1cm, lettrine}
\begin{document}
\lettrine[image=true, lines=3, findent=3pt, nindent=0pt]{L.png}{orem} ipsum
dolor sit amet, consectetur adipiscing elit. Nam vel dapibus ex, non lobortis
sem. Quisque in nunc id justo ultricies tempor vitae nec ante. Pellentesque
volutpat, dui sit amet euismod dictum, turpis velit ultrices nisi, vitae
porta tortor lacus ut turpis. Vestibulum venenatis libero in turpis
viverra ultricies. Nam consequat efficitur risus vel consectetur.
Quisque volutpat neque sit amet nisi dictum cursus. Integer fringilla
nisi ac risus luctus, vitae malesuada ligula fermentum. Aliquam ac erat
eget nulla gravida varius. In eu gravida nisi. Praesent dui urna,
pulvinar a lacus luctus, lacinia pharetra leo.
\lettrine[lines=3, findent=3pt, nindent=0pt]{L}{orem} ipsum dolor sit amet,
consectetur adipiscing elit. Nam vel dapibus ex, non lobortis sem. Quisque
in nunc id justo ultricies tempor vitae nec ante. Pellentesque volutpat,
dui sit amet euismod dictum, turpis velit ultrices nisi, vitae porta
tortor lacus ut turpis. Vestibulum venenatis libero in turpis viverra
ultricies. Nam consequat efficitur risus vel consectetur. Quisque volutpat
neque sit amet nisi dictum cursus. Integer fringilla nisi ac risus luctus,
vitae malesuada ligula fermentum. Aliquam ac erat eget nulla gravida
varius. In eu gravida nisi. Praesent dui urna, pulvinar a lacus luctus,
lacinia pharetra leo.
\end{document}
导致:
这是L.png
可以改变的,可以获得发光字母。