MHB Shade/Black a Square: Get Help from Peter

  • Thread starter Thread starter Math Amateur
  • Start date Start date
  • Tags Tags
    Square
AI Thread Summary
To mark the end of a proof in LaTeX with a shaded or black square, the \blacksquare command from the amssymb package is recommended. An alternative is to use \rule{1ex}{1ex} for a custom-sized square. To position the square at the end of a paragraph, one can use \hfill\$\blacksquare\$. The ntheorem package is suggested for managing theorem environments, but it requires specific options for compatibility and functionality. However, users should note that on the MathJax platform, additional packages cannot be loaded using the \usepackage command, limiting the use of these commands to local LaTeX editors rather than the forum itself.
Math Amateur
Gold Member
MHB
Messages
3,920
Reaction score
48
I recently posted a suggested proof to a theorem and wish to mark the finish of the proof with a filled-in or shaded/black square as some texts do ...

I typed in \square as a guess and got an unshaded square ... how to do get a shaded or black square?

Hope someone can help ...

Peter
 
Physics news on Phys.org
With your title I was thinking about Peano curves. :) I believe there's a \blacksquare command in LaTeX.
 
Fantini said:
With your title I was thinking about Peano curves. :) I believe there's a \blacksquare command in LaTeX.

Hi Fantini ... sadly, nothing so interesting ... :)

However ... ... thanks for your help ...

Peter
 
Yes, there is a math mode [m]\blacksquare[/m] command defined in the amssymb package, I believe. You can also use [m]\rule{1ex}{1ex}[/m], which creates a line with width and height 1ex. To put the mark at the end of the last line of a paragraph you can finish it with [m]\hfill\$\blacksquare\$[/m]. However, I recommend using the [m]ntheorem[/m] package, which defined various environments for theorems and proofs. It has some subtleties, though, so you should read the documentation. For example, enabling proof end marks requires package option [m][thmmarks][/m], and compatibility with [m]amsmath[/m] is achieved by option [m][amsmath][/m], for example,

\usepackage[amsmath,thmmarks]{ntheorem}

Another package for theorems is [m]amsthm[/m].
 
Evgeny.Makarov said:
Yes, there is a math mode [m]\blacksquare[/m] command defined in the amssymb package, I believe. You can also use [m]\rule{1ex}{1ex}[/m], which creates a line with width and height 1ex. To put the mark at the end of the last line of a paragraph you can finish it with [m]\hfill\$\blacksquare\$[/m]. However, I recommend using the [m]ntheorem[/m] package, which defined various environments for theorems and proofs. It has some subtleties, though, so you should read the documentation. For example, enabling proof end marks requires package option [m][thmmarks][/m], and compatibility with [m]amsmath[/m] is achieved by option [m][amsmath][/m], for example,

\usepackage[amsmath,thmmarks]{ntheorem}

Another package for theorems is [m]amsthm[/m].

Thanks Evgeny ...

Mind you, I think your solutions are a bit too sophisticated for me though :) ... however, probably good solutions for other users ...

Peter
 
Evgeny.Makarov said:
Yes, there is a math mode [m]\blacksquare[/m] command defined in the amssymb package, I believe. You can also use [m]\rule{1ex}{1ex}[/m], which creates a line with width and height 1ex. To put the mark at the end of the last line of a paragraph you can finish it with [m]\hfill\$\blacksquare\$[/m]. However, I recommend using the [m]ntheorem[/m] package, which defined various environments for theorems and proofs. It has some subtleties, though, so you should read the documentation. For example, enabling proof end marks requires package option [m][thmmarks][/m], and compatibility with [m]amsmath[/m] is achieved by option [m][amsmath][/m], for example,

\usepackage[amsmath,thmmarks]{ntheorem}

Another package for theorems is [m]amsthm[/m].

I think we use MATHJAX on this website. So, the main question coming in my mind is : Can we really use additional packages on this website with the \usepackage command?
 
phymat said:
I think we use MATHJAX on this website. So, the main question coming in my mind is : Can we really use additional packages on this website with the \usepackage command?

You are correct that we use Mathjax here. To answer your question, no, I do not believe so. We can add some extensions on the backend (and we have - the cancel command for example), but you can't load other packages simply by running \usepackage at the beginning of your $\LaTeX$.

My guess is that Evgeny.Makarov was giving Peter a way to do this in his own editor, not on MHB.
 
Back
Top