Shade/Black a Square: Get Help from Peter

  • Context: MHB 
  • Thread starter Thread starter Math Amateur
  • Start date Start date
  • Tags Tags
    Square
Click For Summary
SUMMARY

The discussion centers on how to create a shaded or black square in LaTeX to denote the end of a proof. Users recommend using the \blacksquare command from the amssymb package and suggest alternatives like \rule{1ex}{1ex} for custom sizing. The ntheorem package is also highlighted for its theorem and proof environments, requiring specific options for compatibility with amsmath. The conversation clarifies that while MathJax is used on the forum, additional LaTeX packages cannot be loaded directly.

PREREQUISITES
  • Familiarity with LaTeX typesetting
  • Understanding of LaTeX packages such as amssymb and ntheorem
  • Knowledge of MathJax for rendering LaTeX in web environments
  • Basic understanding of theorem proof notation
NEXT STEPS
  • Research the amssymb package for additional mathematical symbols
  • Explore the ntheorem package documentation for advanced theorem formatting
  • Learn about customizing MathJax configurations for enhanced LaTeX support
  • Investigate alternative methods for creating custom symbols in LaTeX
USEFUL FOR

This discussion is beneficial for LaTeX users, mathematicians, and educators looking to enhance their document formatting, particularly in the context of proofs and mathematical notation.

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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
3K
Replies
4
Views
3K
Replies
2
Views
3K
Replies
2
Views
2K