如何對齊文本,使其在背面具有相同的左右縮排?

如何對齊文本,使其在背面具有相同的左右縮排?

當我在 Overleaf 上編譯文件時,文字行的長度各不相同。我希望使用對齊選項時,文字的對齊方式與 Word 中的對齊方式相同justified。我應該\justify在每個段落中使用還是可能有一些全局函數,以便所有文字都是合理的?

這是該文檔的範例。我的寫作語言不是英語,在真實文件中,對齊方式看起來更糟。在此範例中,不均勻的壓痕並不那麼明顯。我在文件開始之前添加了所有內容,因為我不知道是什麼導致文字如此不均勻。

    \documentclass[12pt]{article}
    \date{}
    \renewcommand{\contentsname}{Contents}
    \usepackage{blindtext}
    \usepackage[document]{ragged2e}
    \usepackage[utf8]{inputenc}
    \usepackage{graphicx}
    \usepackage{setspace}
    \usepackage{babel,etoolbox, lineno}
    \renewcommand*\contentsname{Contents}
    \usepackage{amsmath}
    \usepackage{babel,graphicx}
    \usepackage[english]{biblatex}
    \newtheorem{definition}{Definiton}
    \addbibresource{bibliography.bib}
    \setstretch{1.5}
    \usepackage{geometry}
    \geometry{a4paper, portrait, margin=20mm, bmargin=20mm, tmargin=30mm}
    \setlength{\parindent}{4em}
    \begin{document}
    
    
    
    
    \newpage
    \section{Introduction}
    
    The trimming proportion is selected as follows. Consider a characteristic $Sn(a, F)$ of the distribution of $T(a, Fn)$, usually a measure of spread. Here we either mean the finite-sample distribution or the asymptotic distribution. In the latter case, the subscript n will later be omitted. As a concrete example, suppose $Sn(a, F)$ is the exact variance under$F$ of $T(a, Fn)$. The idea consists of estimating $Sn(a, F)$
    
    
    \newpage
    \renewcommand{\refname}{References}
    \printbibliography
    \end{document}

答案1

只需停止使用該ragged2e軟體包即可。透過使用它,你在問 LaTeX不是來證明線條合理。

相關內容