Tag Info

Hot answers tagged

10

The \, do generate space (as you can see in your image) but it is vertical space: ...\kern 1.70374 ...\kern 1.70374 ...\kern 1.70374 ...\kern 1.70374 ...\kern 1.70374 ...\kern 1.70374 ...\kern 1.70374 ...\kern 1.70374 ...\glue(\parskip) 0.0 plus 1.0 ...\glue(\baselineskip) 2.0 ...\hbox(7.5+2.5)x345.0, glue set 225.66599fil ....\hbox(7.5+2.5)x67.92326 ...


10

There is no Czech dictionary provided along with the translator subpackage of Beamer, so you need to help it; the proof name is changed, because babel knows about \proofname. \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[czech]{babel} \uselanguage{Czech} \languagepath{Czech} \usetheme{Copenhagen} ...


8

If you have a single named theorem, the easiest way is \usepackage{amsthm} \newtheorem*{HBT}{Hairy Ball Theorem} so that \begin{HBT} There is no nonvanishing continuous tangent vector field on even dimensional $n$-spheres. \end{HBT} will produce what you want. If you have several named theorems, then a strategy similar to what you found will work: ...


5

Using ntheorem, you have the emptyand emptybreak theorem styles. The name is an optional argument. Here are 4 possibilities (I had to patch the empty style because it didn't accept a label separator): \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{MinionPro} ...


5

From \newtheorem* I guess you're using amsthm. Here's a way to do it: \documentclass{article} \usepackage{amsthm} \newtheorem*{assumption*}{\assumptionnumber} \providecommand{\assumptionnumber}{} \makeatletter \newenvironment{assumption}[2] {% \renewcommand{\assumptionnumber}{Assumption #1-$\mathcal{#2}$}% \begin{assumption*}% ...


4

You can use chngcntr package and do \usepackage{chngcntr} \counterwithin{equation}{Job} %% you can do this too because you defined it %% \counterwithin{figure}{Job} Full code: \documentclass[10pt,demo]{article} %%% remove demo \usepackage{graphicx, thmtools, lipsum, float} \declaretheorem{Job} \makeatletter \let\c@equation\c@figure ...


3

You need to know as with the first figure whether there are more figures to follow within the same environment, or not. Unfortunately, LaTeX is not able to perform that sort of “look ahead” on its own. Anyhow, you can use .aux-files to store the total number of figures within each Job-environment and process that very number at the beginning of each ...


3

Here's a suggestion similar to what you've already tried: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \newenvironment{myproposition} {\begin{equation} \begin{minipage}{0.90\linewidth} \itshape} {\end{minipage}%% \end{equation}} \usepackage{lipsum} \begin{document} For our second application, recall that if two ...


3

Something like that (based on tcolorbox)? You can remove the cleveref options, if you do not need or like them. \documentclass{report} \usepackage[most]{tcolorbox} \usepackage{lipsum,cleveref} \newtcbtheorem[auto counter,number within=chapter, crefname={definition}{definitions},Crefname={Definition}{Definitions}% only for cleveref ...


3

Adding a trailing optional argument will do: \mdtheorem[ style=mpdframe, style=wide, style=greyfr, style=wideln, ]{discuss}{Discuss Topic}[chapter] \mdtheorem[ style=mpdframe, style=wide, style=greyfr, style=sqzblw, style=wideln, ]{disc}{Discussion}[chapter] If you want to remove the chapter number (but I can't understand why), add ...


3

The visual separation is already provided by the vertical space before and after the environment. The fact it is a definition stands out also because of the missing indentation before “Definition” and the different weight/shape of the character used. This is a reason for not using spaced paragraphs, which make it difficult to distinguish between different ...


3

Here is another suggestion based on tcolorbox. The myproposition environment is provided numbered and additionally unnumbered using a star. Both variants are breakable. The example code repeats the number, if the propositons gets broken. Just remove the overlay middle and last key, if you do not want that. \documentclass{article} ...


2

The actual style that you want to update is the definition style (since you specify it), like so: \documentclass{amsart} \begin{document} \makeatletter \def\th@definition{ \thm@headfont{\itshape} % Heading font is italic \thm@notefont{} % Note is same as heading \itshape% Regular text is also italic } \makeatother \theoremstyle{definition} ...


2

Please always post complete small documents, not unusable fragments however like most latex counter constructs, \newtheorem{theo.a}{Proposition} defines theo.a to increment the counter before printing it so if you want to start at Proposition 42 then you just need \setcounter{theo.a}{41} \begin{theo.a} this is the proposition. \end{theo.a}


2

Another option, using mdframed this time: \documentclass{report} \usepackage{amsmath} \usepackage[framemethod=tikz]{mdframed} \usepackage{lipsum} \newcounter{defi} \numberwithin{defi}{chapter} \newmdenv[ settings={\refstepcounter{defi}}, singleextra={ \node[ overlay, inner xsep=0pt, anchor=south west, font=\bfseries ] at ...


1

If it is practicable for you, you can reset the figure counter in each theorem. Maybe, you want to redefine the theorem environment, to do this automatically, but I don't know, how to do this. One line per theorem should be OK. For your exact problem: I don't know, how LaTeX shall notify, if one or two figures are included in one theorem. I think, it is ...


1

Here I adapted the numberedblock package, and created a macro \proposition[]{}. The first optional argument is the label of the form [\plabel{}], and the mandatory argument is the proposition content. The \numblock macro adapted from numberedblock actually has its own counter, blocknum, which I slave to the equation counter. If you changed your mind and ...


1

Here's a solution that employs the capabilities of the ntheorem package. If you want the theorem's header separated from the body with, say, a "dot" (.), just add the instruction \theoremseparator{.} between the \theoremheaderfont and \newtheorem statements. \documentclass{article} \usepackage{ntheorem} \theoremheaderfont{\textit} ...


1

You can even use the cleveref and ntheorem (or amsthm) packages. Provided the \newtheoremdeclarations are writtenafter` cleveref loading, supposing for instance some_label refers a given theorem, you can write in your .tex file something like : According to \cref{some_label`}… and the result will be: According to theorem 2.1.4 … So not only the ...



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