add tag
निरंजन
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.
Top Answer
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)
Answer #2
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}
\qquad
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)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.