1

tex code:

\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}

I want the result to look like this:

[1] First line.
[2] Second line.

But the result is that the first line is indented with one space, like this:

 [1] First line.
[2] Second line.

What is the reason, and how to fix it?

1

From the cite package manual:

Space before Regular-text citations have the preceding space adjusted to be a normal inter-word space, even if there is no space in the input. The [noadjust] option disables this. Superscript citations have all precedingspace removed.

\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}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.