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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I get the line to break in an equation like in the example below between starName=name and birthdate=1960.

Relational Algebra exmaple

$\Pi_{movieTitle} \sigma_{starName = name \wedge birthDate = 1960}(StarsIn \times MovieStar)$
share|improve this question
Welcome to TeX.SX! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Jubobs Mar 2 '14 at 17:34
up vote 2 down vote accepted
  (\mathtt{StarsIn} \times \mathtt{MovieStar}).$

enter image description here

share|improve this answer
Thank you Steven! – RSB Mar 2 '14 at 17:47

Here's a solution that uses the \substack macro of the amsmath package:

enter image description here

\usepackage{amsmath} % for \substack macro
\newcommand{\V}[1]{\texttt{#1}} % place argument in monospaced font
$\Pi_{\V{MovieTitle}} \ 
\sigma_{\substack{\V{StarName} = \V{name}\\ \wedge\V{BirthDate} = 1960}}\ (\V{StarsIn}\times \V{MovieStar})$
share|improve this answer

Your Answer


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.