LaTeX forum ⇒ TeXShopreference problem (multiple authors tail reference)

Information and discussion about TeXShop, an integrated LaTeX environment for Mac OS X
oceanarches
Posts: 3
Joined: Fri Feb 28, 2014 7:45 pm

reference problem (multiple authors tail reference)

Postby oceanarches » Fri Feb 28, 2014 8:01 pm

Hello,

I am writing up my dissertation and have a problem using the dissertation class provided by my university and other students: My references look like
"Jones et al. (2100)Jones,Quantum, and McFly."

The problem goes away when I use a document class that I've used in the past for publication. I have no idea if it's the document class, the style file or other. I've searched online for answers, tried to debug, looking in the style files and document classes and have come to realize that I'm not a savvy enough LaTeX user to figure it out (at least in the timescale I need it figured out!).

Here are my actual codes:

Bogus code
\documentclass[11pt]{gthesis2}
\usepackage{thesis2}

\begin{document}
blah, blah, blah \cite[]{nicholls2004}. M \cite[]{padman1992}

\bibliographystyle{ametsoc}
\bibliography{bibliography}

\end{document}


bogus result
blah, blah, blah [Nicholls et al.(2004)Nicholls, Pudsey, and Morris, ]. M [Padman et al.(1992)Padma ...]



good code
\documentclass[draft,jgrga]{agutex}

\begin{document}
blah, blah, blah \cite[]{nicholls2004}. M \cite[]{padman1992}

\bibliographystyle{ametsoc}
\bibliography{bibliography}

\end{document}


good result
blah, blah, blah [Nicholls et al., 2004]. M [Padman et al., 1992]


I'm running TeXShop 2.47 on Mac OSX 10.8.5.

Suggestions would be soooo awesome. Not sure how to attach class or style files but I can provide those if needed.

Thank you!

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 3602
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Feb 28, 2014 8:26 pm

I have one suggestion for you, but i guess you won't like it.
Nobody of us has access to the documentclass you are refering to, so the best way to get support is by contacting the maintainer of the class/package file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

oceanarches
Posts: 3
Joined: Fri Feb 28, 2014 7:45 pm

Postby oceanarches » Fri Feb 28, 2014 9:26 pm

Thanks Johannes. Answers are answers, likable or not. I kinda figured something along the lines of yours. Unfortunately, these documents are provided "as is"...no one to maintain or ask. I'll get a bit more pesky about it and see if I can drum someone up who might fill that role over here. Thanks for your totally unhelpful answer. ;)

oceanarches
Posts: 3
Joined: Fri Feb 28, 2014 7:45 pm

Postby oceanarches » Fri Feb 28, 2014 10:00 pm

Okay, Johannes...your answer was totally helpful after all. I decided to be a big girl and try to figure it out. Turns out that reading comments is helpful! In the .bst file there was a note about including the natbib package, so I tried this in my test file and it worked! The citation looks good. I then went to put
  1. \usepackage{natbib}

into my dissertation file and it balked at my .bbl :-(

the error was "\newblock undefined" and it points to the first line in my .bbl

  1. \begin{thebibliography}{110}
  2. \providecommand{\natexlab}[1]{#1}
  3. \expandafter\ifx\csname urlstyle\endcsname\relax
  4. \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else
  5. \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup
  6. \urlstyle{rm}\Url}\fi


google search yielded:
this is a known
incompatibility problem between natbib and beamer, and the solution is
\def\newblock{}
in the preamble.


So...I put \def\newblock{} into the preamble of my dissertation.tex file et voila! Unbelievable! It worked!!! I am now a LaTeX GURU! Who knew?!?!
:D

So...thanks after all for your non-answer. It turned out to be a helpful push. :)


Return to “TeXShop”

Who is online

Users browsing this forum: No registered users and 1 guest