Tag Info

4

A basic option would seem to create a new proof-like environment: \newenvironment{claimproof}[1][\proofname] {% \proof[#1]% \renewcommand*\qedsymbol{‌​$\square$ (claim)}% } {% \endproof% }

4

If you'd like to stick with a tabular, you can do so by using a paragraphy style column: \begin{tabular}{p{.5\textwidth}c} Here's a complete MWE. % arara: pdflatex \documentclass{beamer} \begin{document} \begin{frame} \begin{tabular}{p{.5\textwidth}c} \begin{theorem}theorem here \end{theorem} & picture here \end{tabular} ...

6

You could place the theorem and the picture in separate, side-by=side minipage environments: \RequirePackage[demo]{graphicx} % just for this example \documentclass{beamer} \begin{document} \begin{frame}{A theorem and a picture, side-by-side} \begin{minipage}{0.48\textwidth} \begin{theorem}theorem here\end{theorem} \end{minipage} \hspace*{\fill} % spacing ...

0

If you want the numbering of your theorems to go back to zero whenever you enter a new section in your document, you should use this option in the \newboxedtheorem macro: thcounter=section Just add it along with the color options. Then, you can do: \renewcommand{\themycounter}{\arabic{section}.\arabic{mycounter}}

2


4

If you would like to have the \S as a feature of the section number everywhere else that it occurs (such as cross-references), then you can define \thesection to contain a \S symbol first, and then define \thetheorem, etc. to remove this symbol as a part of creating the theorem number. Preamble. Consider the following minimal preamble: ...

6

Load the package titlesec and add this line to your preamble: \titleformat{\section}{\normalfont\Large\bfseries}{\S\thesection}{1em}{}[] MWE: \documentclass{article} \usepackage{titlesec} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{defn}[theorem]{Definition} ...

0

I got the same (space to the right of the theorem head only when using RTL: \setdefaultlanguage[locale=morocco]{arabic}). However, I think this problem is related to mdframed.. because the problem disappears when using framed and ntheorem. \documentclass[12pt,a4paper]{book} \usepackage[x11names]{xcolor} \usepackage{amssymb} \usepackage{framed} ...

2

This one is subtle, and I don’t really understand why it happens yet. Unfortunately I’m tired and still have a lot to do before tomorrow morning, so I don’t have time to work out it out tonight, but I do have a fix. If you remove the lines setting the document text to Arabic: \usepackage{polyglossia} \setdefaultlanguage[locale=morocco]{arabic} ...

1

This seems to work but will presumably have unwanted side-effects so I doubt this is really a solution. I would wait to see alexwlchan's solution which will likely be better: \documentclass{book} \usepackage[framemethod=tikz]{mdframed} \usepackage{amsmath, amssymb} \usepackage{polyglossia} \setdefaultlanguage[locale=morocco]{arabic} \setmainfont{Times New ...

9

If you want your three types of theorem to share the same counter you have to use: \newtheorem{uncertainty}{Hypothesis} \newtheorem{svo}[uncertainty]{Hypothesis} \newtheorem{uncertaintytype}[uncertainty]{Hypothesis} Note the optional argument that contains the counter uncertainty MWE: \documentclass[12pt]{article} \usepackage{amsthm} ...

6

As you see from the original definition, proof from amsthm typesets its title as the argument for \item and this prevents line breaking; you can change this by redefining proof: \documentclass{scrartcl} \usepackage{amsthm} \makeatletter \renewenvironment{proof}[1][\proofname]{\par \pushQED{\qed}% \normalfont \topsep6\p@\@plus6\p@\relax \trivlist ...

5

This is an attempt based on your example. I used the theorem hooks defined by thmtools to override the format for thmlisti in the current environment: \addtotheorempostheadhook[thm]{\crefalias{thmlisti}{thm}} \addtotheorempostheadhook[lem]{\crefalias{thmlisti}{lem}} I cannot promise that it won't break anything, for example if you use a thmlist without ...

4

Here's a solution. Define a new list lemlist \newlist{lemlist}{enumerate}{1} \setlist[lemlist]{label=(\roman{lemlisti}), ref=\thethm.(\roman{lemlisti}),noitemsep} and use this one inside lem. Then, declare \Crefname{thmlisti}{Theorem}{Theorems} \Crefname{lemlisti}{Lemma}{Lemmas} and you will be able to avoid the optional argument for \labels. MWE: ...

0

With the ntheorem package, you use a theoremstyle, that describes the general layout, and specify font characteristics, numbering, position of margin, separator, endtheorem mark, &c. A specification is valid for all subsequently declared "new theorems", until another specification replaces it. You can define new theoremstyles, either with the own syntax ...

4

If you are using amsthm, you can declare a new theorem style using \newtheoremstyle: \documentclass{article} \usepackage{amsthm} \newtheoremstyle{mystyle} {\topsep}% {\topsep}% {\itshape}% {}% {\bfseries} {.} {.5em}% {\thmname{#1}~\thmnumber{#2}\thmnote{ (#3)}}% \theoremstyle{mystyle} \newtheorem{theorem}{Theorem} \begin{document} ...

12

Use the \emph command to emphasize a word. Normally, this will italicize the word, but if you are already in italics mode, it will do the opposite.

0

use I want \textup{this} word to be non-italic.

3

If you only want to know the current value of the theorem counter you can also use \the\value{theorem} If you want to add a number to this value, you can use the construct \the\numexpr<calculation>\relax For example, to add 1 to that value \the\numexpr\the\value{theorem}+1\relax Here's a MWE: \documentclass{book} ...

1

If you don't want to make a reference to a theorem, but just the number of the upcoming theorem, say \number\value{theorem} at the position you want to have it. (This solution assumes that theorem is the counter responsible for the theorem environment.) Changing the output of \ref can be done with varioref package, as stated by user tohecz before. If ...

0