Quantcast
Channel: User sorry - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 28

Algorithm2e - write IfThenElse in one line

$
0
0

I have the following example

\documentclass{report}\usepackage{algorithm2e}\begin{document}    \begin{algorithm}        \lIf{$\max_{\mathcal{AV}} > \theta_5$}        {            \Return the tracklet with $\max_{\mathcal{AV}}$.        }        \lElse        {            \Return no speaker.        }      \end{algorithm}\end{document}

however I do not want if and else be in two separate lines, but only in one.

Could anyone help me, please?Thanks in advance


Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>