0

enter image description here

How do I write this in Latex. I don't want the figure. How do I write it in equation form

  • 2
    Welcome to the site! Have you tried anything? It would be good to see what you've tried! To get started, you might try, for example \[\left(\begin{array}{@{}c}line 1\\ line 2\end{array}\right)\] – cmhughes Apr 5 at 8:53
1

You can do that in several ways. One of the simplest uses the stackengine package:

\documentclass{article}
\usepackage{amsmath}
\usepackage[usestackEOL]{stackengine} 

\begin{document} 

\[ \left(\Centerstack{rate of mass\\accumulation}\right) = \left(\Centerstack{rate of \\ mass in}\right)- \left(\Centerstack{rate of \\ mass out}\right) \]%

\end{document} 

enter image description here

| improve this answer | |
  • It does not work shows error – Shafiq Ahmad Apr 5 at 12:40
  • Which error do you have? – Bernard Apr 5 at 12:49
  • I can't find file `listofitemsold.tex'. <to be read again> \relax l.67 {\input listofitemsold.tex\relax\endinput} % Please type another input file name: – Shafiq Ahmad Apr 5 at 12:55
  • I want to write it in equation form, Sorry Im new to latex. – Shafiq Ahmad Apr 5 at 12:59
  • But can you compile this very code (and only this code)? – Bernard Apr 5 at 12:59
1

A solution without any package - also works in Plain TeX:

\documentclass[20pt]{extarticle}

\begin{document}

\[ \pmatrix{\hbox{rate of mass} \cr \hbox{accumulation} } = 
   \pmatrix{\hbox{rate of} \cr \hbox{mass in}} - 
   \pmatrix{\hbox{rate of} \cr \hbox{mass out}} \]

\end{document}

enter image description here

| improve this answer | |

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.