Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am looking to create a vertical equal sign that might function similarly to an underbrace. I often use this symbol when taking notes on paper.

 (x+z) + (y+d) = 10
  ||      || 
  5       5

The alignment is not entirely perfect in this example but I believe the idea comes across.

share|improve this question
2  
You could also use \underbrace{..}_{{}=5}. –  Werner Mar 2 '13 at 9:46
    
@Werner Yes that's functional but I'd personally prefer it with no braces and a rotated equals sign. –  jp24 Mar 2 '13 at 9:49

1 Answer 1

up vote 8 down vote accepted

Here is another way of achieving this. You use the command \equalto{equation}{value}.

\documentclass{scrartcl}  

\usepackage{mathtools}

\newcommand{\verteq}{\rotatebox{90}{$\,=$}}
\newcommand{\equalto}[2]{\underset{\scriptstyle\overset{\mkern4mu\verteq}{#2}}{#1}}

\begin{document}

\[
    \equalto{(x + z)}{5} + \equalto{(y + d)}{5} = 10
\]

\end{document}

And this is the output:

enter image description here

As you can see, I added some spacing to the vertical equal manually (and some horizontal spacing to the \equalto command), of course, you can tweak both to get the exact output you want.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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