BibTeX, biblatex and biberUnable to I \cite from @electronic when I used bibtex?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
manpreet9112
Posts: 8
Joined: Sat Jan 30, 2016 8:00 pm

Unable to I \cite from @electronic when I used bibtex?

Post by manpreet9112 »

I am working with bibliography in journal.In journal I want to print url from @electronic. But I am unable to print and getting errors. Due to that bibliography is not produced. I tried this with bibtex and biber. Bibtex print bibliography but not exact. And biber print "?" in place of cite and show errors.I attach image for bibtex. Here is code

data.bib

Code: Select all

@article{Wu2011,
  Title                    = {Development of damage-controlled latter cast FRP–RC hybrid girders},
  Author                   = {Zhishen Wu},
  Journal                  = {Composites: Part B},
  Year                     = {2011},
  Pages                    = {1770–1777},
  Volume                   = {42},

  Owner                    = {inderpreet},
  Timestamp                = {2016.02.16}
}

@Electronic{news2015,
  Title                    = {India loses Rs 2 trillion annually to corrosion of infrastructure: Government” Sep 3, 2015, The Economic Times},
  Month                    = {September},
  Url                      = {http://articles.economictimes.indiatimes.com/2015-09-03/news/66178697_1_corrosion-installations-infrastructure},
  Year                     = {2004},
  Owner                    = {inderpreet},
  Timestamp                = {2016.02.17}
}
Here is tex file

Code: Select all

\documentclass[a4paper,10pt]{article}
%\usepackage[backend=biber]{biblatex}
%\addbibresource{data.bib}
\usepackage{natbib}
\begin{document}

This is bibliography using biber~\cite{Wu2011}.

\cite{news2015}


\bibliography{data}
%\bibliographystyle{unsrtnat}
%\printbibliography
\end{document}
I want to cite .bib entries using bibtex as well as biber. What I do? Can I post error?

Recommended reading 2024:

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

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

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Unable to I \cite from @electronic when I used bibtex?

Post by Johannes_B »

You cannot use biber with natbib, that is impossible. If you want to use biber, you need package biblatex. That means you cannot use natbib, but biblatex is much superior.

With your current style, you cannot use electronic as an entry. biblatex can, it provides the type online, electronic is an alias.

Code: Select all

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
	@article{Wu2011,
		Title           = {Development of damage-controlled latter cast FRP–RC hybrid girders},
		Author          = {Zhishen Wu},
		Journal         = {Composites: Part B},
		Year            = {2011},
		Pages           = {1770–1777},
		Volume          = {42},
		Owner           = {inderpreet},
		Timestamp       = {2016.02.16}
	}

	@online{news2015,
		Title           = {India loses Rs 2 trillion annually to corrosion of infrastructure: Government},
		date            = {2015-09-03},
		urldate         = {2015-02-20},
		organization    = {The Economic Times},
		Url             = {http://articles.economictimes.indiatimes.com/2015-09-03/news/66178697_1_corrosion-installations-infrastructure},
	}
\end{filecontents}
\documentclass[a4paper,10pt]{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{\jobname.bib}
%\usepackage{natbib}
\begin{document}

This is bibliography using biber~\cite{Wu2011}.

\cite{news2015}


%\bibliography{data}
%\bibliographystyle{unsrtnat}
\printbibliography
\end{document}
Please test the modified example above (i changed the online entry). Does it work? If not, please post the blg-file for further investigation.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
manpreet9112
Posts: 8
Joined: Sat Jan 30, 2016 8:00 pm

Unable to I \cite from @electronic when I used bibtex?

Post by manpreet9112 »

Johannes_B wrote:You cannot use biber with natbib, that is impossible. If you want to use biber, you need package biblatex. That means you cannot use natbib, but biblatex is much superior.
Yes sir, before posting this problem, I tried this with biber with biblatex package. And natbib with bibtex. I always did bibliography with biber because of its feature.
But Now I am getting error,Whenever I run this code in local. But when I run this code on cloud, then it did not give error and bibliography is produced.
With your current style, you cannot use electronic as an entry. biblatex can, it provides the type online, electronic is an alias.
Thank you sir,

Code: Select all

\RequirePackage{filecontents}
Please test the modified example above (i changed the online entry). Does it work? If not, please post the blg-file for further investigation.[/quote][/quote]

Yes it works on cloud. But in my local, it give error. And this error comes only with above code. When ever I run another file using biber, then that file works well. Can I send screenshot of error?
Last edited by manpreet9112 on Sat Feb 20, 2016 4:30 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Unable to I \cite from @electronic when I used bibtex?

Post by Johannes_B »

If not, please post the blg-file
Please post the contents of the blg-file. You can open it with anny text editor.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
manpreet9112
Posts: 8
Joined: Sat Jan 30, 2016 8:00 pm

Re: Unable to I \cite from @electronic when I used bibtex?

Post by manpreet9112 »

Kindly help me. I run code edited by you. But getting errors and bibliography did not produced. Here is my .blg file.
Attachments
journal.blg
.blg file of code
(837 Bytes) Downloaded 340 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Unable to I \cite from @electronic when I used bibtex?

Post by Johannes_B »

According to biber everything ran smoothly. Did you run LaTeX once more?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply