BibTeX, biblatex and biberUse of \@year@ doesn't match its definition.

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Use of \@year@ doesn't match its definition.

Post by Stefan Kottwitz »

Run bibtex on your document file, not on the .bib file. On the command line it could look like

Code: Select all

latex test
bibtex test
latex test
latex test
I don't use file name extensions.

Btw. please don't use screenshots excessively in order to illustrate a problem. It's fine if a screenshot is really necessary or very useful. Not just for error messages! Please post messages as text. You know, forum search and google cannot find text in screenshots - this doesn't allow other users to find a topic and the solution, who search or google for the same problem.

Furthermore, if you need screenshots, in this case post them as attachment, because external links are unreliable.

You can get help here, just be aware that this public forum should be useful for the rest of the world who read, browse and google for similar problems.

Stefan

PS: well, I don't like moderation info in forum posts much, I let it here for the moment before others complain too ;-) it would be great if you would take a minute to edit your previous post (error messages instead of screenshots or changing into attachments, cutting big images to the relevant piece etc.) Did you notice - have a look at your previous posts, our fellow moderator Clemens did this already for you.
LaTeX.org admin

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

faun
Posts: 14
Joined: Thu Apr 28, 2011 1:13 pm

Use of \@year@ doesn't match its definition.

Post by faun »

It works with the testfile with only one entry in the bib-file.
With the original document, I still get the same error. This is the logfile.

Code: Select all

! Use of \@year@ doesn't match its definition.
\Y@ganser ->\@year@ D
ANIELE(2005)
l.187 \citeA{ganser}
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
I've uploaded the main tex-file and the bibfile as an attachement.
Attachments
bibtex.bib
BIB-file
(5.3 KiB) Downloaded 668 times
theorie.tex
Main-file
(12.4 KiB) Downloaded 582 times
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Use of \@year@ doesn't match its definition.

Post by CrazyHorse »

faun wrote:It works with the testfile with only one entry in the bib-file.
With the original document, I still get the same error. This is the logfile.

I've uploaded the main tex-file and the bibfile as an attachement.
there is no problem with current TeXLive 2012 when I modify your file theorie.tex so that it can be run. It makes no sense to use \input and \includegraphics when you do not provide the files. Here is the filelist of my successful run, which is at the end of the logfile when you put \listfiles into your preamble:

Code: Select all

 *File List*
    book.cls    2007/10/19 v1.4h Standard LaTeX document class
    bk11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 parskip.sty    2001/04/09 non-zero parskip adjustments
  a4wide.sty    1994/08/30
      a4.sty    2004/04/15 v1.2g A4 based page layout
   babel.sty    2008/07/08 v3.8m The Babel package
   dutch.ldf    2005/03/30 v3.8i Dutch 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    2009/06/22 v3.00
amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support
 apacite.sty    2012/02/25 v6.01 APA citation
 makeidx.sty    2000/03/29 v1.0m Standard LaTeX package
     url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
titlesec.sty    2011/12/15 v2.10.0 Sectioning titles
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
 caption.sty    2012/02/19 v3.2f Customizing captions (AR)
caption3.sty    2012/01/12 v1.4b caption3 kernel (AR)
  xspace.sty    2009/10/20 v1.13 Space after command names (DPC,MH)
   float.sty    2001/11/08 v1.3d Float enhancements (AL)
 flafter.sty    2000/07/23 v1.2i Standard LaTeX floats after reference (FMi)
listings.sty    2007/02/22 1.4 (Carsten Heinz)
 lstmisc.sty    2007/02/22 1.4 (Carsten Heinz)
listings.cfg    2007/02/22 1.4 listings configuration
tocbibind.sty    2010/10/13 v1.5k extra ToC listings
 eurosym.sty    1998/08/06 v1.1 European currency symbol ``Euro''
textcomp.sty    2005/09/27 v1.99g Standard LaTeX package
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
fancyhdr.sty    
 SIunits.sty    2007/12/02 v1.36 Support for the International System of units 
(MH)
 SIunits.cfg
  mhchem.sty    2011/06/03 v3.11 for typesetting chemical formulae
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
  twoopt.sty    2008/08/11 v1.5 Definitions with two optional arguments (HO)
setspace.sty    2011/12/19 v6.7a set line spacing
  ts1cmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions
   dutch.apc    2012/02/25 v6.01 apacite language file
supp-pdf.mkii
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
    umsa.fd    2009/06/22 v3.00 AMS symbols A
    umsb.fd    2009/06/22 v3.00 AMS symbols B
 theorie.bbl
faun
Posts: 14
Joined: Thu Apr 28, 2011 1:13 pm

Use of \@year@ doesn't match its definition.

Post by faun »

I don't understand exactly what you explain in your last post. Are you trying to say there is nothing wrong with my file? I tried to run latex on the file in both TexMaker en TexWorks

I know there is an error with the graphics, but I didn't look into that eror. I want to fix the Use of \@year@ error first.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Use of \@year@ doesn't match its definition.

Post by Stefan Kottwitz »

Well then provide a small code example which brings that error which we can test, i.e. a reduced test copy of your file. As said above, your code includes files which you did not provide. It cannot be compiled without your file voorblad.tex and the included graphics file squareofcrime.jpg. A reader can fix it, but do you expect every readers to do this himself? Why not posting a really testable code, ad reduced to the minimum? Making it easier for the people who help raises the chances to get a fix. As it is now, a reader needs more than 20 packages to be installed to test your code, most are not relevant for the problem. Sorry, I don't install a4wide, flafter or mhchem just to test your BibTeX problem.

Well, I'm out for the moment. Perhaps I look again at the problem, if there's been some effort to allow readers to easier test and verify.

Stefan
LaTeX.org admin
faun
Posts: 14
Joined: Thu Apr 28, 2011 1:13 pm

Re: Use of \@year@ doesn't match its definition.

Post by faun »

First of all, I am sorry if I offended you in any way. Im very new to LaTeX and the way how it works. The file I used is based on a template that can be downloaded at my university. I did not know you had to install every package. It was not an act of lazyness but of ignorance.
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Use of \@year@ doesn't match its definition.

Post by CrazyHorse »

faun wrote:I don't understand exactly what you explain in your last post. Are you trying to say there is nothing wrong with my file? I tried to run latex on the file in both TexMaker en TexWorks

I know there is an error with the graphics, but I didn't look into that eror. I want to fix the Use of \@year@ error first.
I commented the two lines with \input and \includegraphics and then run your example file without any problem. So _your_ problem must be in old packages , the reason why I posted the file list which I used. You should now compare your list with my list
to see where are the differences.

Herbert
faun
Posts: 14
Joined: Thu Apr 28, 2011 1:13 pm

Re: Use of \@year@ doesn't match its definition.

Post by faun »

I started from scractch without the all the packages I don't use.
It works now.

I'd like to thank you and Stefan for your help.

For information, I'll upload my tex file that works (for future people with same problem).
Attachments
test.tex
It works!
(7.14 KiB) Downloaded 956 times
Post Reply