BibTeX, biblatex and biberMiktex+Texmaker+Bibtex=giving me a hard time

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
albinoblacksheep
Posts: 12
Joined: Fri Mar 05, 2010 7:53 pm

Miktex+Texmaker+Bibtex=giving me a hard time

Post by albinoblacksheep »

Hi all!

I am new to the forum and after searching for a solution for my problem - both on the www and here in the forum - I still cannot figure it out, so I hoped you could help me.
I read all the instructions on what to do before you post, but since my English is not perfect and I am an absolute newby with Latex, I didn't understand everything required, so please forgive me any mistakes.

I am using Texmaker 1.9.1 and Miktex 2.7 on Win XP. I want to handle my bibliography with Bibtex - but somehow I cannot find how to do that, since it does not add the bibliography to the end of the document nor does it find my citations (instead it puts a [?] and puts out the warning: Citation 'first' on page 1 undefined

Here is a MWE. I have the files MWE.tex and MWE.bib. When I run the sequence PDFLaTeX,Bibtex,PDFLaTeX,PDFLaTeX, then no citations work. There is no MWE.bbl file created.
When I try to run LaTeX instead of PDFLaTeX then I get an error: ! Package pdftex.def Error: PDF mode expected, but DVI mode detected!


here the .tex file:

Code: Select all

\documentclass[a4paper,bibtotoc,oneside]{scrbook} 

\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel} 

\usepackage{amsmath,amssymb,amsfonts,amstext}


\usepackage[pdftex]{graphicx}

\setlength{\textheight}{225mm}

\setcounter{secnumdepth}{3} %uncomment this to not display all the subsubsections in the
\setcounter{tocdepth}{3}    %table of contents
 
\begin{document}


\newpage



\tableofcontents\thispagestyle{empty}
\newpage

\setcounter{page}{1}
\chapter{Introduction}
Itse me, mario! \cite{first}

\newpage
\bibliographystyle{abstract}
\bibliography{MWA}

\end{document}
and here the .bib file:

Code: Select all


@article{first,
		key						={},
		author				={Kurt G{\"o}del},
		title					={{\"U}ber formal unentscheidbare {S}{\"a}tze der {P}rincipia {M}athematica und verwandter {S}ysteme {I}}},
		booktitle			={},
    chapter				={},
	 	edition				={},
    editor				={},
    howpublished	={},
    institution		={},
    journal				={Monatshefte f{\"u}r Mathematik und Physik},
    month					={},
    note					={},
    number				={},
    organization	={},
    pages					={173--198},
    publisher			={},
		address				={},
    school				={},
    series				={},
    type					={},
    volume				={38},
    year					={1931},
}
Since I get no errors and the pdf is produced, I assume that all the pathways/adresses to the different .exe files are correct (eg. "C:/Programme/MiKTeX 2.7/miktex/bin/pdflatex.exe" -interaction=nonstopmode %.tex"
Please help me to find the proper settings and ways to use Bibtex for my literature management. Thank you very much!
Cheers, Sebastian

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Miktex+Texmaker+Bibtex=giving me a hard time

Post by frabjous »

The bib file has an extra }

The line:
title = {{\"U}ber formal unentscheidbare {S}{\"a}tze der {P}rincipia {M}athematica und verwandter {S}ysteme {I}}},
should be
title = {{\"U}ber formal unentscheidbare {S}{\"a}tze der {P}rincipia {M}athematica und verwandter {S}ysteme {I}},
The MWE otherwise works perfectly well for me when compiling pdflatex, bibtex, pdflatex, pdflatex.

If you want it to work when compiling with latex, change:

\usepackage[pdftex]{graphicx}

to simply:

\usepackage{graphicx}

(Actually, I'd change that anyway. There's no need for the option there.)

If you still have problems with these changes, insert \lisftfiles into the code, and upload the .log file here.
albinoblacksheep
Posts: 12
Joined: Fri Mar 05, 2010 7:53 pm

Miktex+Texmaker+Bibtex=giving me a hard time

Post by albinoblacksheep »

Hi frabjous,

thank you for your very quick reply!
Unfortunately it did not bring the wanted success :( I still get the same result.

I added \listfiles to the document, the log file produced is:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2010.1.6)  5 MAR 2010 21:35
entering extended mode
**MWE.tex
(MWE.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
("C:\Programme\MiKTeX 2.7/tex/latex\koma-script\scrbook.cls"
Document Class: scrbook 2009/04/03 v3.03a KOMA-Script document class (book)
("C:\Programme\MiKTeX 2.7/tex/latex\koma-script\scrkbase.sty"
Package: scrkbase 2009/04/03 v3.03a KOMA-Script package (KOMA-Script-dependent 
basics and keyval usage)

("C:\Programme\MiKTeX 2.7/tex/latex\koma-script\scrbase.sty"
Package: scrbase 2009/04/03 v3.03a KOMA-Script package (KOMA-Script-independent
 basics and keyval usage)

("C:\Programme\MiKTeX 2.7/tex/latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
("C:\Programme\MiKTeX 2.7/tex/latex\koma-script\scrlfile.sty"
Package: scrlfile 2009/03/25 v3.03 KOMA-Script package (loading files)

Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm

))) ("C:\Programme\MiKTeX 2.7/tex/latex\koma-script\tocbasic.sty"
Package: tocbasic 2009/01/20 v3.02a(package)
)
Package tocbasic Info: omitting babel extension for `toc'
(tocbasic)             because of feature `nobabel' available
(tocbasic)             for `toc' on input line 116.
Package tocbasic Info: omitting babel extension for `lof'
(tocbasic)             because of feature `nobabel' available
(tocbasic)             for `lof' on input line 117.
Package tocbasic Info: omitting babel extension for `lot'
(tocbasic)             because of feature `nobabel' available
(tocbasic)             for `lot' on input line 118.


Class scrbook Warning: You've used obsolete option `bibtotoc'.
(scrbook)              Usage of this option indicates an old document and
(scrbook)              changes compatibility level using
(scrbook)              `bibliography=totoc,version=first'.
(scrbook)              If you don't want this, you should simply replace
(scrbook)              usage of option `bibtotoc' by `bibliography=totoc'.

Class scrbook Info: Switching compatibility level to `first'.
Class scrbook Info: You've used standard option `oneside'.
(scrbook)           This is correct!
(scrbook)           Internaly I'm using `twoside=false'.
(scrbook)           If you'd like to set the option with \KOMAoptions,
(scrbook)           you'd have to use `twoside=false' there
(scrbook)           instead of `oneside', too.
Class scrbook Info: File `scrsize11pt.clo' used instead of
(scrbook)           file `scrsize11.clo' to setup font sizes on input line 1267
.
("C:\Programme\MiKTeX 2.7/tex/latex\koma-script\scrsize11pt.clo"
File: scrsize11pt.clo 2009/04/03 v3.03a KOMA-Script font size class option (11p
t)
)
("C:\Programme\MiKTeX 2.7/tex/latex\koma-script\typearea.sty"
Package: typearea 2009/04/03 v3.03a KOMA-Script package (type area)

Package typearea, 2009/04/03 v3.03a KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-

\ta@bcor=\skip41
\ta@div=\count79
Package typearea Info: You've used standard option `a4paper'.
(typearea)             This is correct!
(typearea)             Internaly I'm using `paper=a4'.
(typearea)             If you'd like to set the option with \KOMAoptions,
(typearea)             you'd have to use `paper=a4' there
(typearea)             instead of `a4paper', too.
Package typearea Info: You've used standard option `oneside'.
(typearea)             This is correct!
(typearea)             Internaly I'm using `twoside=false'.
(typearea)             If you'd like to set the option with \KOMAoptions,
(typearea)             you'd have to use `twoside=false' there
(typearea)             instead of `oneside', too.
\ta@hblk=\skip42
\ta@vblk=\skip43
\ta@temp=\skip44
Package typearea Info: These are the values describing the layout:
(typearea)             DIV  = 10
(typearea)             BCOR = 0.0pt
(typearea)             \paperwidth      = 597.50793pt
(typearea)              \textwidth      = 418.25555pt
(typearea)              DIV departure   = -6%
(typearea)              \evensidemargin = 17.3562pt
(typearea)              \oddsidemargin  = 17.3562pt
(typearea)             \paperheight     = 845.04694pt
(typearea)              \textheight     = 595.80026pt
(typearea)              \topmargin      = -25.16531pt
(typearea)              \headheight     = 17.0pt
(typearea)              \headsep        = 20.40001pt
(typearea)              \topskip        = 11.0pt
(typearea)              \footskip       = 47.60002pt
(typearea)              \baselineskip   = 13.6pt
(typearea)              on input line 1110.
)
\c@part=\count80
\c@chapter=\count81
\c@section=\count82
\c@subsection=\count83
\c@subsubsection=\count84
\c@paragraph=\count85
\c@subparagraph=\count86
\abovecaptionskip=\skip45
\belowcaptionskip=\skip46
\c@pti@nb@sid@b@x=\box26
\c@figure=\count87
\c@table=\count88
\bibindent=\dimen102
) ("C:\Programme\MiKTeX 2.7/tex/latex\base\inputenc.sty"
Package: inputenc 2006/05/05 v1.1b Input encoding file
\inpenc@prehook=\toks15
\inpenc@posthook=\toks16

("C:\Programme\MiKTeX 2.7/tex/latex\base\ansinew.def"
File: ansinew.def 2006/05/05 v1.1b Input encoding file
))
("C:\Programme\MiKTeX 2.7/tex/latex\base\fontenc.sty"
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

("C:\Programme\MiKTeX 2.7/tex/latex\base\t1enc.def"
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.
))
("C:\Programme\MiKTeX 2.7/tex/generic\babel\babel.sty"
Package: babel 2008/07/06 v3.8l The Babel package

*************************************
* Local config file bblopts.cfg used
*
("C:\Programme\MiKTeX 2.7/tex/latex\00miktex\bblopts.cfg"
File: bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration
)
("C:\Programme\MiKTeX 2.7/tex/generic\babel\english.ldf"
Language: english 2005/03/30 v3.3o English support from the babel system

("C:\Programme\MiKTeX 2.7/tex/generic\babel\babel.def"
File: babel.def 2008/07/06 v3.8l Babel common definitions
\babel@savecnt=\count89
\U@D=\dimen103
)
\l@canadian = a dialect from \language\l@american 
\l@australian = a dialect from \language\l@british 
\l@newzealand = a dialect from \language\l@british 
))
("C:\Programme\MiKTeX 2.7/tex/latex\amsmath\amsmath.sty"
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip47

For additional information on amsmath, use the `?' option.
("C:\Programme\MiKTeX 2.7/tex/latex\amsmath\amstext.sty"
Package: amstext 2000/06/29 v2.01

("C:\Programme\MiKTeX 2.7/tex/latex\amsmath\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks17
\ex@=\dimen104
))
("C:\Programme\MiKTeX 2.7/tex/latex\amsmath\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen105
)
("C:\Programme\MiKTeX 2.7/tex/latex\amsmath\amsopn.sty"
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count90
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count91
\leftroot@=\count92
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count93
\DOTSCASE@=\count94
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box27
\strutbox@=\box28
\big@size=\dimen106
LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
\macc@depth=\count95
\c@MaxMatrixCols=\count96
\dotsspace@=\muskip10
\c@parentequation=\count97
\dspbrk@lvl=\count98
\tag@help=\toks18
\row@=\count99
\column@=\count100
\maxfields@=\count101
\andhelp@=\toks19
\eqnshift@=\dimen107
\alignsep@=\dimen108
\tagshift@=\dimen109
\tagwidth@=\dimen110
\totwidth@=\dimen111
\lineht@=\dimen112
\@envbody=\toks20
\multlinegap=\skip48
\multlinetaggap=\skip49
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
("C:\Programme\MiKTeX 2.7/tex/latex\amsfonts\amssymb.sty"
Package: amssymb 2002/01/22 v2.2d

("C:\Programme\MiKTeX 2.7/tex/latex\amsfonts\amsfonts.sty"
Package: amsfonts 2001/10/25 v2.2f
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 132.
))
("C:\Programme\MiKTeX 2.7/tex/latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Programme\MiKTeX 2.7/tex/latex\graphics\graphics.sty"
Package: graphics 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("C:\Programme\MiKTeX 2.7/tex/latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Programme\MiKTeX 2.7/tex/latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 90.

("C:\Programme\MiKTeX 2.7/tex/latex\pdftex-def\pdftex.def"
File: pdftex.def 2008/09/08 v0.04l Graphics/color for pdfTeX
\Gread@gobject=\count102
))
\Gin@req@height=\dimen113
\Gin@req@width=\dimen114
) (MWE.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 19.
LaTeX Font Info:    ... okay on input line 19.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 19.
LaTeX Font Info:    ... okay on input line 19.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 19.
LaTeX Font Info:    ... okay on input line 19.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 19.
LaTeX Font Info:    ... okay on input line 19.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 19.
LaTeX Font Info:    ... okay on input line 19.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 19.
LaTeX Font Info:    ... okay on input line 19.

("C:\Programme\MiKTeX 2.7/tex\context\base\supp-pdf.tex"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count103
\scratchdimen=\dimen115
\scratchbox=\box29
\nofMPsegments=\count104
\nofMParguments=\count105
\everyMPshowfont=\toks22
\MPscratchCnt=\count106
\MPscratchDim=\dimen116
\MPnumerator=\count107
\everyMPtoPDFconversion=\toks23
)
LaTeX Font Info:    Try loading font information for T1+cmss on input line 26.
 ("C:\Programme\MiKTeX 2.7/tex/latex\base\t1cmss.fd"
File: t1cmss.fd 1999/05/25 v2.5h Standard LaTeX font definitions
) (MWE.toc
Class scrbook Info: You've told me to use the font selection of the element
(scrbook)           `sectioning' that is an alias of element `disposition'
(scrbook)            on input line 2.
)
\tf@toc=\write3
 [1




pdfTeX warning: pdflatex (file pdftex.map): cannot open font map file
]
Chapter 1.

LaTeX Warning: Citation `first' on page 1 undefined on input line 31.

[1

] (MWE.bbl) (MWE.aux)

 *File List*
 scrbook.cls    2009/04/03 v3.03a KOMA-Script document class (book)
scrkbase.sty    2009/04/03 v3.03a KOMA-Script package (KOMA-Script-dependent ba
sics and keyval usage)
 scrbase.sty    2009/04/03 v3.03a KOMA-Script package (KOMA-Script-independent 
basics and keyval usage)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty    2009/03/25 v3.03 KOMA-Script package (loading files)
tocbasic.sty    2009/01/20 v3.02a(package)
scrsize11pt.clo    2009/04/03 v3.03a KOMA-Script font size class option (11pt)
typearea.sty    2009/04/03 v3.03a KOMA-Script package (type area)
inputenc.sty    2006/05/05 v1.1b Input encoding file
 ansinew.def    2006/05/05 v1.1b Input encoding file
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
   babel.sty    2008/07/06 v3.8l The Babel package
 bblopts.cfg    2006/07/31 v1.0 MiKTeX 'babel' configuration
 english.ldf    2005/03/30 v3.3o English support from the babel system
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
 amssymb.sty    2002/01/22 v2.2d
amsfonts.sty    2001/10/25 v2.2f
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  pdftex.def    2008/09/08 v0.04l Graphics/color for pdfTeX
supp-pdf.tex
  t1cmss.fd    1999/05/25 v2.5h Standard LaTeX font definitions
     MWE.bbl
 ***********


LaTeX Warning: There were undefined references.

 ) 
Here is how much of TeX's memory you used:
 3316 strings out of 95304
 41806 string characters out of 1183186
 116586 words of memory out of 1500000
 6507 multiletter control sequences out of 110000
 7814 words of font info for 20 fonts, out of 3000000 for 5000
 14 hyphenation exceptions out of 8191
 36i,6n,51p,217b,160s stack positions out of 5000i,500n,10000p,200000b,50000s
 <C:\Dokumente und Einstellungen\Sebi\Lokale Einstellungen\Anwendungsdaten\Mi
KTeX\2.7\fonts\pk\ljfour\jknappen\ec\dpi600\ecbx1095.pk> <C:\Dokumente und Eins
tellungen\Sebi\Lokale Einstellungen\Anwendungsdaten\MiKTeX\2.7\fonts\pk\ljfour\
jknappen\ec\dpi600\ecrm1095.pk> <C:\Dokumente und Einstellungen\Sebi\Lokale Ein
stellungen\Anwendungsdaten\MiKTeX\2.7\fonts\pk\ljfour\jknappen\ec\dpi600\ecsx10
95.pk> <C:\Dokumente und Einstellungen\Sebi\Lokale Einstellungen\Anwendungsdate
n\MiKTeX\2.7\fonts\pk\ljfour\jknappen\ec\dpi600\ecsx2074.pk>
Output written on MWE.pdf (2 pages, 15680 bytes).
PDF statistics:
 63 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)
this is the .aux file created:

Code: Select all

\relax 
\select@language{english}
\@writefile{toc}{\select@language{english}}
\@writefile{lof}{\select@language{english}}
\@writefile{lot}{\select@language{english}}
\citation{first}
\@writefile{toc}{\contentsline {chapter}{\numberline {1}Introduction}{1}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\bibstyle{abstract}
\bibdata{MWA}
However, a small success can be reported: LaTeX works now 8-)
I hope you find the problem,
thank you very much for your effort!
Cheers
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Miktex+Texmaker+Bibtex=giving me a hard time

Post by frabjous »

You should probably do something about that warning about the bibtotoc option -- such as remove it, but I don't think that's the problem here.

You said it's not producing a .bbl file? Is it producing a .blg file? If so, can you post that here?

Does Texmaker report anything funny when you run Bibtex?

As I said, it works for me. (Resulting PDF is attached.)
Attachments
mwe.pdf
(75.2 KiB) Downloaded 420 times
albinoblacksheep
Posts: 12
Joined: Fri Mar 05, 2010 7:53 pm

Miktex+Texmaker+Bibtex=giving me a hard time

Post by albinoblacksheep »

Hmmm...

I removed the bibtotoc - no improvement, except the warning is gone.
There is a .blg file created, looks suspicious:

Code: Select all

This is BibTeX, Version 0.99cThe top-level auxiliary file: MWE.aux
I couldn't open style file abstract.bst
---line 10 of file MWE.aux
 : \bibstyle{abstract
 :                   }
I'm skipping whatever remains of this command
I found no style file---while reading file MWE.aux
(There were 2 error messages)
Am I missing a folder with some style infos here or something like this?

Maybe its a really stupid beginners mistake, so I will describe you briefly what I am doing when compiling:
1) open the .tex
2) open the .bbl in a second tab
3) select the .tex tab and run pdflatex
4) select the .bbl tab and run bibtex
5) repeat 3) twice.
Is that correct so?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Miktex+Texmaker+Bibtex=giving me a hard time

Post by frabjous »

You're missing the file abstract.bst -- which is a bibliography style file. Yeah, it can't generate a bibliography without it.

I believe this is part of the bibtools package. Try (re)installing that package through the MikTeX package manager.

(I don't know much about Texmaker--don't use it. But I don't think switching tabs should be necessary. Running pdflatex, bibtex, pdflatex, pdflatex, all from the .tex file tab should do it. But of course you need all the files it calls upon.)
albinoblacksheep
Posts: 12
Joined: Fri Mar 05, 2010 7:53 pm

Re: Miktex+Texmaker+Bibtex=giving me a hard time

Post by albinoblacksheep »

Thanks so much!

I re-installed miktex, updated to the newer version 2.8 - but still didnt work.
But in the Bibtex folder I found that tha plain.bst existed, so I changed \bibliographystyle{abstract} to \bibliographystyle{plain} and now it works. Will search for the abstract one tomorrow, now its time for bed, here in Europe!

Thanks again
Sebastian
Post Reply