乳胶多重破产(Latex Multiple Linebreaks)

编程入门 行业动态 更新时间:2024-10-25 12:24:53
乳胶多重破产(Latex Multiple Linebreaks)

我使用LaTeX打开课程的编程功课。 我需要这样做:

my line of text blah blah blah new line of text with blank line between

我知道我可以使用双斜杠来打破线\\,但是LaTeX只会进行第一行休息(抱怨更多),并启动一个新行,它产生:

my line of text blah blah blah new line of text with blank line between

我怎么能在那里得到额外的换行,所以我可以在我的文本行之间有空格?

I use LaTeX to type up programming homeworks for classes. I need to do this:

my line of text blah blah blah new line of text with blank line between

I know I can use double slash to break lines \\, but LaTeX will only take the first line break (complains about more) and starts a new line, it produces this :

my line of text blah blah blah new line of text with blank line between

How can I get that extra line break in there so I can have space between my lines of text?

最满意答案

段之间是否需要更多的空间? 然后可以更改参数\parskip 。

例如,尝试

\setlength{\parskip}{10pt plus 1pt minus 1pt}

这意味着段落之间的空间通常为10pt,但可以增长或缩小高达1pt。 这意味着您可以让LaTeX将其更改为1pt,以实现更好的页面布局。 您可以删除正负零件,使其始终为您指定的长度。

如果您正在尝试显示源代码,请尝试listings包或verbatim 。 如果您尝试排版伪代码,请尝试使用algorithm包。

Do you want more space between paragraphs? Then you can change the parameter \parskip.

For example, try

\setlength{\parskip}{10pt plus 1pt minus 1pt}

This means that the space between paragraphs is usually 10pt, but can grow or shrink by up to 1pt. This means you give LaTeX the ability to change it up to one 1pt in order to achieve a better page layout. You can remove the plus and minus parts to make it always your specified length.

If you are trying to display source code, try the listings package or use verbatim. If you are trying to typeset pseudocode, try the algorithm package.

更多推荐

本文发布于:2023-07-28 08:31:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1303020.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:乳胶   Latex   Linebreaks   Multiple

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!