我正在尝试用突出显示的文本呈现我的审稿人回复。我使用的是 IEEE 双栏格式的 soul 包。问题是,文本超出了栏边距。有没有人有过同样的经历并解决了这个问题?
\documentclass{ieeeaccess}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{mathptmx}
\usepackage{multirow}
\usepackage{enumerate}
\usepackage{cite}
\usepackage{color,soul}
\sethlcolor{yellow}
% \renewcommand\hl[1]{#1}
\begin{document}
\hl{We select three linear paths $(\eta_{h}=5.5477~m$, $\eta_{k}=2.234~m$, $\eta_{c}=1.1~m)$ and
five angular paths $(\Omega_k \in \{0,\frac{\pi}{6},\frac{\pi}{4},\frac{\pi}{3},\frac{\pi}
{2},\frac{2\pi}{3},\frac{3\pi}{4},\frac{5\pi}{6},\pi\}~rad)$ inside the applicable range of the machine. This is a dummy text I am using to show the double margin.I guess you understand it.}
\EOD
\end{document}
答案1
问题在于数学术语和括号内内容的长度。您需要手动将其分解:
\documentclass{ieeeaccess}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{mathptmx}
\usepackage{multirow}
\usepackage{enumerate}
\usepackage{cite}
\usepackage{color,soul}
\sethlcolor{yellow}
\begin{document}
\hl{We select three linear paths $(\eta_{h}=5.5477~m$, $\eta_{k}=2.234~m$, $\eta_{c}=1.1~m)$ and
five angular paths $(\Omega_k \in \{0,\frac{\pi}{6}, \frac{\pi}{4},\frac{\pi}{3},\frac{\pi}
{2},\frac{2\pi}{3},$ \\ $\frac{3\pi}{4},\frac{5\pi}{6},\pi\}~rad)$ inside the applicable range of the machine. This is a dummy text I am using to show the double margin.I guess you understand it.}
\EOD
\end{document}
或者你只写更长/更短的文本,这样数学文本就不需要放在不同的行中:
\documentclass{ieeeaccess}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{mathptmx}
\usepackage{multirow}
\usepackage{enumerate}
\usepackage{cite}
\usepackage{color,soul}
\sethlcolor{yellow}
\begin{document}
\hl{We select three linear paths $(\eta_{h}=5.5477~m$, $\eta_{k}=2.234~m$, $\eta_{c}=1.1~m)$ and
of course we also selected five angular paths $(\Omega_k \in \{0,\frac{\pi}{6}, \frac{\pi}{4},\frac{\pi}{3},\frac{\pi}
{2},\frac{2\pi}{3}, \frac{3\pi}{4},\frac{5\pi}{6},\pi\}~rad)$ inside the applicable range of the machine. This is a dummy text I am using to show the double margin.I guess you understand it.}
\EOD
\end{document}