# Tag Info

3

Another solution could be done with tcolorbox. This package provides commands \tcbstartrecording[file], \tcbstoprecording and \tcbinputrecording[file] which can serve as OP's \hidesolutions and \stophidesolutions. Any tcolorbox is divided into upper and lower parts. We can use the upper part as exercise and lower part as solution. Options savelowerto ...

2

The standard kernel's \newtheorem is somehow too basic. I'd suggest you to use either amsthm or ntheorem (by far, the most popular packages to deal with theorem-like structures). Here's one way to achieve the desired formatting using a new theorem style defined using the amsthm package: The code: \documentclass[10pt,a4paper]{article} ...

0

Paste this code in LyX local layout then click enable then apply then save: Style مثال Category MainText Margin Static LatexType Environment LatexName exarab NextNoIndent 1 LeftMargin MMM RightMargin MMM ParIndent MM ParSkip 0 ItemSep 0 ...

0

If you are using amsmath package, the default is for each newtheorem to be numbered separately. In your preamble, you should see something like \newtheorem{ABC}{DEF}[GHI] The ABC is the codename you use in the \begin command; and DEF is what is displayed (e.g. "Lemma"). GHI says how they should be numbered (chapter/section/subsection, etc.). If the lemmas ...

1

Assuming you're using a "basic" document class (such as article), you could proceed as follows: Load the ntheorem package and select a theorem style that inserts a line break after the header, use the chngcntr package to assure that the numbering of theorems starts afresh at each new section, and reset the low-level LaTeX paramaters \theenumi, ...

10

Hope this is what you're looking for. With the help of enumitem package, we can define the reference to an item to be \thethm (\Roman*) so to incorporate the theorem number. Note that you have to change \thethm to the counter you're using for your theorems. MWE: \documentclass{article} \usepackage{amsthm} \usepackage{enumitem} ...

1

in lyx preamble add: %%%%%%%%%%%%%%%%%%%%%%%% \usepackage{multicol} \usepackage{etoolbox}%إطار النظريات \usepackage{blindtext}% \usepackage[theorems,skins,breakable]{tcolorbox}% %% \newtcbtheorem[number within=section]{tdr}{theorems}% {overlay={},left=5pt,breakable,colback=blue!5,colframe=blue!35!black,fonttitle=\bfseries,title after break={Lemma ...

2

For reasons I don't understand, the note is typeset in a group. Anyway, the workaround is not pretty, because you need to specify headformat in all styles you define. \documentclass{amsbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{thmtools} \usepackage{etoolbox} \makeatletter % don't typeset the note in a group, so the punctuation ...

2

You can use headformat with \NAME, \NUMBER, \NOTE, and apply \normalfont if there is annotation: \documentclass{amsbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{thmtools} \declaretheoremstyle[ spaceabove=6pt plus 0pt minus 2pt, spacebelow=0pt plus 0pt minus 2pt, headfont=\bfseries, bodyfont=\normalfont, ...

2

Here's one way to do it: The code: \documentclass{beamer} \setbeamercolor*{thcolor}{fg=blue!60} \makeatletter \setbeamertemplate{theorem begin} {\usebeamercolor[fg]{thcolor}% for the heading {\bfseries\inserttheoremname~}% \ifx\inserttheoremaddition\@empty\else(\inserttheoremaddition)\ \fi% \hspace{.01em}\normalfont\usebeamercolor[fg]{thcolor}% ...

Top 50 recent answers are included