2

I'm using linguex package for examples. In one of them I use a bullet in this way:

\documentclass{article}
\usepackage{linguex}
\begin{document}
\ex.  $\lambda P. \lambda Q. (\textbf{but}(P)(Q)): \langle t \langle t, t \rangle \rangle$ \\ \hspace{20mm} $\bullet$ \\ $\lambda P. \lambda Q. (\textbf{but}(P)(Q)): \langle t \langle t, t \rangle \rangle + \rho \langle e, t \rangle $ 


\end{document}

I tried with a \hspace to make the bullet in between the two examples appears in the middle; but it didn't work.

How I can put the bullet at the center of those two examples.

3 Answers 3

1

For the minimum change, you can use \hspace* (if you don't want the alignments of Brian's answer)

\documentclass{article}
\usepackage{linguex}
\begin{document}
\ex.  $\lambda P. \lambda Q. (\textbf{but}(P)(Q)): \langle t \langle t, t \rangle \rangle$ \\ \hspace*{20mm} $\bullet$ \\ $\lambda P. \lambda Q. (\textbf{but}(P)(Q)): \langle t \langle t, t \rangle \rangle + \rho \langle e, t \rangle $ 


\end{document}

enter image description here

1

One way is to put everything inside of an array enviroment, like this:

\documentclass{article}
\usepackage{linguex}
\begin{document}
\ex.
$\begin{array}{c}
  \lambda P. \lambda Q. (\textbf{but}(P)(Q)): \langle t \langle t, t \rangle \rangle\\
  \bullet\\
  \lambda P. \lambda Q. (\textbf{but}(P)(Q)): \langle t \langle t, t \rangle \rangle + \rho \langle e, t \rangle
\end{array}$

\end{document}

The two lambda terms and the bullet form 3 rows of the array, which are centered ({c}).

1

Here's a slightly different version of Brian Buccola's answer, which left aligns the lines and removes the intercolumn space but still centres the bullet. I've used the array package to make a column type for that. I've also added a [t] alignment to the array environment so that it aligns properly with the example number:

\documentclass{article}
\usepackage{linguex}
\usepackage{array}
\newcolumntype{A}{@{}l@{}}
\newcommand{\cbull}{\multicolumn{1}{@{}c@{}}{\bullet}}
\begin{document}
\ex.
$\begin{array}[t]{A}
  \lambda P. \lambda Q. (\textbf{but}(P)(Q)): \langle t \langle t, t \rangle \rangle\\
  \cbull\\
  \lambda P. \lambda Q. (\textbf{but}(P)(Q)): \langle t \langle t, t \rangle \rangle + \rho \langle e, t \rangle
\end{array}$

\end{document}

output of code

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .