Tag Info

Hot answers tagged

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} ...


2

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

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}% ...


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

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 ...


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 ...


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, ...


1

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} ...



Only top voted, non community-wiki answers of a minimum length are eligible