我正在使用该verse
包进行排版。我无法让verse
环境中的内容不缩进。
在下面的最小工作示例中,我希望“Blessed are”与“这是不缩进的常规文本”对齐。
\documentclass[11pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{verse}
\begin{document}
\begin{verse}
Blessed are the poor in spirit, for theirs is the kingdom of heaven.\\
Blessed are those who mourn, for they shall be comforted.\\
Blessed are the meek, for they shall inherit the earth.\\
Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.
\end{verse}
\noindent This is the regular text that is not indented.
\end{document}
答案1
为此,我将使用alltt
-package 和\normalfont
-package的文件verse
-package:
% arara: pdflatex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{verse}
\usepackage{alltt}
\begin{document}
\begin{verse}
Blessed are the poor in spirit, for theirs is the kingdom of heaven.\\
Blessed are those who mourn, for they shall be comforted.\\
Blessed are the meek, for they shall inherit the earth.\\
Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.
\end{verse}
\begin{alltt}\normalfont
Blessed are the poor in spirit, for theirs is the kingdom of heaven.
Blessed are those who mourn, for they shall be comforted.
Blessed are the meek, for they shall inherit the earth.
Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.
\end{alltt}
\noindent This is the regular text that is not indented.
\end{document}
这甚至可以让你免于\\
在每一行后面打字,并会产生以下内容。
更新
为了仍然能够使用 的功能verse
,您必须重新定义诗歌的左边距。如果您想全局执行此操作,只需编写\setlength{\leftmargini}{<some value>}
。在我的以下 MWE 中,我将只更改一节诗句,然后将其改回默认值。
% arara: pdflatex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{verse}
\begin{document}
\newlength{\saveleftmargini} % define a temp variable for the original margin
\setlength{\saveleftmargini}{\leftmargini} % write the original margin in this variable
\setlength{\leftmargini}{0em} % set the left margin to zero
\begin{verse}
Blessed are the poor in spirit, for theirs is the kingdom of heaven.\\
Blessed are those who mourn, for they shall be comforted.\\
Blessed are the meek, for they shall inherit the earth.\\
Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.
\end{verse}
\setlength{\leftmargini}{\saveleftmargini}% restore original value in case you do not want to change this thing globaly.
\begin{verse}
Blessed are the poor in spirit, for theirs is the kingdom of heaven.\\
Blessed are those who mourn, for they shall be comforted.\\
Blessed are the meek, for they shall inherit the earth.\\
Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.
\end{verse}
\noindent This is the regular text that is not indented.
\end{document}