Shade/Black a Square: Get Help from Peter

  • Context:
  • Thread starter Thread starter Math Amateur
  • Start date Start date
  • Tags Tags
    Square
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 3K views
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.