我花了很多时间寻找问题的解决方案,但没有找到任何简单或适合我的 Latex 水平的解决方案。问题看起来很简单,但对我来说很难执行。
问题是我无法让图像在 wraptext 环境旁边居中,它们似乎参考整个页面而不是文本宽度居中,即使使用 \textwidth 或 \linewidth 作为图片宽度的参考,使其相对于页面偏离中心居中也是困难的部分,方程式可以毫无问题地做到这一点。
我目前的尝试看起来是这样的,我也对我希望它如何出现做了说明。我尽量把它简化了,以下是代码的结果:
\documentclass[twoside,a4paper]{report}
\usepackage{tabularx}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{esvect}
\usepackage{wrapfig}
\usepackage[margin=1in,letterpaper]{geometry}
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}
\clearpage\subsection{Some section that gives headaches}\label{BFieldWireSegment}
\begin{wraptable}{r}{3.9cm}
\renewcommand{\arraystretch}{2}\linespread{0.9}
\footnotesize\vspace{-7.9mm}
\caption{Annotation and their explanations for the current loop}\label{AnnotationsCurrent}
\begin{tabularx}{\linewidth}{@{}l>{\arraybackslash}X@{}}
$I$ & One to maybe 5 lines in the small text-wrap environment, explanation of the symbol\\
$\vv{J}$ & Maybe a shorter line right here\\
$\vv{dl}$ & An even shorter one\\
$\mu_{0}$ & This section could be longer that the two previous ones but not the first\\
$\vv{B_n}$ & This one is about vector $\vv{B_n}$\\
$\vv{B_{\perp n}}$ & One more very very meaningful explanation about $\vv{B_{\perp n}}$ \\ $\vv{B_{\parallel n}}$ & is the parallel vector B\\
$\vv{R}$ & Text to fill the area showcasing my issue\\
$d$ & distance from center to the point $P_b$\\
$\vv{r}$ & is the vector from segment $n$ to $P_B$\\
$\hat{r}$ & is the unit vector
\end{tabularx}
\end{wraptable}
\blindtext
\begin{equation}
1/2=0.5
\end{equation}
\begin{figure}[ht]
\centering
\includegraphics[width=0.75\textwidth]{Images/TestImage.png}
\caption{Caption}
\label{fig:my_label}
\end{figure}
\blindtext
\end{document}