0

I am using TexShop 3.5.1, Bibdesk 1.6.3, on Mac OS 10.10.3. I am trying to compile a bibliography on a latex document that previously successfully compiled. Since then I have updated from the previous Mac OS 10.9 to Yosemite (10.10.3).

Now when I compile using the Applescript Bibliography option on TexShop, the console nicely scrolls by as usual and a pdf is generated (as expected) with citations indicated by question marks. But at the next step, when it is time to generate the .bbl file, the console goes blank and no script rolls by. I then have to "abort" the console (and usually TexShop freezes and I have to "force quit" the application).

Same thing happens if I do the latex and biblatex steps separately. Tried removing aux files, no help.

Other complication: I was previously using biblatex before Yosemite upgrade, but present file uses bibtex and have changed over to bibtex by altering preferences in TexShop.


Simplest MWE I could think of:

\documentclass[11pt, oneside]{article}      % use "amsart" instead of "article" for AMSLaTeX format
\usepackage{geometry}                       % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                          % ... or a4paper or a5paper or ... 
%\geometry{landscape}                       % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}          % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}               % Use pdf, png, jpg, or eps§ with pdflatex; use eps in DVI mode
                                % TeX will automatically convert eps --> pdf in pdflatex        
\usepackage{amssymb}

\title{Brief Article}
\author{The Author}
%\date{}                            % Activate to display a given date or no date

\bibliographystyle{journal}


\begin{document}
\maketitle
%\section{}
%\subsection{}

Please work \cite{Smith:2008aa,Jones:2002aa}. I beg you \cite{Smith:2007aa}.

\bibliography{learned}

\end{document}  
Mico
  • 506,678
Bob
  • 263
  • Welcome to TeX.SE. Which version of MacTeX do you use? Where might the bibliography style journal be found? – Mico May 09 '15 at 08:06
  • 4
    Hi and welcome, have you tried running BibTeX in terminal to rule out any editor issues? – Johannes_B May 09 '15 at 08:09
  • Thanks Mico and Johannes! Mico: The version of MacTex is TexLive-2014. I have run the "updates" and apparently it is the latest. The bibliography style journal is in the same folder as the .tex file. Sorry, Johannes, I am too helpless to know how to run BibTex in terminal. I will try and look it up. – Bob May 09 '15 at 08:25
  • Hi Johannes: As you suggested I ran BibTex in terminal and successfully generated a .bbl file! There were three complaints in the terminal of the nature "You can't pop an empty literal stack for entry Greenfield:2013aa while executing---line 1233 of file journal.bst" but I think this is idiosyncratic for those citation entries. I tried using TexShop having built the .bbl to insert the citations, but no luck. – Bob May 09 '15 at 08:34
  • Hi Johannes again, I copied and pasted .bbl file in references section (commenting out \bibliography{learned}) and the bibliography then compiled! So, not quite sure what is going wrong, presumably connected with the "editor issues" you mentioned? – Bob May 09 '15 at 08:41
  • Could you please provide a .bib file, only with the two Smith… references? It would be easier for us to track the error. I also use TeXShop and MacTeX-2014 on Yosemite. Note that you don't need to use the terminal to run LaTeX, BibTeX, etc, … separetely. You can also use the Typeset menu and button accordingly: first with LaTeX, then once with BibTeX, and then twice again with LaTeX. – Franck Pastor May 09 '15 at 08:48
  • That sounds like the bst file is done using makebst which has the habit of introducing faults. I am not sure if this make texshop behave the way it does, but in order to get good results, the bst should be fixed. – Johannes_B May 09 '15 at 08:54
  • Thanks again @Johannes_B! You are correct that the .bst file was constructed using makebst. However, this .bst file has correctly performed for many months previously and I simply copied it to a new folder. Fixing the .bst file essentially would mean recreating it again using makebst? – Bob May 09 '15 at 08:57
  • No, there is a bug in makebst introducing the same error. Please have a look at Debugging a custom-bib bst file that crashes on book items – Johannes_B May 09 '15 at 09:01
  • Thanks @FranckPastor! I have tried to copy the .bib file by "dragging" the file to the comments box, not sure if this will work /Users/dsmith/Desktop/crap/learned.bib (please forgive ignorance). I will look up how to attach if not successful. Thanks for tip on not needing Terminal, I usually do follow the prescription you suggest. – Bob May 09 '15 at 09:01
  • Debugging bibliography stuff isn't an easy task, you might get better and faster results using biblatex. With biblatex, you can customize your bibliography using LaTeX macros. – Johannes_B May 09 '15 at 09:04
  • @Bob Sorry, but I can't download your file, it is still in your computer :-). I suggest copying the two mentioned references in your question. You need only editing this question and copy-paste these two references, it would be enough. – Franck Pastor May 09 '15 at 09:04
  • Hi @FranckPastor! Sorry, think I have it now: @article{Xu:2003aa, Abstract = {blurb}, Author = {Xu, Shizhong}, Date-Added = {2014-12-10 06:32:48 +0000}, Date-Modified = {2014-12-27 05:47:58 +0000}, Journal = {Genetics}, Journal-Full = {Genetics}, Mesh = {Chromosome Mapping; Genetic Markers; Genetics, Population; Humans; Models, Genetic; Models, Theoretical; Quantitative Trait, Heritable}, Month = {Dec}, Number = {4}, Pages = {2259-2268}, Pmc = {PMC1462909}, Pmid = {14704201}, Pst = {ppublish}, Title = {{Theoretical basis of the Beavis effect}}, Volume = {165}, Year = {2003}} – Bob May 09 '15 at 09:18
  • Thanks @Johannes_B! Debugging that code, does look like a bridge too far for my feeble skills. However, you are quite correct that the three items that the terminal complains about are indeed books. Are you saying that the process of building the .bbl "hangs up" because of the "book bug" and these book items? But then why did it compile perfectly well using the old Mavericks Mac OS? Is the bug only a problem with Yosemite? To test the idea, I went ahead and deleted the three books from the bibliography and making the .bbl from TexShop still hangs up. Thanks again for your insights. – Bob May 09 '15 at 09:23
  • The bst bug is completely unrelated to the current issue with texshop and i have no idea what causes it to hang. Try any other BibTeX example from around here that you are sure should work. Maybe some issue has been introduced with the latest texshop release. – Johannes_B May 09 '15 at 09:30
  • Hmm, as it happens @Johannes_B, I did accept an autoupdate for TexShop about 3 weeks ago. Perhaps there is some bug in the update? By the way, I tried biblatex, and I hate to be a wet blanket, but I found it harder to customize bibliographies with biblatex than using bibtex with .makebst, but then again I am not very computer savvy and the biblatex macros seemed very dense and hard to understand to me. – Bob May 09 '15 at 09:42
  • Hi @Mico, The version of MacTex is TexLive-2014. I have run the "updates" and apparently it is the latest (April 14, 2015). The bibliography style journal is in the same folder as the .tex file and was made using custom.bst by me. Thanks! – Bob May 09 '15 at 09:47

1 Answers1

2

First off just want to thank you all for your help -- greatly appreciated!! I reached out to Herb Schulz who is a prominent "aider and abettor" on MacTex at tug.org. He thought it likely that the Applescript Bibliography macro had been broken by the upgrade to Yosemite. He suggested that I use the pdflatexmk engine in TeXShop to take care of all the compiling steps automatically, which I am now doing.

I can do no better than to quote Herb's own words as follows:

"First, in the Source window toolbar there should be a popup menu listing all the available engines. In all recent versions of TeXShop you should see a pdflatexmk engine. If you are compiling using pdflatex you're set. If you don't see the pdflatexmk engine on that list (that would happen if you have been using TeXShop for a long time) or you need the latexmk engine you'll have to move those engines into place. First quit TeXShop. Then move all the files with extension .engine from ~/Library/TeXShop/Engines/Inactive/Latexmk two levels up, to ~/Library/TeXShop/Engines. (Note: ~/Library is the Library folder in your HOME folder. Under OS X 10.7 and later it is invisible by default. To open that folder Click on the Go Menu in Finder and press the Option key and a new menu item for Library will appear; click on that item.) Open TeXShop and see that the additional engines (including the pdflatexmk and latexmk) are now shown in the popup menu in the Source window toolbar.

Once the pdflatexmk/latexmk engine is shown you activate it for a source file by placing the line

% !TEX TS-program = pdflatexmk

at the top of the file (or replace pdflatexmk above with latexmk if you compile with latex rather than pdflatex). From then on simply clicking on Typeset->Typeset (Cmd-T) should take you through all the steps necessary to compile your document automatically."

A relevant web page is

all-in-one-engine for TeXShop

This strategy will also work with Biblatex/biber and has the advantage that the "BibTex Engine" settings in the "Engine" tab of the TexShop Preferences do not have to be changed from bibtex to biber -- it all happens automatically.

Bob
  • 263