Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suppressing linebreak when entering environment

Tags:

newline

latex

In the following LaTeX fragment, how can I suppress the newline that is automatically generated between XXX and YYY after entering the align* environment.

XXX
\begin{minipage}{t}{0.1in}
  YYY
  \begin{align*}
     ZZZ...
  \end{align*}
\end{minipage}

yields

XXX YYY
ZZZ...

But I want

XXX YYY ZZZ...

Perhaps align* is simply the wrong environment, but I couldn't find an alternative that provides similar functionality, yet doesn't introduce a linebreak.

like image 237
mavam Avatar asked Oct 15 '22 10:10

mavam


1 Answers

I'm not really sure if it's supposed to be used like this, but perhaps the aligned environment is what you're after?

\documentclass{article}
\usepackage{amsmath}
\begin{document}
XXX
\begin{minipage}[t]{1in}
YYY
$
  \begin{aligned}
     ZZZ...
  \end{aligned}
$
\end{minipage}
\end{document}
like image 65
Will Robertson Avatar answered Nov 04 '22 01:11

Will Robertson