不要在每个新行都使用 TAB(清除制表符)-> 刷新两者

不要在每个新行都使用 TAB(清除制表符)-> 刷新两者

代码

....
\makeatletter
\def\flushboth{%
      \let\\\@normalcr
        \@rightskip\z@skip \rightskip\@rightskip
          \leftskip\z@skip
            \parindent 1.5em\relax}
\makeatother

....

\begin{document}

....

\flushboth{
{\small{You're sitting at home, glass of Henri Jayer Echezeaux Grand Cru in hand, scrolling through Airbnb listings in pursuit of the perfect home to rent for your next trip to the Mediterranean.

"No, no, no!" you scream at the screen in frustration, knuckles turning white as you grip the stem of your Chateau Baccarat glass.

"These properties simply will not do!"

Fear not, dear luxury lover, for the rise of the online sharing economy hasn't left you behind.

In recent years, several luxury-focused sites have been launched to allow owners of multi-million dollar properties an outlet to rent out their mansions, villas and penthouses to their wealthy counterparts for the short term. }}%
}

....

\end{document}

输出

在这里你可以看到输出

目的

左右对齐文本,但不在每一行新行设置任何制表符。

也许设置了制表符,因为我使用的是 R Sweave,并且这种格式就是这样使用的。仅使用文本会产生与 \flushboth 相同的效果。但我尝试flushboth获得所需的解决方案。

使用flushleft可以清除标签,但整个文本会向左刷新。使用flushleftflushright不起作用。您可以使用flushleftflushright。如果同时使用,则将应用更接近文本的那个。

答案1

在序言中使用\setlength{\parindent}{0pt}可以解决问题。

已定义\flushboth可以被清除。

相关内容