我需要编写一大堆伪代码,并且在 \begin{tabbing} 命令中使用所有“\ >\=”让我很恼火,所以我决定使用 \begin{verbatim} 代替。这对我来说工作得很好,直到我不得不连续缩进 4 次。当我连续看到 4 个选项卡时,它会将“字符”>>在我的行的开头,然后当我生成pdf时,它根本没有缩进。当我使用逐字记录时,如何让 Latex 停止重新格式化我的行?
I need to write a whole bunch of pseudo code and I got annoyed using all the "\ >\=" with the \begin{tabbing} command, so I decided to use \begin{verbatim} instead. This was working fine for me until I got to a point in which I had to indent 4 times in a row. When I get to 4 tabs in a row it puts the "character" >> at the beginning of my line and then when I generate the pdf it is not indented at all. How do I get latex to stop reformatting my lines when I use verbatim?
发布评论
评论(1)
我不知道你在哪个代码领域工作,或者这是否会做得更好,但是你检查过列表算法或程序包?他们可能有更好的魔法。
I don't know in what code realm you are working or if this will do any better, but have you checked out the listings algorithm or program packages? They may have better magic in them.