I am looking for a large equals sign and a small equal sign.

If we use \textdblhyphen we get a small equals signs, but how can I simply "shrink" the usual = in LaTeX and "extend" the usual = just like the picture below?


enter image description here

2 Answers 2


You can use leaders, with some care when the required length is small.



      \hbox to #2{$\m@th#1=\hss=\hss=\hss=$}%
      \hbox to #2{$\m@th#1=\cleaders\hbox to 0.2\wd\z@{\hss$#1=$\hss}\hfil=$}%


$A\shorteq B$ $\scriptstyle A\shorteq B$

$A\longeq{2em}B$ $\scriptstyle A\longeq{1.6em}B$



In case of length reduction, the ends are less curved, with Computer Modern fonts that have rounded caps.

\shorteq reduces the width by half; \longeq requires a length.

enter image description here


You can try merging two equal signs:


joinrel equals

Or you can use leaders to extend this:

\def\varequals#1{\mathrel{\leaders\hbox to3pt{$=$\hss}\hskip#1=}}

leaders varequals

The use of this macro is \varequals{dimen} where dimen corresponds roughly to how much extra width you'd like your equal sign to have.

But neither of these allow you to shorten the equals sign. One solution to this that I can think of uses my package pdfMsym. This solution also doesn't have the drawback of the \leaders solution where the center may be more bold than the edges of the long equals sign.

% In your preamble
\input pdfmsym
\pdfmsymsetscalefactor{10} % Change 10 to be the font size you're using




pdfmsym varequals

\@Arrow@type creates a double stroked arrow and its parameters are, in order: its left and right lineheads, its length (this is relative to the current math style), and the height difference between the strokes. \@Linecap is simply a double stroked rounded line cap, whose height difference is 1.

The \@Arrow@type macro is not documented (but it should be).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.