Tell me more ×
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.

given

$C_1[0] = P_1[0]$\;
$C_2[0] = P_2[0]$\;

it will be in two different lines.

i.e.

C_1[0] = P_1[0];
C_2[0] = P_2[0];

Is there a way to make it appears in one line

i.e.

C_1[0] = P_1[0];C_2[0] = P_2[0];
share|improve this question
Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – egreg Feb 20 at 22:54
As egreg said, a MWE would be helpful. Did you try \begin{algorithm} $C_1[0] = P_1[0];\ C_2[0] = P_2[0]$; \end{algorithm}? – Gonzalo Medina Feb 20 at 23:42

closed as too localized by lockstep, Stefan Kottwitz Apr 10 at 10:43

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.