0

I am looking to create a reference list where I can choose to have references numbered as 1 (a), 1(b) etc. instead of [1], [2] etc. I would ideally like my ref 6 and 7 to be labelled as 6 (a), 6 (b) with rest labelled as 1, 2 etc.

Is there a way I can do this? I am a beginner in Tex so please ignore some of my silly errors. Here is the MWE and the 7 references I have used. I am sorry for the long MWE, I am using my university template.

Thank you so much for your help and time.

Nirajan

\documentclass[a4paper,11pt]{article}

%------------page styles and layout-----------------
\usepackage{lastpage}
\usepackage[a4paper,top=2.0cm,bottom=2.0cm,left=2.0cm,right=2.0cm,headsep=10pt, marginparwidth=3.5cm,marginparsep=2cm,]{geometry}
\geometry{headheight=1.5pt}
%  one inch + \hoffset
%  one inch + \voffset
\oddsidemargin = 5pt
\topmargin = -26pt
\headheight = 20pt
\headsep = 10pt
\textheight = 700pt
\textwidth = 483pt
\marginparsep = 56pt
\marginparwidth = 99pt
\footskip = 45pt
% \marginparpush = 5pt (not shown)
\hoffset = 0pt
\voffset = 0pt

\paperwidth = 597pt
\paperheight = 845pt

\raggedbottom




\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}% Remove header rule
\fancyhead{}% Remove all header contents
\cfoot{Page \thepage\ of \pageref{LastPage}}
\pagestyle{fancy}
%\rhead{}
% \renewcommand{\headwidth}{\textwidth}
% \fancyhead[L]{\slshape {Clusters}}
% \fancyhead[R]{\slshape {}}
% %\fancyhead[RE,LO]{\slshape {}}
% %\fancyhead[LO]{\slshape {}}
% \fancyfoot[RO,RE]{\slshape\includegraphics[width=0.15\textwidth]{uslogo}}
% % %\fancyfoot[C]{}
% \fancyfoot[LO,LE]{\slshape }
% %\geometry{headheight=15pt}
% % \oddsidemargin 0.0in
% % \evensidemargin 0.0in
% % \textwidth 6.26in
\newcommand{\linespacing}{1.05}
\renewcommand{\baselinestretch}{\linespacing}

\widowpenalty=300
\clubpenalty=300

\setlength{\parindent}{2.0pc}
\setlength{\parskip}{0.5pc}
\usepackage{amsfonts,amssymb,amsmath,multicol,microtype,tocloft}

\usepackage[numbib]{tocbibind}

\usepackage[hang,font={footnotesize}]{caption}
\setlength{\captionmargin}{20pt}

\usepackage{subfig,floatflt,booktabs,graphics,graphicx,multirow,float,authblk,wrapfig,lscape,multirow,colortbl,color,asyfig,etex,enumitem,arydshln,cancel,scalerel,stackengine,ifthen,chngcntr,blindtext,lettrine,marginnote,epsfig,url,hyperref,cleveref,array,siunitx}

%--------------------preference packages------------

\usepackage[usedoi=false,usetitle=false,]{rsc}
\setkeys{rsc}{maxauthors=1}

\usepackage[page,toc,titletoc,title]{appendix}

\usepackage[version=3]{mhchem}

\usepackage[sort&compress,numbers,super]{natbib}
%\usepackage{chapterbib}

% \usepackage{achemso}
% \setkeys{acs}{etalmode = truncate, maxauthors = 2,usetitle = true,doi=true}


%\usepackage{rsc}
%\setkeys{rsc}{
 % linkdoi    = false,
 % mciteplus  = true,
 % maxauthors = 0,
  %usetitle   = true,
  %usedoi     = true,
  %super      = true
%}

\usepackage{mathtools}
 \newtagform{myformat}[]{\scriptsize(}{)}
 \usetagform{myformat}
\numberwithin{equation}{section}

\usepackage[page,toc,titletoc,title]{appendix}

\usepackage{xcolor}
\colorlet{lightflint}{cyan!40!white}
\definecolor{color_S}{RGB}{241,221,56}
\definecolor{color_O}{RGB}{227, 34, 34}
\definecolor{color_F}{RGB}{182, 227, 34}
\definecolor{color_Cl}{RGB}{10, 191, 52}
\definecolor{color_H}{RGB}{215, 220, 224}
\definecolor{color_C}{RGB}{83, 89, 84}
\definecolor{flint}{rgb}{0,0.19,0.21}
\definecolor{sblue}{RGB}{29,66,138}
\definecolor{pblue}{RGB}{158,185,212}
\definecolor{LightOcean}{RGB}{81, 147, 229 }
\definecolor{DeepOcean}{RGB}{51, 131, 229}
\definecolor{alertblue}{RGB}{0,112,184}
\definecolor{moleskin}{RGB}{230,227,211}


\usepackage{footmisc}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\newfloat{Scheme}{htbp}{los}[section]
%---------------------------------------------------




%-----------------------fonts ----------------------
% \usepackage[T1]{fontenc}
% \usepackage[default]{gillius}
% \usepackage[sc]{mathpazo}
% \linespread{1.05} % Palladio needs more leading (space between lines)
% \usepackage[T1]{fontenc}
% \usepackage{stix}
\renewcommand{\rmdefault}{phv} % Arial
\renewcommand{\sfdefault}{phv} % Arial
\usepackage[helvet]{sfmath}
%---------------------------------------------------



%-----------------------ifthen----------------------
\newboolean{firstanswerofthechapter}

%---------------------------------------------------

%----------------------title-and-section-----------
\usepackage{titlesec}

\titleformat{\chapter}[display]
 {\normalfont\sffamily\huge\bfseries\color{black}}
 {\chaptertitlename\ \thechapter}{20pt}{\huge}

% \titleformat{\section}
%{\normalfont\sffamily\Large\bfseries\color{blue!50!black}}
%{\thesection\hspace{0.6em}}{1em}{}

 \titleformat{\subsection}
 {\normalfont\sffamily\large\bfseries\color{black}}
 {\thesubsection\hspace{0.4em}}{1em}{}

 \titleformat{\subsubsection}
 {\normalfont\sffamily\large\bfseries\color{black}}
 {\thesubsubsection\hspace{0.4em}}{1em}{}

 \titleformat{\paragraph}
 {\normalfont\sffamily\large\bfseries\color{black}}
 {\thesubsubsection\hspace{0.4em}}{1em}{}

\titleformat{\section}[hang]{
\usefont{T1}{qhv}{b}{n}\selectfont\color{black}} % "qhv" - TeX Gyre Heros, "b" - bold
{}
{0em}
{\hspace{-0.4pt}\large \thesection\hspace{0.6em}}
%---------------------------------------------------



\usepackage{tasks}
\newlength{\longestlabel}
\settowidth{\longestlabel}{ viii.}
\settasks{counter-format={tsk[r].}, label-format={}, label-width=\longestlabel,
item-indent=0pt, label-offset=2pt, column-sep={10pt}}

\usepackage[lastexercise,answerdelayed]{exercise}
\counterwithin{Exercise}{section}
\counterwithin{Answer}{section}
\renewcounter{Exercise}[section]
\newcommand{\QuestionNB}{\arabic{Question}.\ }
% \renewcommand{\ExerciseName}{EXERCISES}
\renewcommand{\ExerciseHeader}{\noindent\def\stackalignment{l}% code from https://tex.stackexchange.com/a/195118/101651
\stackunder[0pt]{\colorbox{flint}{\textcolor{white}{\textbf{\Large\ExerciseHeaderNB\;\large\ExerciseName}}}}{\textcolor{flint}{\rule{\linewidth}{2pt}}}\medskip}
\renewcommand{\AnswerName}{Exercises}
\renewcommand{\AnswerHeader}{\ifthenelse{\boolean{firstanswerofthechapter}}%
{\noindent\textcolor{flint}{\textbf{CHAPTER \thechapter}}\newline%
\noindent\bfseries\emph{\textcolor{flint}{\AnswerName\ \ExerciseHeaderNB, page %
 \pageref{\AnswerRef}}}\smallskip}\newline
% {\noindent\bfseries\emph{\textcolor{flint}{\AnswerName\ \ExerciseHeaderNB, page \pageref{\AnswerRef}}}\smallskip}
}
\setlength{\QuestionIndent}{16pt}


%----------------------------tikz/pgfplot----------------
\usepackage{tikz} %TikZ is required for this to work. Make sure this exists before the next line
\usetikzlibrary{positioning,math,fadings,decorations.pathreplacing,decorations.pathmorphing,angles,quotes,3d,intersections,arrows.meta,automata,er,calc,backgrounds,mindmap,folding,patterns,decorations.markings,fit,shapes,matrix,shapes.geometric,arrows,through}
\usepackage{tikz-3dplot} %requires 3dplot.sty to be in same directory, or in your LaTeX installation
\usepackage{tkz-euclide}
% \usetkzobj{all}
% \usepackage{pgfplots}
% % \usepgfplotslibrary{external}
% % \tikzexternalize
% \pgfplotsset{compat=1.12}
% \usepackage[active,tightpage]{preview} %generates a tightly fitting border around the work
% % \PreviewEnvironment{tikzpicture}
% % \setlength\PreviewBorder{2mm}

% \usepackage{footmisc}
% \renewcommand{\thefootnote}{\fnsymbol{footnote}}
% \newfloat{Scheme}{htbp}{los}[section]
%\usepackage[final]{pdfpages}

\usepackage{pgfplots, pgfplotstable, filecontents}
\usepgfplotslibrary{external,fillbetween}
\pgfplotsset{compat=newest}
\pgfplotsset{scaled y ticks=false}
\pgfplotsset{scaled x ticks=false}
\pgfdeclarefunctionalshading{sphere}{\pgfpoint{-25bp}{-25bp}}{\pgfpoint{25bp}{25bp}}{}{
%% calculate unit coordinates
25 div exch
25 div exch
%% copy stack
2 copy
%% compute -z^2 of the current position
dup mul exch
dup mul add
1.0 sub
%% and the -z^2 of the light source
0.3 dup mul
-0.5 dup mul add
1.0 sub
%% now their sqrt product
mul abs sqrt
%% and the sum product of the rest
exch 0.3 mul add
exch -0.5 mul add
%% max(dotprod,0)
dup abs add 2.0 div
%% matte-ify
0.6 mul 0.4 add
%% currently there is just one number in the stack.
%% we need three corresponding to the RGB values
dup
0.4
}

% Requires \usetikzlibrary{calc}
\def\connect#1#2#3{%
% #1: starting node
% #2: ending node
% #3: attributes for the shape connecting nodes
\path let
 \p1 = ($\left(#2)-(#1\right)$),
 \n1 = {veclen(\p1)},
 \n2 = {atan2(\x1,\y1)} % <- Update
in
 (#1) -- (#2) node[#3, midway, sloped, shading angle=\n2+90, minimum width=\n1+1, inner sep=0pt, #3] {};
}

\usepackage{gnuplottex}
%---------------------------------------------------


% 
% % for adjustwidth environment
\usepackage[strict]{changepage}
% 
% % for formal definitions
\usepackage{framed}
% 
% % environment derived from framed.sty:] see leftbar environment definition
\definecolor{flint}{rgb}{0,0.19,0.21}
\definecolor{formalshade}{rgb}{0.95,0.95,1}
\newenvironment{summary}{%
 \def\FrameCommand{%
 \hspace{1pt}%
 {\color{flint}\vrule width 2pt}%
 {\color{flint}\vrule width 4pt}%
 \colorbox{formalshade}%
 }%
 \MakeFramed{\advance\hsize-\width\FrameRestore}%
 \noindent\hspace{-4.55pt}% disable indenting first paragraph
 \begin{adjustwidth}{}{7pt}%
 \vspace{2pt}\vspace{2pt}%
}
{%
 \vspace{2pt}\end{adjustwidth}\endMakeFramed%
}

\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
 \node[shape=circle,draw,inner sep=1pt] (char) {\small{#1}};}}

\newenvironment{formalequation}{%
 \def\FrameCommand{%
 \hspace{1pt}%
 {\color{flint}\vrule width 2pt}%
 {\color{flint}\vrule width 4pt}%
 \colorbox{formalshade}%
 }%
 \MakeFramed{\advance\hsize-\width\FrameRestore}%
 \noindent\hspace{-4.55pt}% disable indenting first paragraph
 \begin{adjustwidth}{}{7pt}%
 \vspace{2pt}\vspace{2pt}%
}
{%
 \vspace{2pt}\end{adjustwidth}\endMakeFramed%
}

\def\myupbracefill#1{\rotatebox{90}{\stretchto{\{}{#1}}}
\def\rlwd{.5pt}
\newcommand\notate[4][B]{%
 \if B#1\else\def\myupbracefill##1{}\fi%
 \def\useanchorwidth{T}%
 \setbox0=\hbox{$\displaystyle#2$}%
 \def\stackalignment{c}\stackunder[-6pt]{%
\def\stackalignment{c}\stackunder[-1.5pt]{%
 \stackunder[2pt]{\strut $\displaystyle#2$}{\myupbracefill{\wd0}}}{%
\rule{\rlwd}{#3\baselineskip}}}{%
 \strut\kern9pt$\rightarrow$\smash{\rlap{$~\displaystyle#4$}}}%
}

%---------------------------------------------------


%----------------symbols----------------------------
\makeatletter\@addtoreset{chapter}{part}\makeatother%

\newcommand{\qed}{\tag*{$\blacksquare$}}

\newcommand{\dbar}{d\mkern-6mu\mathchar`26}
\newcommand{\tc}{$T_{\textrm{\sc{c}}} $ }
\newcommand{\dg}{$^{\circ}$}

\newcommand{\opm}{
  \mathbin{
    \mathchoice
      {\buildcirclepm{\displaystyle     }{0.14ex}{0.95}{0.05ex}{.7}}
      {\buildcirclepm{\textstyle        }{0.14ex}{0.95}{0.05ex}{.7}}
      {\buildcirclepm{\scriptstyle      }{0.13ex}{0.955}{0.04ex}{.55}}
      {\buildcirclepm{\scriptscriptstyle}{0.08ex}{0.95}{0.03ex}{.45}}
  }
}

\newcommand\buildcirclepm[5]{%
  \begin{tikzpicture}[baseline=(X.base), inner sep=-#5, outer sep=-.65]
    \node[draw,circle,line width=#4] (X)  {\small\raisebox{#2}{\scalebox{#3}{$#1\pm$}}};
  \end{tikzpicture}%
}

\makeatletter
\providecommand\barcirc{\mathpalette\@barred\circ}
\def\@barred#1#2{\ooalign{\hfil$#1-$\hfil\cr\hfil$#1#2$\hfil\cr}}
\newcommand\stst{^{\protect\barcirc}}
\makeatother

\newcounter{parnum}[subsection]
\newcommand{\N}{%
 \vspace{0.1pc}
 \noindent\stepcounter{parnum}%
 \makebox[\parindent][l]{\textbf{\arabic{section}.\arabic{parnum}}}}
% Use a generous paragraph indent so numbers can be fit inside the
% indentation space.
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
% \counterwithout{figure}{section}
% \counterwithout{figure}{subsection}
% \counterwithout{figure}{subsubsection}
% \counterwithout{table}{section}
% \counterwithout{table}{subsection}
% \counterwithout{table}{subsubsection}
%
% \counterwithout{equation}{section}
% \counterwithout{equation}{subsection}
% \counterwithout{equation}{subsubsection}
%---------------------------------------------------

\usepackage{lineno}
\linenumbers*[0]
% \usepackage{showframe}
% \usepackage{layout}

\usepackage{titling}
\predate{}
\postdate{}
\preauthor{}
\postauthor{}

%---------------------------------------------------
%AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
%---------------------------------------------------
\title{\textbf{Title}
\author{}
% \affil{University of Sussex}
\date{}

\begin{document}

%-------To do------------
% Ctrl r: Schrodinger Schr\"{o}dinger
%------------------------
\setlength{\droptitle}{-80pt}
\maketitle
\vspace{-8ex}
\section{Background}
\label{s:bckg}

I have one reference here.\cite{Das2017} I have two more references here.\cite{savoie2015,kordnezhadian2022}

My third reference is here.\cite{kordnezhadian2022}

Fourth\cite{matsumoto2018} and 5th reference.\cite{rueping2017}

\section{Aims and Objectives}
\label{s:a_o}

No reference in this section
\section{Scientific Approach/Methodology}
\label{s:methods}

Two references here.\cite{Mayr2008,mayrdatabase} 

\section{Resources}
\label{s:resources}

No refs here.

\bibliography{sf5}
\bibliographystyle{rsc}
\end{document}

Bibliography files
@article{Kordnezhadian2022,
author = {Reza Kordnezhadian and Bing‐Yu Li and Armir Zogu and Joachim Demaerel and Wim M. De Borggraeve and Ermal Ismalaj},
doi = {10.1002/chem.202201491},
file = {::},
issn = {0947-6539},
journal = {Chem. – A Eur. J.},
month = {oct},
number = {60},
title = {{Chemistry of Pentafluorosulfanyl Derivatives and Related Analogs: From Synthesis to Applications}},
url = {https://onlinelibrary.wiley.com/doi/10.1002/chem.202201491},
volume = {28},
year = {2022},
pages = {1-26}
}

@article{Savoie2015,
author = {Paul R. Savoie and John T. Welch},
doi = {10.1021/cr500336u},
file = {::},
issn = {0009-2665},
journal = {Chem. Rev.},
month = {jan},
number = {2},
pages = {1130--1190},
title = {{Preparation and Utility of Organic Pentafluorosulfanyl-Containing Compounds}},
url = {https://pubs.acs.org/doi/10.1021/cr500336u},
volume = {115},
year = {2015}
}

@article{Rueping2017,
abstract = {A protocol for the fast and selective two-electron reduction of the potent greenhouse gas sulfur hexafluoride (\ce{SF6}) by organic electron donors at ambient temperature has been developed.},
author = {Magnus Rueping and Pavlo Nikolaienko and Yury Lebedev and Alina Adams},
doi = {10.1039/C7GC00877E},
file = {::},
issn = {1463-9262},
journal = {Green Chem.},
number = {11},
pages = {2571--2575},
title = {{Metal-free reduction of the greenhouse gas sulfur hexafluoride, formation of \ce{SF5}-containing ion pairs and the application in fluorinations}},
url = {http://xlink.rsc.org/?DOI=C7GC00877E},
volume = {19},
year = {2017}
}

@article{Das2017,
   author = {Prajwalita Das and Etsuko Tokunaga and Norio Shibata},
   journal = {Tetrahedron Lett.},
   title = {Tetrahedron Letters Recent advancements in the synthesis of pentafluorosulfanyl (SF 5 )-containing heteroaromatic compounds},
   url = {https://doi.org/10.1016/j.tetlet.2017.11.015},
   year = {2017},
   pages = {4803},
   volume = {58}
}

@article{Matsumoto2018,
   author = {Kazuhiko Matsumoto and Yuki Haruki and Shunsuke Sawada and Shigeyuki Yamada and Tsutomu Konno and Rika Hagiwara},
   doi = {10.1021/acs.inorgchem.8b02655},
   issn = {0020-1669},
   issue = {23},
   journal = {Inorg. Chem.},
   month = {12},
   pages = {14882-14889},
   title = {Stabilization of SF 5 – with Glyme-Coordinated Alkali Metal Cations},
   volume = {57},
   url = {https://pubs.acs.org/doi/10.1021/acs.inorgchem.8b02655},
   year = {2018},
}


@article{Mayr2008,
   abstract = {Comprehensive nucleophilicity scales including π-, n- and σ-nucleophiles have been constructed using benzhydrylium ions and structurally related quinone methides as reference electrophiles. It is shown how the correlation (Eqn (1)) log k20°C = s(E + N), where s and N are nucleophile-specific parameters and E is an electrophile-specific parameter, has recently been employed to characterize further classes of nucleophiles (phosphines, amines, isonitriles, trifluoro-methanesulfonyl- substituted carbanions) and electrophiles (2-benzylideneindan-1,3-diones and benzylidenebarbituric acids). Practical applications of the reactivity parameters E, N and s for developing Friedel-Crafts alkylations in neutral alcoholic or aqueous solution and for characterizing nucleophilic organocatalysts will be discussed. Eventually, a new correlation equation will be presented, which includes Eqn (1), the Ritchie equation (nucleophilic additions to stabilized carbocations), and the Swain-Scott equation (nucleophilic substitutions of methyl halides) as special cases. Copyright © 2008 John Wiley & Sons, Ltd.},
   author = {Herbert Mayr and Armin R. Ofial.},
   doi = {10.1002/poc.1325},
   issn = {08943230},
   issue = {7-8},
   journal = {J. Phys. Org. Chem.},
   keywords = {Electrophilicity,Intrinsic barriers,Kinetics,Linear free energy relationships,Nucleophilicity,Organocatalysis},
   month = {7},
   pages = {584-595},
   title = {Do general nucleophilicity scales exist?},
   volume = {21},
   year = {2008},
}


@misc{mayrdatabase,
    title = { Mayr's Database of Reactivity Parameters},
    url = {https://www.cup.lmu.de/oc/mayr/reaktionsdatenbank/},
    journal = {Database of Nucleophilicities and Electrophilicities},
    note = {accessed on 24/01/2023},
    urldate = {24/01/2023}
}

7
  • 1
    Welcome to TeX.SE. Please clarify the use case for your, shall we say, unusual desired labeling system for bibliographic entries. How is BibTeX to "know" that the sixth and seventh entries in the bib file are supposed to be labelled 6a and 6b rather than 6 and 7? E.g., will there be a field in the entries that tells BibTeX to switch from the standard labelling method (numeric, in the case of the rsc bibliography style) to a mixed numeric/alphabetical method?
    – Mico
    Jan 27, 2023 at 5:43
  • 1
    Incidentally, why doesn't the 7th entry contain author and year fields? It's quite clear that the author field should be author = {Herbert Mayr}... And why does the entry contain a journal field? The journal field makes sense only for entries of type @article. All other entry types, including @misc, simply ignore the journal field.
    – Mico
    Jan 27, 2023 at 5:51
  • 1
    Thank you Mico for your warm welcome. Basically, I am writing a Master's proposal and my supervisor is insisting to keep ref 6 and 7 together because ref 7 is a database made by Mayr and as far as I know he started to make the database from the work he has done in ref 6. I think it would be okay if I can get the numbering such that only \section{Scientific Approach/Methodology} can have mixed numeric/alphabetical method.
    – Nirajan KC
    Jan 27, 2023 at 10:05
  • The 7th entry is supposed to be a database entry. I didn't know @misc ignores the journal field, thank you for pointing it out. I will keep this in mind for the future. Is there a way to tell Tex to have mixed numeric/alphabetical method for certain section only?
    – Nirajan KC
    Jan 27, 2023 at 10:08
  • You ask, "Is there a way to tell Tex to have mixed numeric/alphabetical method for certain section only?" Not to my knowlege. A more general point: I think it's an extremely dubious practice to hijack one typographical convention -- e.g., how to write citation call-outs -- for an entirely seperate purpose -- say, to indicate that two particular publications are closely related because they were authored by the same person. If it's truly essential to point out that two publications are related so closely, you should so say explicitly, in words, in the body of the document.
    – Mico
    Jan 27, 2023 at 11:28

0

You must log in to answer this question.

Browse other questions tagged .