但是,在创建新页面后,内联格式保持不变(应该重置):
我怎样才能重置那里的格式?
以下是代码:
\documentclass[11pt, a4paper]{article}
%Set packages to use
\usepackage[hidelinks]{hyperref}
\usepackage{geometry}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{marvosym}
\usepackage{soul}
\usepackage{wrapfig}
\usepackage{lipsum}
\usepackage{longtable}
\usepackage[table]{xcolor}
\usepackage{fancyhdr}
%Set commands to use
\geometry{left=3cm, right=3cm}
\renewcommand{\baselinestretch}{1.3}
\setlength{\parindent}{0em}
\begin{document}
\textbf{Dr. John Doe, President of blabla Inc.}
\begin{wrapfigure}{r}{0.45\textwidth}
\begin{center}
\includegraphics[width=0.38\textwidth]{shutterstock-651447943.png}
\end{center}
\end{wrapfigure}Test text Test textTest text Test textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest text
\newpage
\section{Test section}
\lipsum[1]
\end{document}
答案1
在里面wrapfig
手动的可选参数窄线数量描述,它控制窄线的数量。例如,您可以将其设置为 6,以仅覆盖带有 的部分的线wrapfigure
。
梅威瑟:
\documentclass[11pt, a4paper]{article}
\usepackage{geometry}
\usepackage{setspace}
\usepackage[demo]{graphicx}
\usepackage{wrapfig}
%Set commands to use
\geometry{left=3cm, right=3cm}
\renewcommand{\baselinestretch}{1.3}
\setlength{\parindent}{0em}
\begin{document}
\textbf{Dr. John Doe, President of blabla Inc.}
\begin{wrapfigure}{r}{0.45\textwidth}
\begin{center}
\includegraphics[width=0.38\textwidth]{shutterstock-651447943.png}
\end{center}
\end{wrapfigure}Test text Test textTest text Test textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest text
\section{Test section}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.
\section{With number of narrow lines}
\textbf{Dr. John Doe, President of blabla Inc.}
\begin{wrapfigure}[6]{r}{0.45\textwidth}
\begin{center}
\includegraphics[width=0.38\textwidth]{shutterstock-651447943.png}
\end{center}
\end{wrapfigure}Test text Test textTest text Test textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest textTest text
\section{Test section}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.
\end{document}
结果: