Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a list where one of the list items is an \infer{...}{...} command. In this case, the list bullet is not vertically centered with the item, as you can see in the picture:

enter image description here

How can I move the list bullet at the height of the bar?

MWE

\documentclass{scrreprt}
\usepackage{proof}
\linespread{1.5}
\begin{document}
\begin{itemize}
\item item 1
\item item 2
\item \infer{Something}{Something else}
\end{itemize}

\end{document}
share|improve this question
    
@MarcoDaniel Unfortunately it doesn't work... –  user1301428 Mar 3 '13 at 11:44
add comment

1 Answer

up vote 3 down vote accepted

You can use the \vcenter box command, which centers its contents (just above) the baseline. It is used for big operators etc. and requires you to be in maths mode.

Sample output

\documentclass{scrreprt}

\usepackage{proof}
\linespread{1.5}

\begin{document}

\begin{itemize}
\item item 1
\item item 2
\item \( \vcenter{\infer{\textit{Something}}{\textit{Something else}}} \)
\end{itemize}

\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.