BibTeX, biblatex and biberUsing misc to create an online resource reference

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Diogo Remoaldo
Posts: 26
Joined: Mon Apr 06, 2015 8:24 pm

Using misc to create an online resource reference

Post by Diogo Remoaldo »

Hi,

I am doing the references for my thesis and I am trying to use misc to create references from webpages.

My latex is currently using the following packages

Code: Select all

\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{float}
\usepackage{graphicx}
\usepackage[hidelinks]{hyperref}
\usepackage{url}
\usepackage[all]{hypcap}
\usepackage{caption}
\usepackage[left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm]{geometry}
\usepackage{natbib}
\usepackage{array}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{indentfirst}
\usepackage[export]{adjustbox}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage{multirow}
\captionsetup[table]{position=above}
\usepackage{siunitx}
\newcolumntype{C}{>{\centering\arraybackslash}m}
\sisetup{per-mode=symbol}
\usepackage{hhline}
\captionsetup[table]{position=above}
\setcounter{secnumdepth}{4}
\DeclareSIUnit{\year}{ano}
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
And the references I used for now are

Code: Select all

@book{american20092009,
  title={2009 ASHRAE Handbook: Fundamentals},
  author={American Society of Heating, Refrigerating and Air-Conditioning Engineers},
  isbn={9781933742557},
  series={2009 Ashrae Handbook - Fundamentals},
  url={https://books.google.pt/books?id=D65XPgAACAAJ},
  year={2009},
  publisher={American Society of Heating, Refrigeration and Air-Conditioning Engineers}
}

@book{bergman2011fundamentals,
  title={Fundamentals of Heat and Mass Transfer, 7th Edition},
  author={Bergman, T.L. and Lavine, A.S. and Incropera, F.P.},
  isbn={9781118137253},
  url={https://books.google.pt/books?id=5cgbAAAAQBAJ},
  year={2011},
  publisher={John Wiley \& Sons}
}

@Misc{Plusenergy,
OPTauthor = {Plusenergiehaus},
OPTtitle = {Plusenergiehaus-The Goal is PlusEnergy},
OPThowpublished = {{http://www.plusenergiehaus.de/index.php?p=home&pid=8&L=1&host=1#a492}},
OPTnote = {Accessed: 2010-09-30},
}
In the document I use

Code: Select all

\bibliographystyle{plain}
\bibliography{bibliografia}
And the reference won't appear as seen in the attachments in the figures.

How can I sucessfully create a reference for a website and make it appear?
Attachments
DiogoBibTeX2.png
DiogoBibTeX2.png (13.53 KiB) Viewed 5960 times
DiogoBibTeX1.png
DiogoBibTeX1.png (17.62 KiB) Viewed 5960 times
Last edited by Johannes_B on Tue May 26, 2015 9:34 pm, edited 1 time in total.

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

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

Using misc to create an online resource reference

Post by Johannes_B »

The bib-entry is faulty, the prefix OPT is unknown. Hence, BibTeX ignores those fields. Remove it and it will work.

I would switch to biblatex, though. It is much more powerful.

Code: Select all

\begin{filecontents}{\jobname.bib}
	@Misc{Plusenergy,
		author = {Plusenergiehaus},
		title = {Plusenergiehaus-The Goal is PlusEnergy},
		howpublished = {\url{http://www.plusenergiehaus.de/index.php?p=home&pid=8&L=1&host=1#a492}},
		note = {Accessed: 2010-09-30},
	}
\end{filecontents}
\documentclass{report}
\usepackage{url}
\begin{document}
\cite{Plusenergy}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}
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