LaTeX forum ⇒ BibTeX, biblatex and biberreferencing webpages with URL and accessed date

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Franzi_LaTeX
Posts: 10
Joined: Sun Jun 24, 2018 1:24 am

referencing webpages with URL and accessed date

Postby Franzi_LaTeX » Sat Jun 30, 2018 5:07 pm

Hi! :)

I am trying to cite / reference my webpages with biber. For all my other references (books, articles) I need apa. Unfortunately, it only showed me the title, author, editor, etc. However, I also need the URL and accessed date. Because I could not find any citation style or command that contains these information, I cheated a bit as you will see below (I know, maybe that wasn´t so clever...).
Actually, it´s working quite well. The only problem is that the webpage URL in the pdf goes beyond the end of the page, so it doenst stop or goes on in the next line.
Do you know how to solve this problem or even which command or citation style is possible?
Thank you for your help!

I´ve tried to do an minimal example. Unfortunately, now it does not give me the webpage references at all and I don´t understand why. Maybe you can help me...


Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[a4paper,12pt]{scrartcl}
  2.  
  3. \usepackage[nottoc]{tocbibind}
  4. \usepackage[backend=biber,
  5. style=authoryear-icomp,
  6. sorting=nyt,
  7. url=true,
  8. natbib=true,
  9. hyperref=true,
  10. ]{biblatex}
  11.  
  12. \DeclareLanguageMapping{english}{american-apa}
  13. \bibliography{test1.bib}
  14.  
  15. \usepackage{tocstyle}
  16. \newtocstyle[KOMAlike][leaders]{chapterwithdot}{
  17. \settocfeature{pagenumberbox}{\makebox[1em][r]}
  18. \settocfeature[-1]{leaders}{\hfill}
  19. \settocfeature[-1]{pagenumberbox}{\phantom}
  20. }
  21. \usetocstyle{chapterwithdot}
  22. \usepackage[automark,autooneside]{scrlayer-scrpage}
  23. \clearpairofpagestyles
  24. \ohead{\headmark}
  25. \ofoot*{\pagemark}
  26.  
  27. \usepackage[utf8]{inputenc}
  28. \usepackage[english]{babel}
  29. \usepackage[T1]{fontenc}
  30. \usepackage{blindtext}
  31. \usepackage{hyperref}
  32. \usepackage{setspace}
  33. \setlength{\parindent}{0mm}
  34. \usepackage[paper=a4paper,left=30mm,right=30mm,top=30mm,bottom=30mm]{geometry}
  35. \usepackage{graphicx}
  36. \deffootnote{1em}{1em}{\textsuperscript{\thefootnotemark\ }}
  37.  
  38. \setcounter{tocdepth}{3}
  39. \setcounter{secnumdepth}{3}
  40.  
  41. \begin{document}
  42.  
  43. \pagenumbering{roman}
  44. \clearpage
  45. \tableofcontents
  46.  
  47. \clearpage
  48.  
  49.  
  50. \onehalfspacing
  51. \pagestyle{plain}
  52. \pagenumbering{arabic}
  53. \setcounter{page}{3}
  54.  
  55. \section{Introduction}
  56. introduction xx
  57. \section{Definition}
  58. just \footnote{Woodis in \cite[p.60]{coady1985morality}.} some\footnote{cf. \cite [772]{coady2004terrorism}.} footnotes\footnote\cite{sep-war}.} to\footnote\cite{sep-relativism}.} get the\footnote{\cite[253]{walzer2000just}.} references.
  59.  
  60.  
  61. \clearpage
  62.  
  63. \addcontentsline{toc}{section}{List of References}
  64. \printbibliography[title={Book references},type=book]
  65. \printbibliography[title={Article references},type=article]
  66. \printbibliography[title={Webpage references}, nottype=article, nottype=book]
  67. \end{document}



The biber document is: test1.bib
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. @article{coady2004terrorism,
  2. title={Terrorism, morality, and supreme emergency},
  3. author={Coady, Cecil AJ},
  4. journal={Ethics},
  5. volume={114},
  6. number={4},
  7. pages={772--789},
  8. year={2004},
  9. publisher={The University of Chicago Press}
  10. }
  11.  
  12. @book{walzer2000just,
  13. title={Just and unjust wars: A moral argument with historical illustrations},
  14. author={Walzer, Michael},
  15. year={2000},
  16. publisher={New York: Basic books}
  17. }
  18.  
  19. @article{coady1985morality,
  20. title={The morality of terrorism},
  21. author={Coady, Cecil AJ},
  22. journal={Philosophy},
  23. volume={60},
  24. number={231},
  25. pages={47--69},
  26. year={1985},
  27. publisher={Cambridge University Press}
  28. }
  29.  
  30.  
  31. @InCollection{sep-war,
  32. author = {Lazar, Seth},
  33. title = {War},
  34. booktitle = {The Stanford Encyclopedia of Philosophy}, \\
  35. howpublished = {\url{https://plato.stanford.edu/archives/spr2017/entries/war}},
  36. year = {2017},
  37. edition = {https://plato.stanford.edu/entries/war},
  38. publisher = {(Date accessed: 25.06.2018)}
  39.  
  40. }
  41.  
  42. @InCollection{sep-relativism,\\
  43. author = {Baghramian, Maria and Carter, J. Adam},
  44. title = {Relativism},
  45. booktitle = {The Stanford Encyclopedia of Philosophy},
  46. howpublished = {\url{https://plato.stanford.edu/archives/sum2017/entries/relativism}},
  47. year = {2017},
  48. edition = {https://plato.stanford.edu/entries/relativism},
  49. publisher = {(Date accessed: 28.06.2018)}
  50. }
  51.  
  52. \end



If possible, I would like to get something like:
Lazar, S. (2017): „War“; in: The Stanford Encyclopedia of Philosophy; https://plato.stanford.edu/entries/relativism (Date accessed 22. 06. 2018).

I hope, you understand what I mean... Thanks a lot! :)

Tags:

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

Postby Johannes_B » Sun Jul 01, 2018 7:20 am

As stated in the other thread, you are not using the right fields, nor the correct date format. Also, if they are online only, you should use the [latex]online[latex] entry type. Please have a look at this and the links given therein.
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. @InCollection{sep-war,
  2. author = {Lazar, Seth},
  3. title = {War},
  4. booktitle = {The Stanford Encyclopedia of Philosophy},
  5. url = {https://plato.stanford.edu/archives/spr2017/entries/war},
  6. year = {2017},
  7. urldate = {2018-06-25}
  8. }
  9.  
  10. @InCollection{sep-relativism,
  11. author = {Baghramian, Maria and Carter, J. Adam},
  12. title = {Relativism},
  13. booktitle = {The Stanford Encyclopedia of Philosophy},
  14. url = {https://plato.stanford.edu/archives/sum2017/entries/relativism},
  15. year = {2017},
  16. urldate = {2018-06-28}
  17. }
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 6 guests