书目样式段落错误行为

书目样式段落错误行为

我的代码是:

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{fancyhdr}
\usepackage{pgfplots}
\usepackage[letterpaper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry} 

\usepackage{apacite}
\usepackage[utf8]{inputenc}
\usepackage{afterpage}
 \usepackage{hyperref}
 \usepackage{lipsum}
 \hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
 }

\newcommand\blankpage{%
    \null
    \thispagestyle{empty}%
    \addtocounter{page}{-1}%
    \newpage}
\date{\today}
\linespread{1.5}

\begin{document}
\noindent
\begin{tabular}{cp{5in}c}
    &\everypar{\hangindent1em \hangafter1} 

    Aas, T. (2013). Free public transport in Tallinn - financial, enviromental and social aspects. Presentation on Union of th Baltic Cities Joint Seminar on Sustainable Transport Solutions. Tallinn, Estonia. Retrieved from http://www.tallinn.ee/eng/tasutauhistransport/UBC-Joint-Seminar-on-Sustainable-Transport-solutions

    Cats, O., Reimal, T., & Susilo, Y. (2014). Public Transport Pricing Policy - Empirical Evidence from a Fare-Free Scheme in Tallin, Estonia. Transportation Research Record, Journal of the Transporation Research Board.

    Galey Derek. (2014). License to Ride: Free Public Transportation for Residents of Tallin. A Journal of the UCLA Department of Urban Planning.
    Hamilton, C. (2012). Decisive factors for the acceptability of congestion pricing. Working paper, Stockholm Center for Transport Studies.


    &
\end{tabular}
\end{document}

我想要这种风格的东西(我的意思是第一行的缩进比后续行的缩进小): 在此处输入图片描述

但我的代码的结果是:在此处输入图片描述

如何修复?

答案1

收到 TeX 错误后,您应该查看日志文件,而不是 pdf 输出。TeX 在从错误中恢复时不会尝试生成合理的排版结果。

 Cats, O., Reimal, T., & Susilo,

需要是

 Cats, O., Reimal, T., \& Susilo,

错误消息非常明确地说明了额外的&

! Extra alignment tab has been changed to \cr.
<recently read> \endtemplate 

l.41     &

答案2

此外,如果您确实想手工制作参考书目(不推荐这样做,因为它可能不符合标准),那么使用description可以跨页面分解并可以使用enumitem 包进行定制的环境会更容易:

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{fancyhdr}
\usepackage{pgfplots}
\usepackage[letterpaper, margin=2.5cm, showframe]{geometry}
\usepackage{apacite}
\usepackage[utf8]{inputenc}
\usepackage{afterpage}
\usepackage{hyperref}
\usepackage{lipsum}
\usepackage{ragged2e}
\usepackage{enumitem}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}

\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\date{\today}
\linespread{1.5}

\begin{document}
\noindent
\begin{tabular}{cp{5in}c}
    & \everypar{\hangindent4em \hangafter1}
  Aas, T. (2013). Free public transport in Tallinn - financial, environmental and social aspects. Presentation on Union of the Baltic Cities Joint Seminar on Sustainable Transport Solutions. Tallinn, Estonia. Retrieved from \url{http://www.tallinn.ee/eng/tasutauhistransport/UBC-Joint-Seminar-on-Sustainable-Transport-solutions}

  Cats, O., Reimal, T., \& Susilo, Y. (2014). Public Transport Pricing Policy - Empirical Evidence from a Fare-Free Scheme in Tallin, Estonia. Transportation Research Record, Journal of the Transportation Research Board.

  Galey Derek. (2014). License to Ride: Free Public Transportation for Residents of Tallinn. A Journal of the UCLA Department of Urban Planning.
  Hamilton, C. (2012). Decisive factors for the acceptability of congestion pricing. Working paper, Stockholm Center for Transport Studies.
\end{tabular}
\vskip0.5cm
\begin{description}[leftmargin=4em, rightmargin=6em]
  \item Aas, T. (2013). Free public transport in Tallinn - financial, environmental and social aspects. Presentation on Union of the Baltic Cities Joint Seminar on Sustainable Transport Solutions. Tallinn, Estonia. Retrieved from \url{http://www.tallinn.ee/eng/tasutauhistransport/UBC-Joint-Seminar-on-Sustainable-Transport-solutions}

  \item Cats, O., Reimal, T., \& Susilo, Y. (2014). Public Transport Pricing Policy - Empirical Evidence from a Fare-Free Scheme in Tallin, Estonia. Transportation Research Record, Journal of the Transportation Research Board.

  \item Galey Derek. (2014). License to Ride: Free Public Transportation for Residents of Tallinn. A Journal of the UCLA Department of Urban Planning.
  Hamilton, C. (2012). Decisive factors for the acceptability of congestion pricing. Working paper, Stockholm Center for Transport Studies.

\end{description}

\end{document} 

在此处输入图片描述

相关内容