![itemize 中的文本进入边缘,与其他文本不对齐](https://linux22.com/image/273989/itemize%20%E4%B8%AD%E7%9A%84%E6%96%87%E6%9C%AC%E8%BF%9B%E5%85%A5%E8%BE%B9%E7%BC%98%EF%BC%8C%E4%B8%8E%E5%85%B6%E4%BB%96%E6%96%87%E6%9C%AC%E4%B8%8D%E5%AF%B9%E9%BD%90.png)
我的边距有些问题。
\usepackage[top=2.5cm, headsep=0.4cm, bottom=2.5cm,left=2.5cm, right=2.5cm]{geometry}
\geometry{bindingoffset=5mm}
当我使用时itemize
,文本不与其他文本对齐,而是进入右边距。
\begin{itemize}[align=right]
\item Friðrík H. Jónsson og Sigurður J. Grétarsson (2007). \textit{Gagnfræðikver fyrir háskólanema}, Háskólaútgáfan, Reykjavík.
\item Ingibjörg Axelsdóttir og Þórunn Blöndal (2006). \textit{Handbók um ritun og frágang}, Mál og menning, Reykjavík.
\end{itemize}
这是我的输出:
有人能告诉我如何修复 itemize 中的文本吗?我正在使用scrbook
class。
答案1
如果您加载icelandic
,babel
您的冰岛语单词将根据语言规则进行连字符。
由于主要语言似乎是英语,因此您可以混合使用这两种语言。
\documentclass{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[icelandic,english]{babel} % default language is English
\usepackage[top=2.5cm, headsep=0.4cm, bottom=2.5cm,left=2.5cm, right=2.5cm]{geometry}
\geometry{bindingoffset=5mm}
\usepackage{newtxtext} % Times font
\usepackage{enumitem}
\usepackage{kantlipsum} % just to provide a paragraph giving context
\begin{document}
\kant*[1]
\begin{itemize}[align=right]
\item \begin{otherlanguage*}{icelandic}
Friðrík H. Jónsson og Sigurður J. Grétarsson (2007). \textit{Gagnfræðikver fyrir
háskólanema}, Háskólaútgáfan, Reykjavík.
\end{otherlanguage*}
\item \begin{otherlanguage*}{icelandic}
Ingibjörg Axelsdóttir og Þórunn Blöndal (2006). \textit{Handbók um ritun og
frágang}, Mál og menning, Reykjavík.
\end{otherlanguage*}
\end{itemize}
\end{document}