我想找到一种在 pdfLaTeX 中生成首字母大写(几行高的大首字母)的方法。我知道有一个包在与+dropping
一起使用时效果很好。然而,当与结果一起使用时看起来很难看。latex
dvips
pdflatex
我的源文件是:
\documentclass[12pt]{article}
% for pdflatex file.tex # dropping is ugly
% \usepackage[pdftex]{graphicx}
% \usepackage[pdftex]{dropping}
% for latex file.tex ; dvips -T 12cm,8cm file.dvi # dropping is OK
\usepackage[dvips]{graphicx}
\usepackage{dropping}
\usepackage[papersize={12cm,8cm},
left=0.5cm,right=0.5cm,
top=0.5cm,bottom=0.5cm]{geometry}
\begin{document}
\dropping[-3pt]{3}{W}ith a drop cap, the initial sits within the margins and
runs several lines deep into the paragraph, pushing some normal-sized text off
these lines. This keeps the left and top margins of the paragraph flush.
In~modern browsers, this can be done with a combination of HTML and CSS
by~using the float: left; setting.
\end{document}
当我将其编译为
latex drop.tex && dvips -T 12cm,8cm drop.dvi
结果没问题:
当我取消注释[pdftex]
行并将其编译为
pdflatex drop.tex
结果是:
谁能建议一种更好的方法来制作首字下沉pdflatex
?