Adding Black Squares & Line Numbers in LaTeX Equations

  • Context: LaTeX 
  • Thread starter Thread starter maverick280857
  • Start date Start date
  • Tags Tags
    Latex Tag
Click For Summary
SUMMARY

To add a black square before equations and include line numbers in LaTeX, use the \blacksquare command along with the amssymb package. The package must be included at the beginning of the document with \usepackage{amssymb}. For specific equations, utilize the \begin{equation} environment to position the black square on the left while ensuring the equation number appears correctly on the right side. This method is essential for formatting key results in academic papers.

PREREQUISITES
  • Familiarity with LaTeX document preparation
  • Understanding of LaTeX packages, specifically amssymb
  • Knowledge of the \begin{equation} environment in LaTeX
  • Basic command usage in LaTeX for symbols
NEXT STEPS
  • Research how to customize LaTeX environments for specific formatting
  • Learn more about the amssymb package and its features
  • Explore advanced LaTeX commands for equation formatting
  • Investigate methods for conditional formatting in LaTeX documents
USEFUL FOR

Students, researchers, and academics who need to format equations in LaTeX, particularly those requiring specific symbols and numbering for term papers or publications.

maverick280857
Messages
1,774
Reaction score
5
Hi everyone,

I BADLY BADLY need to place a \blacksquare before my equations AND also have line numbers, as shown in the sample attachment.

Someone please let me know how this can be done. My term paper is due in 2 hours!

Thanks,
Vivek
 

Attachments

  • tag.jpg
    tag.jpg
    5.5 KB · Views: 656
Physics news on Phys.org


\blacksquare

is the command


and you need the package amssymb called at the start.
\usepackage{amssymb}
 
Yes, I knew the command (as stated in my post) and the package. But as I said, I needed to place the blacksquare on the left of the equation, and also simultaneously display the correct equation number on the right hand side. Oh and I forgot to mention that I had to do this only for a few equations (the key results).

Thanks anyway.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 0 ·
Replies
0
Views
6K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K