0

I have my references.bib file ready (my main document class is article)

Some of my references are web pages (@misc) and most are scientific papers (@article). If I want the articles to be tagged [1], [2]... etc and the misc to be tagged [i], [ii]... etc, how would I go about doing that?

\documentclass{article}
\begin{document}   
\cite{NSF_1}
\bibliographystyle{unsrt}
\bibliography{references}
\end{document}
moewe
  • 175,683
iammax
  • 103
  • 3
  • Are you using biblatex as your tags suggest? Or do you use natbib or another bibliography package? – moewe Jan 19 '18 at 16:46
  • Yes, I am using biblatex (that's the built in one, right? I'm pretty new to TeX) – iammax Jan 19 '18 at 16:48
  • No biblatex is a package you need to load explicitly. The built-in solution is thebibliography? Can you show an MWE/MWEB of how you create your bibliography at the moment? You might want to read an introduction to bibliographies in TeX: https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management – moewe Jan 19 '18 at 16:51
  • https://pastebin.com/eZjrXbyZ – iammax Jan 19 '18 at 17:00
  • OK, you are not using biblatex. You are using BibTeX. You could switch to biblatex to use my answer below (see https://tex.stackexchange.com/q/13509/35864 and linked questions for help). If you insist on an answer that works with BibTeX and unsrt you might want to add that to your question. – moewe Jan 19 '18 at 17:09
  • Yes, after you posted your answer (thanks), I checked my GUI (I'm using texstudio) and it's calling biblatex by default. I changed it to biber to function with your posted answer. Biblatex seems to have its own version of unsrt so that's fine. – iammax Jan 19 '18 at 17:35
  • Well, numeric is a style similar to unsrt. You might want to add sorting=none to have a sorting similar to unsrt. If you need a style even closer to unsrt use biblatex-trad's style=trad-unsrt. – moewe Jan 19 '18 at 17:38

1 Answers1

2

This is fairly easy with biblatex (biblatex in a nutshell (for beginners)). In the MWE we filter @online entries and give them Roman numerals. All other entries get Arabic numbers. resetnumbers makes sure that the numbering of the @online entries starts with 'i' again and does not continue where the previous list left off (i.e. with 'iv'). defernumbers is needed when using resetnumbers.

\documentclass{article}
\usepackage[style=numeric, backend=biber, defernumbers=true]{biblatex}

\addbibresource{biblatex-examples.bib}

\DeclareFieldFormat{labelnumber}{\ifentrytype{online}{\Rn{#1}}{#1}}

\begin{document}
\cite{markey,sigfridsson,wassenberg,baez/online,ctan,worman,nussbaum}
\printbibliography[nottype=online]
\printbibliography[title={Online Sources}, type=online, resetnumbers]
\end{document}

enter image description here

moewe
  • 175,683