5

MWE:

\documentclass{article}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[style=ieee,backend=biber,sortcites]{biblatex}
\addbibresource{ref.bib}

\begin{document}
Refs. \cites{Yang10,Yang09}\\
\end{document}

The output is [(1),(2)]. How to remove parenthesis here? I see the output is [1, 2] in numeric-comp but I don't see in ieee.cbx where this parenthesis is added.

  • If you look in ieee.cbx you will see lots of \bibopenbracket etc. which are indeed adding brackets. Can you clarify what behaviour you actually want though ? You do not want brackets anywhere or just in multi-citations ? What about other types of referencing ? – ach Jun 14 '13 at 11:12
  • @ach, I want ieee style. The output with multiple citation is [(1),(2)] but I want [1,2]. So parenthesis should be removed. – rowman Jun 14 '13 at 19:18
  • @rowman Is "[1, 2]" really the IEEE style? It looks like ieee is akin to numeric-comp, but all individuals labels are square-bracketed: "[1], [2]" and "[1]--[3]". To achieve this drop bracketing in the definition for \cites with: \DeclareMultiCiteCommand{\cites}{\cite}{\multicitedelim} – Audrey Jun 14 '13 at 20:00
  • @Audrey, maybe not completely IEEE style, but I need [1,2] or [1-2]. It's much more beautiful to my mind. That command gives [1],[2]. The reason that I am using IEEE is the style of printing the references at the end. – rowman Jun 17 '13 at 8:13
  • 3
    @rowman Then try loading biblatex with citestyle=numeric-comp and bibstyle=ieee. This question does raise a bug with ieee so you should get in touch with Joseph about that. – Audrey Jun 17 '13 at 15:37
4

Through the comments I understood that I had to use citestyle=numeric-comp and bibstyle=ieee to achieve the desired output. MWE:

\documentclass{article}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[citestyle=numeric-comp,bibstyle=ieee,%
backend=biber,sortcites]{biblatex}
\renewbibmacro*{bbx:savehash}{} % Remove annoying dash
\addbibresource{ref.bib}

\begin{document}
Refs. \cite{Yang10,Yang09}\\
\end{document}

ref.bib should be available. I am using lualatex.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.