柔和的大胆

柔和的大胆

考虑一下代码

\documentclass[12pt]{book}
\oddsidemargin 17pt \evensidemargin 18pt \topmargin 35pt \headheight 25pt \textheight 8.5in \textwidth 5.75in \headsep 40pt \marginparwidth 35pt
\usepackage[T1]{fontenc} 
\input GoudyIn.fd
\newcommand*\initfamily{\usefont{U}{GoudyIn}{xl}{n}}
\usepackage{lettrine}
\usepackage{color}
%\definecolor{olivegreen}{cmyk}{0.64,0,0.95,0.40}
\renewcommand{\LettrineFontHook}{\initfamily{}}
\setcounter{DefaultLines}{3}
\renewcommand{\DefaultLoversize}{.47}

\begin{document} 
\vspace*{35pt}
\Large

\lettrine{\color{blue}{A}}{\color{blue}dvertising is the art} of convincing people to spend money they don't have for something they don't need. ---\textit{Will Rogers}

\vskip 35pt

\lettrine{\color{blue}{A}}{\textbf{\color{blue}advertising is the art}} of convincing people to spend money they don't have for something they don't need. \textit{---Will Rogers}
\end{document}

产生

在此处输入图片描述

问题:在第一个引文中,我想加深字母后面的蓝色字母。但是,第二个案例中的做法似乎有点太过苛刻。我该如何调整蓝色文本的粗细,使其介于两种给定的蓝色色调之间?如果有多个引文,有没有办法全局指定这一点?

谢谢。

答案1

A对相关问题发表评论提到您可以使用包\textpdfrender中的pdfrender特定线宽。从排版上看,这可能不是最干净的,但如果您找不到定义了 SemiBold 的字体,它可能是一个选择。

\documentclass[12pt]{book}
\usepackage{pdfrender}
\oddsidemargin 17pt \evensidemargin 18pt \topmargin 35pt \headheight 25pt \textheight 8.5in \textwidth 5.75in \headsep 40pt \marginparwidth 35pt
\usepackage[T1]{fontenc} 
\input GoudyIn.fd
\newcommand*\initfamily{\usefont{U}{GoudyIn}{xl}{n}}
\usepackage{lettrine}
\usepackage{color}
%\definecolor{olivegreen}{cmyk}{0.64,0,0.95,0.40}
\renewcommand{\LettrineFontHook}{\initfamily{}}
\setcounter{DefaultLines}{3}
\renewcommand{\DefaultLoversize}{.47}

\begin{document} 
\vspace*{35pt}
\Large

\lettrine{\color{blue}{A}}{\color{blue}dvertising is the art} of convincing people to spend money they don't have for something they don't need. ---\textit{Will Rogers}

\vskip 35pt

\lettrine{\color{blue}{A}}{\color{blue}\textpdfrender{TextRenderingMode=2,LineWidth=0.1pt}{dvertising is the art}} of convincing people to spend money they don't have for something they don't need. ---\textit{Will Rogers}

\vskip 35pt

\lettrine{\color{blue}{A}}{\textbf{\color{blue}advertising is the art}} of convincing people to spend money they don't have for something they don't need. \textit{---Will Rogers}
\end{document}

在此处输入图片描述

相关内容