Suppressing line breaks when entering environment

In the next LaTeX snippet, how can I suppress a new line that is automatically created between XXX and YYY after entering Wednesday align*.

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

gives

XXX YYY
ZZZ...

But I want

XXX YYY ZZZ...

Perhaps align*this is just the wrong environment, but I could not find an alternative that provides similar functionality but does not represent the string.

+5
source share
4 answers

I'm not sure it should be used that way, but maybe the environment alignedis 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}
+3

, Latex -, , , , minipage. , \vbox{...}, :

XXX
\vbox{
\begin{minipage}[t]{2in} % Note that the first parameter is optional
  YYY
  ...
\end{minipage}
}

\vbox , , Tex: .

+1

, $:

XXX
\begin{minipage}{t}{0.1in}
    YYY $ZZZ...$
\end{minipage}
0

, , align? ?

, tabbing ?

\begin{tabbing}
text \= more text \= still more text \= last text \\
second row \>  \> more \\
.
.
.
\end{tabbing}
0

All Articles