\rightline{\fbox{LEMA 2: $(a^m-1,a^n-1)=a^d-1$\newline onde, $d=(m,n)$}}
此命令生成此
我想将它传递onde d = (m, n)
到下面的行,但保持在框内...怎么做?
答案1
以下是一个建议tcolorbox
\documentclass{article}
\usepackage[most]{tcolorbox}
\tcbuselibrary{theorems}
\usepackage{hyperref}
\usepackage[noabbrev]{cleveref}
% adding examples to cleverref
\crefname{exa}{lemma}{lemma}%
\Crefname{exa}{Lemma}{Lemma}%
\tcbset{
theorem/.style args = {#1#2#3#4}{%
step and label = {#2}{#4},%
title = {\mbox{#1~\csname the#2\endcsname\ }#3:}}
}
\newcounter{exa}
\tcbmaketheorem{lemma}{Lemma}{
breakable,
colback = blue!10,
fonttitle = \bfseries,
}{exa}{ex}
\begin{document}
\begin{lemma}{To index the counter}{uniquename}
This is so your lemma will have the same counter 2.
\end{lemma}
\begin{lemma}{description or blank}{uniquename2}
\((a^m-1,a^n-1) = a^d-1\)\\
onde, \(d =(m,n)\)
\end{lemma}
\end{document}
\begin{lemma}{}{name}
第一个
{}
是描述,如果您愿意的话。可以留空。第二个
{name}
将允许您参考引理。此外,词干将以 1、2、3、.. 开头为您自行编制索引。
答案2
知道了
\rightline{\begin{tabular}{|l|}
\hline
LEMA 2: $(a^m-1,a^n-1)=a^d-1$\\
onde, $d=(m,n)$\\
\hline
\end{tabular}}