我想在 lyx 的本地布局中添加此代码:
\usepackage{multicol}
\usepackage{etoolbox}%إطار النظريات
\usepackage{blindtext}%
\usepackage[theorems,skins,breakable]{tcolorbox}%
%%
\newtcbtheorem[number within=section]{tdr}{تدريب}%
{overlay={},left=5pt,breakable,colback=red!5,colframe=red!35!black,fonttitle=\bfseries,title after break={Lemma \csuse{the\tcbcounter} -- \raggedleft Continued}}{tdr}
我尝试了很多方法但无法解决这个问题。
此致
答案1
将此代码粘贴到 LyX 本地布局中,然后单击启用,再单击应用,然后保存:
Style مثال
Category MainText
Margin Static
LatexType Environment
LatexName exarab
NextNoIndent 1
LeftMargin MMM
RightMargin MMM
ParIndent MM
ParSkip 0
ItemSep 0
TopSep 0.5
BottomSep 0.5
ParSep 0
Align Block
AlignPossible Block, Left, Right, Center
Preamble
\usepackage{multicol}
\usepackage{etoolbox}%
\usepackage{blindtext}%
\usepackage[theorems,skins,breakable]{tcolorbox}%
\newtcbtheorem[number within=section]{exarab}{مثال}{breakable,overlay={ },colback=blue!5,colframe=blue!25!black,fonttitle=\bfseries,title after break={Proof \csuse{the\tcbcounter} -- \raggedleft Continued}}{exarab}
EndPreamble
End