代码模仿自问答格式采用双栏吗?但输入更长:
\documentclass{article}
\usepackage{paracol}
\usepackage{ulem}
\usepackage{fontspec}
\usepackage{newunicodechar}
\newunicodechar{ī}{i\char\string"0304 }
\newunicodechar{ā}{a\char\string"0304 }
\newunicodechar{ē}{e\char\string"0304 }
\newunicodechar{ū}{u\char\string"0304 }
\begin{document}
\section{Latvian Practice}
\begin{paracol}{2}
What operations have you had before the last operation?
What are your old diagnoses/diseases? \uline{Tuberculosis}, \uline{hepatitis}, \uline{metabolic syndrome}, diabetes?
Have you had endoscopy?
\switchcolumn
Kādas operācijas jums bija pirms pēdējās operācijas?
Kādas ir jūsu vecās diagnozes / slimības? \uline{Tuberkuloze}, \uline{hepatīts}, \uline{metaboliskais sindroms}, diabēts?
Vai jums bija endoskopija?
\end{paracol}
\end{document}
输出
挑战
- 从第二项开始,行前有一小段空格;我不想要这个。如何摆脱新项目之前的这个小空间?
- 右栏干扰了左栏。我不想这样。如何才能停止左列的自动调整而牺牲右列的自动调整呢?最后,提供更好的示例以及有关挑战的更多数据。
用输出更好地说明第二点:
其中没有文本混乱但在第 2 行处左列与右列自动调整。
我认为行首的初始空格可能是问题的根源。 怎么能有没有开头空格的线条呢?
答案1
我\setlength{\parindent}{0pt}
删除了环境中句子的缩进parcol
,并手动为单词 syndrome 和 sindroms 添加连字符的可能性。对 MWE 进行这些更改后,我得到了以下结果:
代码:
\documentclass{article}
\usepackage{paracol}
\usepackage{ulem}
\usepackage{fontspec}
\usepackage{newunicodechar}
\newunicodechar{ī}{i\char\string"0304 }
\newunicodechar{ā}{a\char\string"0304 }
\newunicodechar{ē}{e\char\string"0304 }
\newunicodechar{ū}{u\char\string"0304 }
\begin{document}
\section{Latvian Practice}
\begin{paracol}{2}
\setlength{\parindent}{0pt}
What operations have you had before the last operation?
What are your old diagnoses/diseases?
\uline{Tuberculosis}, \uline{hepatitis}, \uline{metabolic syn\-drome}, diabetes?
Have you had endoscopy?
\switchcolumn
Kādas operācijas jums bija pirms pēdējās operācijas?
Kādas ir jūsu vecās diagnozes/slimības? \uline{Tuberkuloze}, \uline{hepatīts}, \uline{metaboliskais sin\-droms}, diabēts?
Vai jums bija endoskopija?
\end{paracol}
\end{document}
如果您希望段落(句子)之间的垂直距离更大,请添加\setlength{\parskip}{1ex}
。1ex
您也可以根据自己的喜好选择其他距离。