
代碼:
\documentclass[a4paper,12pt]{article}
\usepackage{cite}
\setlength\parindent{0pt}
\begin{document}
\section*{First Chapter}
\cite{naiveset} First line. \newline
\cite{knuthwebsite} Second line.
\bibliography{test}{}
\bibliographystyle{unsrt}
\end{document}
我希望結果看起來像這樣:
[1] First line.
[2] Second line.
但結果是第一行縮排一個空格,如下圖:
[1] First line.
[2] Second line.
原因是什麼,如何解決?
答案1
來自cite
包裝手冊:
前面有空格常規文字引用會將前面的空格調整為正常的詞間空格,即使輸入中沒有空格也是如此。該
[noadjust]
選項可停用此功能。上標引文已刪除所有前面的空格。
\documentclass[a4paper,12pt]{article}
\usepackage[noadjust]{cite}
\setlength\parindent{0pt}
\begin{document}
\section*{First Chapter}
\cite{naiveset} First line. \newline
\cite{knuthwebsite} Second line.
\bibliography{test}{}
\bibliographystyle{unsrt}
\end{document}