平均能量损失
\documentclass[a4paper,twocolumn,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[turkish]{babel}
\usepackage[listings,skins,breakable]{tcolorbox}
\usepackage[color]{changebar}
\newcommand{\rect}[2]{\begin{tcolorbox}[enhanced jigsaw,breakable,left=0mm,right=0mm,bottom=0mm,top=0mm,colback=red!5!white,colframe=red!75!black,pad at break=1mm,]{#1}
\textit{\begin{flushright}{#2}\end{flushright}}\end{tcolorbox}}
\begin{document}
\rect{Picture is
\begin{center}\shorthandoff{=}
\includegraphics{cap.pdf}
\end{center}}{capacitor.}
\end{document}
有谁知道如何修理它?
答案1
这样就没有空间了。但这不是定义包装盒的方法。但由于我不知道你到底想要什么,所以我无法做得更好。
\documentclass[a4paper,twocolumn,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[turkish]{babel}
\usepackage[listings,skins,breakable]{tcolorbox}
\usepackage[color]{changebar}
\newcommand{\rect}[2]{\begin{tcolorbox}[enhanced jigsaw,breakable,left=0mm,right=0mm,bottom=0mm,top=0mm,colback=red!5!white,
colframe=red!75!black,pad at break=1mm,]
#1\par\raggedleft \textit{#2}\end{tcolorbox}}
\shorthandoff{=}
\begin{document}
\rect{Picture is
\begingroup\par\centering
\includegraphics{logo}
\par
\endgroup
}{capacitor.}
\end{document}