
次のコードには、lettrine を含む 2 つの段落があります。なぜ形式が異なるのでしょうか。2 番目の段落には目的のコード (構成コマンドを含む) がありますが、目的の出力を生成するのは最初の段落だけです (ただし、使用するたびに長いコマンドの文字列を追加する必要があります)。
なぜこのようなことが起こるのでしょうか? 2 番目の段落の設定方法で、希望する出力を得たいと思います。 ご協力をよろしくお願いします。 (texlive 2014 に含まれている lettrine ver1.64 を使用しています)
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{lettrine}
\LettrineOptionsFor{W}{lines=3,lhang=0.070,findent=.40em,nindent=-0.3em,slope=-0.40em}
\setcounter{DefaultLines}{3}
\begin{document}
\lettrine[lines=3,lhang=0.070,findent=.40em,nindent=-0.3em,slope=-0.40em]{W}{\rm
hat}
are interactions? At the start of this volume, when we summarized\linebreak
hat relates the Planck units to relativity and to quantum theory,\linebreak e
pointed out that the nature of interactions at Planck scales was still in the
dark. In this chapter ...
\lettrine{W}{\rm hat} are interactions? At the start of this volume, when we
summarized\linebreak hat relates the Planck units to relativity and to quantum
theory,\linebreak e pointed out that the nature of interactions at Planck
scales was still in the dark. In this chapter ...
\end{document}
答え1
行を追加する必要があります
\LettrineOptionsFor{W}{lines=3,lhang=0.070,findent=.40em,nindent=-0.3em,slope=-0.40em}
設定ファイル(W.cfl
例えば)で
\renewcommand{\DefaultOptionsFile}{W.cfl}
次の操作を実行できます:
\usepackage{filecontents}
\begin{filecontents}{W.cfl}
\LettrineOptionsFor{W}{lines=3,lhang=0.070,findent=.40em,nindent=-0.3em,slope=-0.40em}
\end{filecontents}
\renewcommand{\DefaultOptionsFile}{W.cfl}
texファイルで、 ( 、\rm
などの2文字フォント変更コマンド)は非推奨であることにも注意してください。この効果を得るには、\bf
\it
\renewcommand{\LettrineTextFont}{\normalfont}
あなたの序文に。
コード:
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{lettrine}
\usepackage{filecontents}
\begin{filecontents}{W.cfl}
\LettrineOptionsFor{W}{lines=3,lhang=0.070,findent=.40em,nindent=-0.3em,slope=-0.40em}
\end{filecontents}
\renewcommand{\DefaultOptionsFile}{W.cfl}
\renewcommand{\LettrineTextFont}{\normalfont}
\begin{document}
\lettrine[lines=3,lhang=0.070,findent=.40em,nindent=-0.3em,slope=-0.40em]{W}{hat}
are interactions? At the start of this volume, when we summarized\linebreak
hat relates the Planck units to relativity and to quantum theory,\linebreak e
pointed out that the nature of interactions at Planck scales was still in the
dark. In this chapter ...
\lettrine{W}{hat} are interactions? At the start of this volume, when we
summarized\linebreak hat relates the Planck units to relativity and to quantum
theory,\linebreak e pointed out that the nature of interactions at Planck
scales was still in the dark. In this chapter ...
\end{document}