像 \empheq 一样使用 \parbox

像 \empheq 一样使用 \parbox
MWE

\documentclass[a4paper]{article} 
\usepackage{geometry}
\usepackage[svgnames]{xcolor}
\usepackage[listings,skins,breakable,hooks,most]{tcolorbox}
\usepackage{empheq}
\usepackage[color]{changebar}
\usepackage{soul}

\newcommand\A{True choice is \textbf{A}.}

\newcommand*\mybox[1]{%
\colorbox{yellow}{\hspace{1em}#1\hspace{1em}}}

\newcommand{\denk}[1]{\begin{empheq}[box=\mybox]{align}{\textnormal{#1}\nonumber}\end{empheq}}

\newcommand{\hlc}[2][yellow]{\sethlcolor{#1} \hl{#2}}

\newcommand*\lng[1]{%
\colorbox{yellow}{\parbox{\dimexpr\textwidth-2\fboxsep}{\hspace{1em}#1\hspace{1em}}}}

\newcommand{\kutu}[2]{%
\abovedisplayskip=0pt
\begin{tcolorbox}[%
    %oversize,
    %halign=center,
    enhanced jigsaw,
    breakable, left=0mm,
    right=0mm,bottom=0mm,top=0mm,
    colback=red!5!white,
    colframe=red!75!black,
    pad at break=1mm]
    #1%
    \begin{flushright}
        \textit{#2}
    \end{flushright}
\end{tcolorbox}
}

\begin{document}
\twocolumn

Single line, good.
\kutu{\denk{International Telecommunication Union}}{\A}

Long sentence, bad. Overflowing
\kutu{\denk{European Conference of Postal and Telecommunications Administrations}}{\A}

Highlight, bad.
\kutu{\hlc{European Conference of Postal and Telecommunications Administrations}}{\A}

Parbox, not bad.
\kutu{\lng{European Conference of Postal and Telecommunications Administrations}}{\A}

\end{document}

并输出

在此处输入图片描述

我真正想做的是

在此处输入图片描述

我的意思是,我想使用\parbox\hlc,但我希望垂直距离与包中的相同\empheq,并且从右侧到左侧的垂直距离相同\1em。我希望我能正确写出我的问题。

相关内容