or
निरंजन
This is my code.


\documentclass{article}
\usepackage{multicol}
\usepackage{linguex}
\usepackage{tikz}

\begin{document}
\begin{multicols}{2}
\ex. Two ways of forming a triangle.\\
\a.\begin{tikzpicture}
\draw (0,0) -- (-1.5,-3) -- (1.5,-3) -- cycle;
\end{tikzpicture}\\
\columnbreak
\b.\begin{tikzpicture}
\draw (0,0) -- (3,0) -- (3,3) -- cycle;
\end{tikzpicture}\\

\end{multicols}

\end{document}


It generates -

![MWE.png](/image?hash=d751686a1b55d6b875d906ea342930a0cbea6d3975b0834d2f1a649f7ac83e8d)

I want the ex. to be out of the multicols environment, because in the output the example b., because I want both a. and b. to be on the same height. How to achieve it?

PS - I tried \phantom{\ex.} but it doesn't work.
samcarter
I suggest to use the enumitem package to place multiple subitems in a single line. You don't need to be worried about suspending and restarting the linguex counter because you could just place the the additional enumerate environment between your \ex. ones.


\documentclass{article}
\usepackage{multicol}
\usepackage{linguex}
\usepackage{tikz}
\usepackage[inline]{enumitem}

\begin{document}

\ex. Two something
\a. foo
\b. bar

\begin{enumerate}[label={(\arabic*)},labelsep=\Exlabelsep\relax,labelwidth=\Exlabelwidth]
\setcounter{enumi}{\value{ExNo}}
\item \hspace{0.6em}Two ways of forming a triangle.

\begin{enumerate*}[label={\hspace{-0.9em}\alph*.}]
\item
\begin{tikzpicture}
\draw (0,0) -- (-1.5,-3) -- (1.5,-3) -- cycle;
\end{tikzpicture}
\hspace*{\fill}
\item
\begin{tikzpicture}
\draw (0,0) -- (3,0) -- (3,3) -- cycle;
\end{tikzpicture}
\end{enumerate*}
\end{enumerate}
\stepcounter{ExNo}

\ex. Two something
\a. foo
\b. bar

\end{document}

![Screen Shot 2020-02-10 at 17.30.16.png](/image?hash=bcd9bf5c67f1bccfac9ba7dd91e9999003f09806fb2bfc3ee390373bba147bdd)
CrazyHorse
If there are only two or three items then simply write the a., b., ... by yourself without the commands:


\documentclass{article}
\usepackage{linguex}
\usepackage{tikz}

\begin{document}
\ex. Two ways of forming a triangle.\\
a. \begin{tikzpicture}
\draw (0,0) -- (-1.5,-3) -- (1.5,-3) -- cycle;
\end{tikzpicture}
b. \begin{tikzpicture}
\draw (0,0) -- (3,0) -- (3,3) -- cycle;
\end{tikzpicture}

\end{document}


![Bildschirmfoto 2020-02-28 um 16.39.30.png](/image?hash=360dd9e41a81de3aa17b94b7bfc6b87b4f99ca0aebb57522d18ecd7e33f29f20)
Package linguex with multicols
You're welcome!
निरंजन
Yes, it worked. Thank you so much.
You don't need to worry about setting and resetting counters, tex can do this for you
निरंजन
The solution looks cool, but I still wish that this issue gets resolved in the limits of the package itself. Let's imagine that the ex. is fourth or fifth in the chronology. Then I'll have to set and reset the counter twice (which I don't want to) In fact that is the sole purpose of this package. Can we tweak something in the preamble for such special cases when an environment comes in between the examples?
samcarter

\documentclass{article}
\usepackage{multicol}
\usepackage{linguex}
\usepackage{tikz}
\usepackage[inline]{enumitem}

\begin{document}

\begin{enumerate}[label=(\arabic*)]
\item Two ways of forming a triangle.

\begin{enumerate*}[label=\alph*.]
\item
\begin{tikzpicture}
\draw (0,0) -- (-1.5,-3) -- (1.5,-3) -- cycle;
\end{tikzpicture}
\hspace*{\fill}
\item
\begin{tikzpicture}
\draw (0,0) -- (3,0) -- (3,3) -- cycle;
\end{tikzpicture}
\end{enumerate*}

\item Two ways of forming a triangle.

\begin{enumerate*}[label=\alph*.]
\item
\begin{tikzpicture}
\draw (0,0) -- (-1.5,-3) -- (1.5,-3) -- cycle;
\end{tikzpicture}
\hspace*{\fill}
\item
\begin{tikzpicture}
\draw (0,0) -- (3,0) -- (3,3) -- cycle;
\end{tikzpicture}
\end{enumerate*}
\end{enumerate}

\end{document}

samcarter
In case a non-linguex workaround would also do, you could use the enumitem package to place multiple items on the same line: