Lyx Referenzen durchgehend nummerieren

Editoren wie TexWorks, TeXmaker, TeXstudio, TeXnicCenter, Kile, LyX, vi, Emacs und Co.


Tut-Ench

Lyx Referenzen durchgehend nummerieren

Beitrag von Tut-Ench »

Hallo liebes Forum,

ich steige gerade von Kile auf Lyx um und habe derzeit das kleine aber unfeine Problem, dass Lyx die Referenzen nicht durchgehend, sondern abhängig von der Reihenfolge in der .bib-Datei nummeriert. Hier ein Beispiel:
% Quellcode vorschauen

%% LyX 2.0.0rc3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[ngerman,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\begin{document}
\begin{itemize}
\item Eine Referenz hier bitte\foreignlanguage{ngerman}{\cite{Eckle2008a}}
\item Zweite Referenz da.\foreignlanguage{ngerman}{\cite{Bauer2005}}
\item Leider alles ungeordnet.\foreignlanguage{ngerman}{\cite{Shafir2012,Einstein1935,Galapon2012,Arb2009,Bauer2005,Dahlstr2007,Eckle2008a,Eckle2008b,Heinen2007,Heisenberg1996,Keldysh1965,R.FRITZundD.SCHULZE1968,Schrodinger1935,Search2012}}
\selectlanguage{ngerman}%
\item \bibliographystyle{plain}
\bibliography{BA_references}
\selectlanguage{english}
\end{itemize}

\end{document}
Ich weiß nicht, wieviel Sinn das macht. Die erste Referenz (ECKLE) hat die 'Nummer' 6, die darauf folgende die Nummer 2.
Ich hätte es gerne kontinuierlich durchnummeriert.
Die .bib-Datei kann ich natürlich anpassen, aber da ich sie mit Mendeley erzeuge, müsste ich nach jeder Aktualisierung immer die Nummer im Eintrag ändern. Das muss doch eleganter gehen - ist doch Latex.
Mit Kile hatte ich solche Probleme nicht.

Vielen Dank im Voraus für Unterstützung.

Tut-Ench

Besserwisser

Beitrag von Besserwisser »

Die Reihenfolge der Einträge in der bbl-Datei, die aus der bib-Datei erzeugt wird, und damit auch die Nummerierung der Einträge hängt vom verwendeten Literaturstil ab. Da der von Dir verwendete Stil plain.bst alphabetisch sortiert, ist er schlicht nicht der richtige für Dich. Bevor Du Dich aber lange mit unterschiedlichen bst-Dateien wie plain, oder unsrt rumschlägst und dann möglicherweise noch feststellst, dass die Wandlung der Groß-/Kleinschreibung oder ein "and" statt eines "und" u. ä. Dir auch nicht passen, würde ich eher einen tiefen Blick in die Anleitung von biblatex empfehlen.

Tut-Ench

schwieriger als gedacht

Beitrag von Tut-Ench »

Danke für den Tipp.
Ich hab mir biblatex installiert und bin nach der Anleitung vorgegangen (da ich nummerierte Referenzen möchte habe ich den ersten Schritt übersprungen).
Ich bekomme allerings haufenweise Fehlermeldungen.
Unter anderem scheint mir, dass der Befehl \addbibresource nicht existiert.
Hier die Fehlermeldung die ich bekomme:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.11.8)  7 AUG 2013 19:12
entering extended mode
 %&-line parsing enabled.
**Test_Dokument1.tex
(./Test_Dokument1.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, ngerman, german, german-x-2009-06-19, ngerman-x-2009-06-19, loaded.


(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(/usr/share/texmf-texlive/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.
)) (/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
Package: inputenc 2008/03/30 v1.1d Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
(/usr/share/texmf-texlive/tex/latex/base/latin9.def
File: latin9.def 2008/03/30 v1.1d Input encoding file
)) (/usr/share/texmf/tex/latex/biblatex/biblatex.sty
Package: biblatex 2010/03/19 v0.9a programmable bibliographies
(/usr/share/texmf-texlive/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2009/08/06 v1.8 e-TeX tools for LaTeX
(/usr/share/texmf-texlive/tex/latex/etex-pkg/etex.sty
Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)
\et@xins=\count87
)) (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks16
) (/usr/share/texmf-texlive/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
) (/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty
\Urlmuskip=\muskip10
Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.
)
\c@listtotal=\count88
\c@listcount=\count89
\c@liststart=\count90
\c@liststop=\count91
\c@citecount=\count92
\c@citetotal=\count93
\c@multicitecount=\count94
\c@multicitetotal=\count95
\c@instcount=\count96
\c@maxnames=\count97
\c@minnames=\count98
\c@maxitems=\count99
\c@minitems=\count100
\c@uniquename=\count101
\c@refsection=\count102
\c@refsegment=\count103
\c@maxextrayear=\count104
\c@maxextraalpha=\count105
\c@abbrvpenalty=\count106
\c@highnamepenalty=\count107
\c@lownamepenalty=\count108
\c@maxparens=\count109
\c@parenlevel=\count110
\blx@tempcnta=\count111
\blx@tempcntb=\count112
\blx@maxsection=\count113
\blx@maxsegment=\count114
\blx@notetype=\count115
\blx@parenlevel@text=\count116
\blx@parenlevel@foot=\count117
\labelnumberwidth=\skip43
\labelalphawidth=\skip44
\shorthandwidth=\skip45
\biblabelsep=\skip46
\bibitemsep=\skip47
\bibnamesep=\skip48
\bibinitsep=\skip49
\bibparsep=\skip50
\bibhang=\skip51
\blx@auxin=\read1
\blx@auxout=\write3
\c@labelname=\count118
\c@author=\count119
\c@shortauthor=\count120
\c@editor=\count121
\c@editora=\count122
\c@editorb=\count123
\c@editorc=\count124
\c@shorteditor=\count125
\c@bookauthor=\count126
\c@translator=\count127
\c@annotator=\count128
\c@commentator=\count129
\c@introduction=\count130
\c@foreword=\count131
\c@afterword=\count132
\c@holder=\count133
\c@namea=\count134
\c@nameb=\count135
\c@namec=\count136
\c@institution=\count137
\c@language=\count138
\c@location=\count139
\c@organization=\count140
\c@origlocation=\count141
\c@origpublisher=\count142
\c@pageref=\count143
\c@publisher=\count144
\c@lista=\count145
\c@listb=\count146
\c@listc=\count147
\c@listd=\count148
\c@liste=\count149
\c@listf=\count150
(/usr/share/texmf/tex/latex/biblatex/blx-compat.def
File: blx-compat.def 2010/03/19 v0.9a biblatex generic compatibility
) (/usr/share/texmf/tex/latex/biblatex/biblatex.def
File: biblatex.def 2010/03/19 v0.9a biblatex generic definitions
\c@smartand=\count151
)
Package biblatex Info: Trying to load bibliography style 'numeric'...
Package biblatex Info: ... file 'numeric.bbx' found.
(/usr/share/texmf/tex/latex/biblatex/bbx/numeric.bbx
File: numeric.bbx 2010/03/19 v0.9a biblatex bibliography style
Package biblatex Info: Trying to load bibliography style 'standard'...
Package biblatex Info: ... file 'standard.bbx' found.
(/usr/share/texmf/tex/latex/biblatex/bbx/standard.bbx
File: standard.bbx 2010/03/19 v0.9a biblatex bibliography style
))
Package biblatex Info: Trying to load citation style 'numeric'...
Package biblatex Info: ... file 'numeric.cbx' found.
(/usr/share/texmf/tex/latex/biblatex/cbx/numeric.cbx
File: numeric.cbx 2010/03/19 v0.9a biblatex citation style
Package biblatex Info: Redefining '\cite'.
Package biblatex Info: Redefining '\parencite'.
Package biblatex Info: Redefining '\footcite'.
Package biblatex Info: Redefining '\footcitetext'.
Package biblatex Info: Redefining '\textcite'.
Package biblatex Info: Redefining '\supercite'.
Package biblatex Info: Redefining '\cites'.
Package biblatex Info: Redefining '\parencites'.
)
Package biblatex Info: Trying to load configuration file...
Package biblatex Info: ... file 'biblatex.cfg' found.
(/usr/share/texmf/tex/latex/biblatex/biblatex.cfg
File: biblatex.cfg 
))
! Undefined control sequence.
<recently read> \addbibresource 
                                
l.12 \addbibresource
                    {/home/tut-ench/Dropbox/Uni/BA/BA_references.bib}
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.


! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.12 \addbibresource{/
                      home/tut-ench/Dropbox/Uni/BA/BA_references.bib}
You're in trouble here.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

! Missing $ inserted.
<inserted text> 
                $
l.12 ...resource{/home/tut-ench/Dropbox/Uni/BA/BA_
                                                  references.bib}
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 12.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 12.
! Extra }, or forgotten $.
l.12 ...tut-ench/Dropbox/Uni/BA/BA_references.bib}
                                                  
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.

! Missing $ inserted.
<inserted text> 
                $
l.13 
     
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

(/usr/share/texmf-texlive/tex/generic/babel/babel.sty
Package: babel 2008/07/06 v3.8l The Babel package
(/usr/share/texmf-texlive/tex/generic/babel/english.ldf
Language: english 2005/03/30 v3.3o English support from the babel system
(/usr/share/texmf-texlive/tex/generic/babel/babel.def
File: babel.def 2008/07/06 v3.8l Babel common definitions
\babel@savecnt=\count152
\U@D=\dimen103
)
\l@british = a dialect from \language\l@english 
\l@UKenglish = a dialect from \language\l@english 
\l@canadian = a dialect from \language\l@american 
\l@australian = a dialect from \language\l@british 
\l@newzealand = a dialect from \language\l@british 
) (/usr/share/texmf-texlive/tex/generic/babel/ngermanb.ldf
Language: ngermanb 2008/07/06 v2.6n new German support from the babel system
\l@naustrian = a dialect from \language\l@ngerman 
Package babel Info: Making " an active character on input line 92.
))
Package biblatex Info: Trying to load language 'ngerman'...
Package biblatex Info: ... file 'ngerman.lbx' found.
(/usr/share/texmf/tex/latex/biblatex/lbx/ngerman.lbx
File: ngerman.lbx 2010/02/14 v0.9 biblatex localization
Package biblatex Info: Trying to load language 'german'...
Package biblatex Info: ... file 'german.lbx' found.
(/usr/share/texmf/tex/latex/biblatex/lbx/german.lbx
File: german.lbx 2010/03/19 v0.9a biblatex localization
))

Package biblatex Warning: 'babel' detected but 'csquotes' missing.
(biblatex)                Loading 'csquotes' is strongly recommended.

\@quotelevel=\count153
No file Test_Dokument1.aux.
\openout1 = `Test_Dokument1.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 17.
LaTeX Font Info:    ... okay on input line 17.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 17.
LaTeX Font Info:    ... okay on input line 17.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 17.
LaTeX Font Info:    ... okay on input line 17.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 17.
LaTeX Font Info:    ... okay on input line 17.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 17.
LaTeX Font Info:    ... okay on input line 17.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 17.
LaTeX Font Info:    ... okay on input line 17.
\openout3 = `Test_Dokument1-blx.bib'.

Package biblatex Info: Trying to load bibliographic data...
Package biblatex Info: ... file 'Test_Dokument1.bbl' not found.
No file Test_Dokument1.bbl.
Package biblatex Info: Reference section=0 on input line 17.
Package biblatex Info: Reference segment=0 on input line 17.
Package biblatex Info: Trying to load language 'english'...
Package biblatex Info: ... file 'english.lbx' found.
(/usr/share/texmf/tex/latex/biblatex/lbx/english.lbx
File: english.lbx 2010/03/19 v0.9a biblatex localization
)
LaTeX Font Info:    Try loading font information for OMS+cmr on input line 20.
(/usr/share/texmf-texlive/tex/latex/base/omscmr.fd
File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info:    Font shape `OMS/cmr/m/n' in size <10> not available
(Font)              Font shape `OMS/cmsy/m/n' tried instead on input line 20.
REQ:2:bibtex:
binary=bibtex
option=-min-crossrefs=2
infile=Test_Dokument1
:REQ

LaTeX Warning: Citation 'Eckle2008a' on page 1 undefined on input line 20.

REQ:1:latex:REQ

LaTeX Warning: Citation 'Bauer2005' on page 1 undefined on input line 21.


LaTeX Warning: Citation 'Shafir2012' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Einstein1935' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Galapon2012' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Arb2009' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Bauer2005' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Dahlstr2007' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Eckle2008a' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Eckle2008b' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Heinen2007' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Heisenberg1996' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'Keldysh1965' on page 1 undefined on input line 22.


LaTeX Warning: Citation 'R.FRITZundD.SCHULZE1968' on page 1 undefined on input 
line 22.


LaTeX Warning: Citation 'Schrodinger1935' on page 1 undefined on input line 22.



LaTeX Warning: Citation 'Search2012' on page 1 undefined on input line 22.


! Package biblatex Error: '\bibliographystyle' invalid.

See the biblatex package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.27 }
      \selectlanguage{ngerman}
Use the package option 'style' instead.
I'm ignoring the command.


! Package biblatex Error: '\bibliography' invalid at this point.

See the biblatex package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.27 }
      \selectlanguage{ngerman}
'\bibliography' must be given in the preamble.
I'm ignoring the command.


Overfull \hbox (27.5307pt too wide) in paragraph at lines 22--28
[]\T1/cmr/m/n/10 Leider alles un-ge-ord-net.[][[], [], [], [],
 []


Overfull \hbox (70.6671pt too wide) in paragraph at lines 22--28
[]\T1/cmr/m/n/10 , [], [], [], [], [],
 []


Underfull \hbox (badness 10000) in paragraph at lines 22--28

 []


Underfull \hbox (badness 10000) in paragraph at lines 22--28

 []

[1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./Test_Dokument1.aux)

LaTeX Warning: There were undefined references.


Package biblatex Warning: Please (re)run BibTeX on the file(s):
(biblatex)                Test_Dokument1.aux
(biblatex)                and rerun LaTeX afterwards.

 )
(\end occurred inside a group at level 1)

### simple group (level 1) entered at line 12 ({)
### bottom level 
Here is how much of TeX's memory you used:
 4417 strings out of 495021
 68807 string characters out of 1181035
 214231 words of memory out of 3000000
 7607 multiletter control sequences out of 15000+50000
 5179 words of font info for 16 fonts, out of 3000000 for 9000
 32 hyphenation exceptions out of 8191
 30i,4n,27p,863b,2011s stack positions out of 5000i,500n,10000p,200000b,50000s
 </home/tut-ench/.texmf-var/fonts/pk/ljfour/jknappen/ec/ecbx100
0.600pk> </home/tut-ench/.texmf-var/fonts/pk/ljfour/jknappen/ec/ecrm1000.600pk>
</usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share
/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi7.pfb></usr/share/texmf-texli
ve/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
Output written on Test_Dokument1.pdf (1 page, 52166 bytes).
PDF statistics:
 107 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

Benutzeravatar
Johannes_B
Moderator
Moderator
Beiträge: 5079
Registriert: Do 1. Nov 2012, 14:55
Kontaktdaten:

Beitrag von Johannes_B »

Lädst du biblatex in die Dokumentpräambel?
TeXwelt - Fragen und Antworten Schaut vorbei und stellt Fragen.
LaTeX-Vorlagen?

Der Weg zum Ziel: Ruhe bewahren und durchatmen, Beiträge und unterstützende Links aufmerksam lesen, Lösungsansätze verstehen und ggf. nachfragen.

Tut-Ench

lassen wir das

Beitrag von Tut-Ench »

Ja, im Vorspann habe ich:
\usepackage[style=numeric]{biblatex}
\addbibresource{/home/tut-ench/Dropbox/Uni/BA/BA_references.bib}
So wie das in der Beschreibung angegeben war.

Ich bin gerade fast am überlegen, ob es nicht doch einfacher ist, wenn ich bei LaTeX (Kile) bleibe. Und LyX einfach LyX sein lasse. Damit kenne ich mich zumindest schon aus und da habe ich auch diese Probleme nicht..

Schreibt ihr mit LyX?

Mfg

Tut-Ench

Benutzeravatar
Johannes_B
Moderator
Moderator
Beiträge: 5079
Registriert: Do 1. Nov 2012, 14:55
Kontaktdaten:

Beitrag von Johannes_B »

Wenn du LaTeX-erfahren bist, warum steigst du dann überhaupt auf LyX um? Bei LaTeX bleibt dir die volle Kontrolle und bist nicht auf eventuell komischen Lyz-LaTeX-Export angewiesen.

Ich persönlich kann mit LyX nicht umgehen. Das find ich aber gar nicht schlimm.
TeXwelt - Fragen und Antworten Schaut vorbei und stellt Fragen.
LaTeX-Vorlagen?

Der Weg zum Ziel: Ruhe bewahren und durchatmen, Beiträge und unterstützende Links aufmerksam lesen, Lösungsansätze verstehen und ggf. nachfragen.

Tut-Ench

Beitrag von Tut-Ench »

Mich hatte das WYSIWYG irgendwie gereizt.
Zudem kann man ja auch LaTeX codes eingeben.
Allerdings merke ich, dass, was ich mir einst in LaTeX erarbeitet habe, sich nicht selbsterklärend in LyX ergibt.
Eine Sache sind die Referenzen. Eine Andere z.B. Verweise auf Grafiken und Tabellen. Das alles ist machbar, aber du hast wohl Recht: Ich bleibe bei LaTeX.
Ich wollte der Sache eben eine Chance geben.

Vielen Dank für die Unterstützung euch allen.

Tut-Ench

Tut-Ench

gelöst

Beitrag von Tut-Ench »

Hallo Forum,
also es hat mich doch nicht in Ruhe gelassen.
Gelöst wird das ganze durch die Umstellung des Stils in der BibTeX-Literaturverwaltung auf 'unsrt'.

MFG

Tut-Ench

Antworten