如何在不改变列边距的情况下突出显示文本,IEEE 格式?

如何在不改变列边距的情况下突出显示文本,IEEE 格式?

我正在尝试用突出显示的文本呈现我的审稿人回复。我使用的是 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}

然后输出将如下所示。我想保留箭头所示的原始双列边距。当不应用突出显示时,文本会毫无问题地落在边距内。 在此处输入图片描述

它与 Article 类配合得很好(见下图) 在此处输入图片描述

答案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}

在此处输入图片描述

相关内容