2
% !TeX spellcheck = en_US

\documentclass[11pt,twoside]{book}
\usepackage{amsmath}
\usepackage{array,tabularx}
\newenvironment{conditions*}
{\par\vspace{\abovedisplayskip}\noindent
    \tabularx{\columnwidth}{>{$}l<{$} @{${}:{}$} >{\raggedright\arraybackslash}X}}
{\endtabularx\par\vspace{\belowdisplayskip}}
\begin{document}

\begin{equation}
A =  C+D
\end{equation}

    where:
    \begin{conditions*}
        A & blabla \\
        C & blabla \\
        D & blabla \\
    \end{conditions*}
    \end{document}

I want to write:

where A: blabla
      B: blabla
      C: blabla
  • Your conditions environment start with` \par` what meaning that you want that it star in new line ... – Zarko Oct 1 '15 at 16:33
3

Try this:

\documentclass[11pt,twoside]{book}% Use this line for the print version of the
    \usepackage{amsmath}
    \usepackage{array,tabularx}

    \usepackage{lipsum}% for dummy text

\newenvironment{conditions*}
{%\par\vspace{\abovedisplayskip}% <-- superfluous
\noindent\tabularx{\columnwidth}[t]{>{$}r<{$:}  
                                    >{\raggedright\arraybackslash}X}}
{\endtabularx\par\vspace{\belowdisplayskip}}
\begin{document}
    \lipsum[1]
\begin{equation}
A =  C+D
\end{equation}
%
where:
    \begin{conditions*}
        A & blabla \\
        C & blabla \\
        D & blabla \\
    \end{conditions*}
\lipsum[4]
    \end{document}

Result:

enter image description here

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.