Wrapfig 包问题

Wrapfig 包问题

我能够让图像环绕我想要的文本(问题 15),但间距会延伸到下一组文本(问题 18),而我不希望它这样做。如何从问题 18 中删除大片文本空间?

\documentclass[11pt]{article}
\usepackage[english]{babel}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{wrapfig}
\begin{document}
\begin{wrapfigure}[10]{R}{0.25\textwidth} 
    \centering
    \includegraphics[width=0.32\textwidth]{15.png}
\end{wrapfigure}
\section*{Problem 15}
An airplane is flying at a height of $h=900$ft. while watching a target that is $70$ft tall ($H=70$ft.), as shown in the figure. The best view of the target is when $\theta$ is maximum. Write a MATLAB program, that determines the distance $x$ at which $\theta$ is maximum. Define a vector $x$ with elements ranging from $5-$ to $1500$ with spacing of $0.5$. Use this vector to calculate the corresponding values of $\theta$. Then use MATLAB's built-in function $max$ to find the value of $x$ that corresponds to the largest value of $\theta$.\\
\\
\section*{Problem 18}
The intrinsic electrical conductivity of $\sigma$ of a semiconductor can be approximated by:
$$
    \sigma = e^{C-\frac{E_g}{2kT}}
$$
Where $\sigma$ is measured in $(\Omega -m)^{-1}$, $E_g$ is the band gap energy, $k$ is Boltzmann's constant $(8.62\times 10^{-5} ev/K)$, and $T$ is temperature in kelvins. For Germanium, $C=13.83$ and $E_g=0.67ev$. Write a program in a script file that calculates the intrinsic electrical conductivity for Germanium for various temperatures. The Values of the temperature should be read from and xls spreadsheet suing the $xlsread$ command. The output should be presented as a table where the first column is the temperature and the second column is the intrinsic electrical conductivity. Use the following values for temperate: $400, 435, 475, 500, 520,$ and $545 K$.  
\end{document}

在此处输入图片描述

答案1

您会注意到,悬垂部分也会自动计算。由于 和section*\intertext因此\WFclear仍然需要。

你也可以看看\wrapspacer我为这个问题

\documentclass[11pt]{article}
\usepackage[english]{babel}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{wrapfig}
\begin{document}

\begin{wrapfigure}{R}{0.25\textwidth}
    \centering
    \includegraphics[width=0.32\textwidth]{example-image}
\end{wrapfigure}
\section*{Problem 15}
An airplane is flying at a height of $h=900$ft. while watching a target that is $70$ft tall ($H=70$ft.), as shown in the figure. The best view of the target is when $\theta$ is maximum. Write a MATLAB program, that determines the distance $x$ at which $\theta$ is maximum. Define a vector $x$ with elements ranging from $5-$ to $1500$ with spacing of $0.5$. Use this vector to calculate the corresponding values of $\theta$. Then use MATLAB's built-in function $max$ to find the value of $x$ that corresponds to the largest value of $\theta$.\WFclear

\section*{Problem 18}
The intrinsic electrical conductivity of $\sigma$ of a semiconductor can be approximated by:
\[
    \sigma = e^{C-\frac{E_g}{2kT}}
\]
Where $\sigma$ is measured in $(\Omega -m)^{-1}$, $E_g$ is the band gap energy, $k$ is Boltzmann's constant $(8.62\times 10^{-5} ev/K)$, and $T$ is temperature in kelvins. For Germanium, $C=13.83$ and $E_g=0.67ev$. Write a program in a script file that calculates the intrinsic electrical conductivity for Germanium for various temperatures. The Values of the temperature should be read from and xls spreadsheet suing the $xlsread$ command. The output should be presented as a table where the first column is the temperature and the second column is the intrinsic electrical conductivity. Use the following values for temperate: $400, 435, 475, 500, 520,$ and $545 K$.  
\end{document}

相关内容