TeX/LaTeX算法包问题

TeX/LaTeX算法包问题,latex,tex,Latex,Tex,我试图用TeX和包“algorithmic”用伪代码设计一个算法。它变得一团糟:单词之间没有空格,也没有换行符。有人能帮我吗 如何将间距和换行符转换为算法注释 谢谢 这是我的TeX代码: \documentclass{llncs} \usepackage{algorithmic} \begin{document} \begin{algorithmic} \REQUIRE{ $ Some long text here. Unfortunately this text is a mess. Sp

我试图用TeX和包“algorithmic”用伪代码设计一个算法。它变得一团糟:单词之间没有空格,也没有换行符。有人能帮我吗

如何将间距和换行符转换为算法注释

谢谢

这是我的TeX代码:

\documentclass{llncs}
\usepackage{algorithmic}

\begin{document}
\begin{algorithmic}

\REQUIRE{ $ Some long text here. Unfortunately this text is a mess. Spaces and line breaks are missing and the text gets weird block layout when setting line breaks manually. $}
\FORALL{$i = 1 \ldots \mid L_{items}\mid $  } 
\STATE { $  i miss spaces here, too $}
\ENDFOR

\end{algorithmic}
\end{document}

第一个问题是你的文本是美元符号
$$这意味着以数学模式键入它。那么太空飞行就太遥远了。试试这个

\REQUIRE{ Some long text here. Unfortunately this text is a mess. Spaces and line breaks are missing and the text gets weird block layout when setting line breaks manually. }
\FORALL{$i = 1 \ldots \mid L_{items}\mid $  } 
\STATE {   i miss spaces here, too But I can get math $x = x +1$ }

第一个问题是你的文本是美元符号
$$这意味着以数学模式键入它。那么太空飞行就太遥远了。试试这个

\REQUIRE{ Some long text here. Unfortunately this text is a mess. Spaces and line breaks are missing and the text gets weird block layout when setting line breaks manually. }
\FORALL{$i = 1 \ldots \mid L_{items}\mid $  } 
\STATE {   i miss spaces here, too But I can get math $x = x +1$ }