我的 lettrine 出了问题。下面我向您展示问题所在:
如您所见,当我使用\begin{anything} blabla \end{anything}
此块后面的文本时,无需使用任何 Lettrine 即可缩进。我应该如何纠正这个问题?我没有发现任何与我相同的问题...
\RequirePackage{fix-cm}
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fullpage}
\usepackage{titlesec}
\usepackage{float}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[document]{ragged2e}
\usepackage[section]{placeins}
\usepackage{amsmath}
\usepackage[headheight=13.3338pt,top=1.5cm,bottom=1cm,margin=2.5cm]{geometry}
% Lettrine
\usepackage{lettrine}
\usepackage{oldgerm}
\usepackage{calligra}
\renewcommand{\LettrineFontHook}{\calligra}
% Image
\graphicspath{ {img/} }
% Mise en page
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\DefaultNindent}{0pt}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0.1pt}
\fancyfoot[C]{\textbf{page \thepage}}
\usepackage{wrapfig}
\usepackage{xcolor}
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\begin{document}
\maketitle
\section{Introduction}
\subsection{test}
\subsubsection{test}
\lettrine[lines=2, lhang=0.33, loversize=0.25, findent=1.0em]{M}{ea} culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
\\\\
Mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
\\ Mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
\begin{verbatim}
Mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
\end{verbatim}
Mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
\\ Mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
\end{document}
编辑:
下面是完全一样的,但这是我第一次在我的文档中使用 Lettrine,我在另一个文档上试过,没有出现问题,那么我的文档出了什么问题?我放了完全相同的包,为什么 \ 是错误的?在使用 \\ 之前: 使用 \\ 之后:
答案1
问题在于所有虚假的\\
\documentclass{article}
\usepackage{lettrine}
\begin{document}
\lettrine[lines=2, lhang=0.33, loversize=0.25, findent=1.0em]{M}{ea} culpa, mea culpa, mea culpa, mea culpa.
\\\\
Mea culpa, mea culpa.
\\ Mea culpa, mea culpa.
\begin{verbatim}
Mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
\end{verbatim}
Mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
\\ Mea culpa, mea culpa.
\end{document}
\documentclass{article}
\usepackage{lettrine}
\begin{document}
\lettrine[lines=2, lhang=0.33, loversize=0.25, findent=1.0em]{M}{ea} culpa, mea culpa, mea culpa, mea culpa.
Mea culpa, mea culpa.
Mea culpa, mea culpa.
\begin{verbatim}
Mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
\end{verbatim}
Mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa, mea culpa.
Mea culpa, mea culpa.
\end{document}
答案2
我想我已经找到了问题的答案,我复制了所有代码,并逐一修改了我使用的函数,这\justify
是问题所在,但是您是否知道如何在不使用的情况下证明\justify
其与冲突\lettrine
?