0

I am compiling a document on sharelatex.com. I would like to have a citation like "Smith (in press)". However, since I cannot edit the bibliography style's bst file online, I'm not sure how to fix this. I tried the solution with \noop mentioned here, but it didn't work. How to enter publications "in press", or "submitted to" in BibTeX?

I am using the default ShareLaTeX settings, where it's compiled with pdflatex.

The bibtex file includes

@preamble{ " \newcommand{\noop}[1]{} " }

@unpublished{degen2016definitely,
  title={Definitely, maybe: Approaching speaker commitment experimentally},
  author={Degen, Judith and Scontras, Gregory and Trotzke, Andreas and Wittenberg, Eva},
  note={in revision},
  year={\noop{2016}in revision}
}

In the main file, I have the following packages loaded, and call the bibliography as follows:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{stmaryrd}
\usepackage{xparse} % for the main command
\usepackage{fullpage}
\usepackage{textgreek}
\usepackage{qtree}
\usepackage[normalem]{ulem}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{bm}
\usepackage{booktabs}
\usepackage{csquotes}
\usepackage{graphicx}
\usepackage{tabulary}
\usepackage{gb4e}
\usepackage{natbib}

\bibliographystyle{apalike}
\bibliography{adam.bib}
3
  • 1
    Can you give a bit more information about your set-up please? Your question does not mention which bibliography package you use explicitly. Since you mention .bst files and \noop and link to a BibTeX question, that makes me think you use BibTeX. But you have tagged your question biblatex. biblatex and BibTeX are fundamentally incompatible. Please show us a full MWEB/MWE, so we can really see what is going on at your end. – moewe Jun 7 '17 at 6:58
  • 1
    I second moewe's demand for more details. But, in case you are considering biblatex as an alternative, you could look at tex.stackexchange.com/a/367423/105447 for a start. – gusbrs Jun 7 '17 at 11:55
  • Thank you guys for your comments. I added some details. How can I tell if sharelatex is using bibtex or biblatex? – Adam_G Jun 7 '17 at 22:35
1

I solved the problem by using biblatex as the bibliography package instead of natbib. In addition, the package gb4e has been known to create some issues. Finally, with biblatex I used the \textcite and \parencite commands in place of \cite.

1
  • Couldn't come earlier back here. Anyway, good to know you found your way through with biblatex. – gusbrs Jun 8 '17 at 9:53

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.