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}
7
  • Are you using biblatex as your tags suggest? Or do you use natbib or another bibliography package?
    – moewe
    Jan 19, 2018 at 16:46
  • Yes, I am using biblatex (that's the built in one, right? I'm pretty new to TeX)
    – iammax
    Jan 19, 2018 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: en.wikibooks.org/wiki/LaTeX/Bibliography_Management
    – moewe
    Jan 19, 2018 at 16:51
  • pastebin.com/eZjrXbyZ
    – iammax
    Jan 19, 2018 at 17:00
  • OK, you are not using biblatex. You are using BibTeX. You could switch to biblatex to use my answer below (see 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, 2018 at 17:09

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .