【发布时间】:2010-09-29 15:52:53
【问题描述】:
我想找到一种在 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 提出一种更好的制作首字下沉的方法?
【问题讨论】:
标签: pdf latex pdf-generation typography