Embedding BBL File Contents in TeX Source

I need to embed the bibliography information from the .bbl file in the .tex source file. This, according to any number of places from Google, should be as easy as copying the contents of the .bbl file to the .tex file, replace the \bibliography{} command.

However, when I do this, I get the following error:

./Witmer.tex:82: Undefined control sequence. <argument> \@listctr l.82 \bibitem{bhole-ner_over_time} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ./source.tex:82: You can't use `\relax' after \the. <recently read> \[email protected] l.82 \bibitem{bhole-ner_over_time} I'm forgetting what you said and using zero instead.

I have no idea what the problem is at this point. I'm including the cite package, and all is well when I use the .bbl file.

I'm generating the bbl file with bibtex. The relevant section of the document:

\bibliographystyle{plain} \begin{thebibliography}{9} ...trimmed for size... \bibitem{geo-spatialexpressions} Annette Herskovits. \newblock {\em Representation and processing of spatial expressions}. \newblock Lawrence Erlbaum Associates, Inc., Mahwah, NJ, USA, 1998. \end{thebibliography}

Update:

Here's the problem and the proposed fix: The error basically means that the bibliography generation code is expecting that there should be some arguments to each \bibitem:

\bibitem[\protect\citeauthoryear{Herskovits}{1998}]{geo-spatialexpressions} Herskovits, A. \newblock 1998. \newblock {\em Representation and processing of spatial expressions}. \newblock Mahwah, NJ, USA: Lawrence Erlbaum Associates, Inc.

I was actually trying to use a style file that was messing with the definitions of \cite and the bibliography generation.

--------------Solutions-------------

You're right, it should just work.

I don't think the cite package will influence anything here. There's a post on comp.text.tex that mentions a similar error, involving the use of jurabib without an appropriate bibliography style, but I think we need more information before your problem can be solved.



After your edit I took another look; based on what you wrote originally, this works fine:

\documentclass[12pt]{article}
\usepackage{cite}
\begin{document}
\bibliographystyle{plain}
\begin{thebibliography}{1}
\bibitem{geo-spatialexpressions}
Annette Herskovits.
\newblock {\em Representation and processing of spatial expressions}.
\newblock Lawrence Erlbaum Associates, Inc., Mahwah, NJ, USA, 1998.
\end{thebibliography}
\end{document}

Hence highlighting the need to provide in the question what packages you're loading and what bibliography style you are using.

Regardless, it's good that you've managed to fix the problem :)

Is the contents of the .bbl file surrounded by a

\begin{thebibliography}
...
\end{thebibliography}

environment? I think that's necessary if you're going to include bibliography entries directly. (I always use bibtex so I'm not very familiar with that environment myself)

Category:latex Time:2009-01-21 Views:0
Tags: latex

Related post

  • How to parser XML exactly XLIFF files and get the *source* content in PHP 2009-11-10

    How to parser XML exactly XLIFF files and get the source content in PHP. how to get the source content of the xml file http://docs.oasis-open.org/xliff/v1.2/cs02/Sample%5FAlmostEverything%5F1.2%5Fstrict.xlf --------------Solutions------------- In XQu

  • MSBuild: Task to embedding a file before compilation 2011-01-28

    I have the following need: I'll have to create an MSBuild task that will produce an xml file, which I then need to embed as a resource to one of the projects being built. How do I change my MSBuild proj to accomplish that? Is there a built-in task I

  • Save of Word doc corrupts embedded image files 2013-03-04

    I have a Word doc that was last saved in 2012. At that time, the embedded image files (PNG files that had been inserted via "insert" rather than copy/paste) were fine. Yesterday I duplicated that file and re-saved it. When I opened the file the image

  • Embedded Excel File Linked to Multiple PowerPoint Slides 2013-05-09

    I would like to embed an excel file into powerpoint and access different tabs of that excel file from multiple slides in the presentation. I need the slides to all be linked to the same file, so calculations update, but I cannot link to a source file

  • Text File Contents To Outlook 2010 Tasks 2014-11-11

    Hi, How do you dump the contents of a text file into an Outlook task without getting that wretched linked icon ?? I have tried the following : (1) Object from the Import tab on the ribbon, then locating the file in question. The result is that it dum

  • Specific help with Xcode Project Template that is not doing substitution in file contents 2008-10-06

    We are trying to make a project template, but the documentation on this is spotty or non-existent. Doing some reverse-engineering on some template files, we have come up with the following. However, it doen't actually work! First of all, we have figu

  • Copy file contents with sed 2009-04-06

    I am using shell script. How to copy one file content to another file using "sed". I have to use only sed to complete this copy. --------------Solutions------------- If you actually wanted to use the write functionality in sed, you could use the w co

  • When you write TeX source, how do you use your editor's word wrap? 2009-05-22

    Do you use "hard wrapping" (either yourself or automatically by your editor) by inserting newlines into your source document at a certain line length, or do you write your paragraphs in one continual line and let your editor "soft-wrap" for you? Also

  • I want to read the PDF file content by content 2009-11-17

    IS THERE IS ANY Solution for My Problem Hi all, I want to read a PDF file having lots of text, images, tables in it. I want to read the entire file content by content page by page, from top to bottom. For example: The top of the page contains the Hea

  • Reading file content changes in .NET 2010-03-03

    In Linux, a lot of IPC is done by appending to a file in 1 process and reading the new content from another process. I want to do the above in Windows/.NET (Too messy to use normal IPC such as pipes). I'm appending to a file from a Python process, an

  • Vim script to compile TeX source and launch PDF only if no errors 2010-04-20

    I am switching to using Vim for for my LaTeX editing environment. I would like to be able to tex the source file from within Vim, and launch an external viewing if the compile was successful. I know about the Vim-Latex suite, but, if possible, would

  • Reading embedded XML file c# 2010-05-12

    How can I read from an embedded XML file - an XML file that is part of a c# project? I've added a XML file to my project and I want to read from it. I want the XML file to compile with the project because I don't want that it will be a resource which

  • Embedding wav files in AS3 Flash/Flex project? 2010-05-13

    The Flash IDE is capable of embedding many types of uncompressed sound files, including wav, and offers optional compression when publishing. However, the [Embed] tag, only seems to allow embedding of mp3 files. Is it truly impossible to embed an unc

  • File API: Returns file reference (object) or whole file content (string)? 2010-11-28

    In the plupload (plupload.html5.js), I see this code: // Blob is string so we need to fake chunking, this is not // ideal since the whole file is loaded into memory if (typeof(blob) == 'string') { chunkBlob = blob.substring(chunk * chunkSize, chunk *

  • Android WebView + Does it support embedded Flash files? 2011-01-14

    Can a WebView in Android support embedded Flash files? Using the default insert method of Dreamweaver, incorporating the swfobject_modified.js, I receive the standard "Content on this page requires a newer version of Adobe Flash Player." If I attempt

  • Jar File - Prevent Access to Source Code 2011-01-27

    I want to hand over a small Java app as a runnable jar but I do not want anybody to have access to my source code. Am I right in presuming that there is no source code (.java files) included with a jar file? User269799 --------------Solutions--------

  • How to read file content into a struct line by line in C 2011-02-14

    Here, I am trying to read the contents of a file line by line and create a struct for each line. The problem is when I print the list of words, every single one of them is the last word of the file (which is } in this sample). I believe since line ch

  • Embedding PDF files within HTML/ Problem with unwanted mousewheel movement 2011-04-21

    Does anyone out there embed PDF files for browser viewing? I am using embedded PDF files as a way to easily display reports through a browser (FireFox). The actual PDF is about 10 pages long, but the HTML page is coded with the embed tag and uses the

  • How to use Ant's 'sync' task, but based on file contents 2011-05-09

    I really like the Ant 'sync' task, but what I need to do is to copy files from a source folder to a destination folder based on whether or not the destination file's contents match the source file's contents, instead of checking the file modification

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 0.475 (s). 13 q(s)