I'm writing my first document in LaTeX and I'm using natbib for the bibliography and dcu as the style.
This is what I've written:
@misc{et,
author = "Engineering Toolbox",
year = "2003",
title = "Young's Modulus - Tensile and Yield Strength for common Materials",
URL = "\url{https://www.engineeringtoolbox.com/young-modulus-d_417.html}",
note = "[online]"
}
This is what I get when I try to compile it.
I've used the url package with \usepackage{url} in the .tex file, and putting the URL in \url{} in the .bib file. It doesn't work with or without \url{} and I don't know what to do.
Also I've put [online] in note because the actual style I'm trying to replicate requires it but I don't know if it will appear correctly as I haven't seen the file compile yet. The [online] is supposed to come after the title.

\url{...}in theurlfieldURL = "https://www.engineeringtoolbox.com/young-modulus-d_417.html",is enough. But you will need to tellnatbibabout using\urlin a slightly different way: https://tex.stackexchange.com/q/9445/35864 – moewe Mar 30 '19 at 22:15\harvardurlto actually use\url{}but I don't know how to apply that to this problem because I'm not using\harvardurl. – oyylumo Mar 30 '19 at 22:23dcustyle I found on CTAN (https://ctan.org/tex-archive/macros/latex/contrib/harvard) uses the command\harvardurlto typeset its URL, so if you are using that style you are using\harvardurl. Did you try the suggested answer to the linked question? Did it not help? – moewe Mar 30 '19 at 22:29URL: https://...is in a weird font. Is there an easy fix for that? – oyylumo Mar 30 '19 at 22:48author = "{Engineering Toolbox}",(see https://tex.stackexchange.com/q/10808/35864). Personally I think the monotype font is not a bad idea for URLs and don't think it is weird at all, but YMMV. You could try\urlstyle{same}to get the normal surrounding font. The linked answer also suggests a way to change the font for the URLs back to italics, which is roughly what you would have gotten without the code. – moewe Mar 30 '19 at 22:52"{Engineering Toolbox}"did not work. And I think the monotype font for the URL is good, but the part that saysURL:is in a weird bold Times New Roman looking font which I don't like. Also I thought putting\emph{}around the title would make it italic but it isn't doing that. – oyylumo Mar 30 '19 at 22:56.bibfile? How did adding the curly braces not help? The bold URL: is causes by the\textbf{URL:}in the redefinition of\harvardul. Try something like\renewcommand{\harvardurl}[1]{URL:~\url{#1}}or\renewcommand{\harvardurl}[1]{\url{#1}}– moewe Mar 30 '19 at 23:00dcubibliography style, you really should use thehar2natpackage. Second: After adding an extra pair of curly braces in theauthorfield, did you first delete all six files (including the bbl file) and second perform a full recompile cycle (LaTeX, BibTeX, and LaTeX twice more)? – Mico Mar 30 '19 at 23:00har2natdo? – oyylumo Mar 30 '19 at 23:12Thank you very much for the help both of you :)
– oyylumo Mar 30 '19 at 23:19har2natprovides improved compatibility of bibliography styles (such asdcu) that are part of theharvardcitation management package withnatbib. – Mico Mar 30 '19 at 23:26