I am using Overleaf for my paper.
I have an issue, when I add a note in my references (in bibfile.bib) such as:
@article{jack2015new,
title={paper title},
author={Jack and roben and bryan},
year={2015},
note={this is available at abc.com}
}
My latex is:
\documentclass [12pt]{article}
\usepackage{cite}
\usepackage[natbibapa]{apacite}
\usepackage{natbib}
\renewcommand{\&}{and} %makes all references and
\linespread{2}
\usepackage{paralist}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{color}
\usepackage{xcolor}
\usepackage{longtable}
\usepackage{chngcntr}
\usepackage{times}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[justification=centering]{caption}
\usepackage{pdfpages}
\usepackage{amsfonts}
\usepackage{booktabs}
\usepackage{amssymb}
\usepackage{paralist}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{latexsym}
\usepackage{subfig}
\usepackage{esint}
\usepackage{authblk}
\usepackage{comment}
\usepackage{float}
\usepackage{lineno}
\usepackage[toc,page]{appendix}
\usepackage{eso-pic}
\usepackage{array}
\usepackage{tabu}
\usepackage{pdflscape}
\usepackage[fleqn]{amsmath}
\setlength{\mathindent}{0pt}
\usepackage{hyperref}
\hypersetup{breaklinks=true}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{chngcntr}
\counterwithin{table}{section}
\counterwithin{figure}{section}
\counterwithin{equation}{section}
\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm] {geometry}%margins
\usepackage{setspace}
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\textbf{\large{ project title}}
\vspace{1.5cm}
\small{
paper title
}
\vspace{1.5cm}
\vspace{.5cm}
\textsuperscript{\textcopyright} \text{Author Name}
\end{center}
\pagenumbering{gobble}
\author{}
\pagebreak
\end{titlepage}
\date{}
\begin{document}
\maketitle
\onehalfspacing
\pagenumbering{roman}
\frontmatter
\mainmatter
\newcommand{\sectionbreak} {\clearpage}
\section{Introduction}
\pagenumbering{arabic}
introduction
\clearpage
\renewcommand{\biband}{&} %makes all references and
\bibliographystyle{apacite}
\bibliography{bibfile}
\end{document}
When it generates the output I see it shows the note in one line after my reference. So, for example:
jack and roben and bryan (2015), title,
(this is available at abc.com)
Is there anyway I prevent line break and put the not just after the reference following the same line? Also, I do not want those parenthesizes.
I use the following bibliography:
\bibliographystyle{apacite}
\bibliography{bibfile}
P.S: Is my font Times New Roman?
author={Jack, roben, bryan},is quite likely wrong. Several authors should be separated withand:author = {Anne Elk and James Hacker and Humphrey Appleby}(see https://tex.stackexchange.com/q/36396/35864 and https://tex.stackexchange.com/q/557/35864). While theoretically it is possible to use up to two commas for single name (in the formatvon Last, Jr, First) that is almost never what people want. – moewe Feb 02 '19 at 08:48openbiboption is activated. References as formated by bibtex usually contain\newblockcommands which normally generate just some spacing. One\newblockmust be present before your note in the .bbl generated by bibtex. Theopenbiboption changes the meaning of\newblockinto\par. – Eric Domenjoud Feb 02 '19 at 10:04\newblockand anopenbiboption. It comes from your reference itself in which ajournalfield is missing. Theapalikestyle will insert a blank line in the reference which causes a paragraph break. – Eric Domenjoud Feb 02 '19 at 12:08.bibentry that reproduces the issue. The code shown in the question produces a plethora of unrelated error messages and warnings that should definitely be fixed, but have no bearing on the issue at hand. FWIW in a short test I just ran changing the example entry to@techreportor@miscworked fine and did not produce the unwanted line break in the bibliography. – moewe Feb 03 '19 at 09:14