下面是latex代码:
\documentclass[12pt]{article}
\date{}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{blindtext}
\usepackage{indentfirst}
\usepackage{babel,etoolbox, lineno}
\usepackage[natbib=true,style=ext-numeric,sorting=none]{biblatex}
\addbibresource{name.bib}
\usepackage{color}
\usepackage[utf8]{inputenc}
\usepackage[document]{ragged2e}
\setstretch{1.5}
\usepackage{geometry}
\setlength{\parindent}{4em}
\usepackage{etoolbox}
\begin{document}
\par The value of "a" is the number of times the word occurs in the analysis text. The value of "b" is the number of times the word occurs in the reference text. The value of "c" is the total number of words in the analysis text. The value of "d" is the total number of words in the reference text.\par
Given this contingency table, WordHoard calculates the log-likelihood ratio statistic G2 to assess the size and significance of the difference of a word's frequency of use in the two texts. The log-likelihood ratio measures the discrepancy of the the observed word frequencies from the values which we would expect to see if the word frequencies (by percentage) were the same in the two texts. The larger the discrepancy, the larger the value of G2, and the more statistically significant the difference between the word frequencies in the texts. Simply put, the log-likelihood value tells us how much more likely it is that the frequencies are different than that they are the same.\par
When you compute many log-likelihood ratio values some will appear significant by chance alone. For example, if we compute one thousand log-likelihood values, we can expect about ten of them to exceed the breakpoint value of 6.63 by chance. This may lead us to accept a frequency difference as significant when it is really just a chance fluctuation.\par
One way to deal with this problem is to "up the ante" by adjusting the breakpoint values for the number of comparisons. WordHoard allows this as an option. The method used by WordHoard is called the Sidak correction. It is very conservative, particularly as the total number of comparisons increases.\par
As an example, let's see how comparing word form frequencies reveals some properties of Shakespeare's play "Othello, the Moor of Venice." The comparison we select will highlight lemmata that are disproportionately common or rare in Othello with respect to Shakespeare's tragedies as a whole. To compare the lemmata counts, select "Compare Many Word Forms" from the Analysis menu. WordHoard displays the following dialog.
\end{document}输出的文本完全不均匀,每一行都在别处结束,看起来完全没有格式化。我把\par放在每一段之前。可能的问题是什么?
发布于 2021-10-27 00:07:30
ragged2e包的目的是有一个粗糙的边缘(vs块)。如果你不想要不均匀的行尾,就不要使用那个包。
当我从您的代码中删除\usepackage{ragged2e}时,我得到了一行太长的代码。它不会连字符,因为LaTeX不知道你的文本是哪种语言的。使用babel包进行连字,例如,在包列表中添加\usepackage[american]{babel}。有了babel,没有了ragged2e,我得到了块模式,所有行的长度都相等。
https://stackoverflow.com/questions/69729353
复制相似问题