1

I am currently organizing my CV and would like to group my publications as published, under review and ongoing work. I use a single .bib file and add the papers one by one under each section. I would like to sort the papers in descending order in each section.

I am first sharing a MWE and then giving the entries in the .bib file.

\documentclass[11pt]{article}
\newcommand{\fancyfootnotetext}[2]{%
  \fancypagestyle{dingens}{%
    \fancyfoot[LO,RE]{\parbox{12cm}{\footnotemark[#1]\footnotesize #2}}%
  }%
  \thispagestyle{dingens}%
}

\usepackage{fancyhdr}
\usepackage[bottom]{footmisc}

\fancypagestyle{CVfooter}
{
 \lhead{}
 \chead{}
 \rhead{}
 \renewcommand{\headrulewidth}{0.0pt}
 \renewcommand{\footrulewidth}{0.8pt}
}

\usepackage{bibunits}
\usepackage[sort&compress,super]{natbib}
\defaultbibliographystyle{apalike}
\setcitestyle{comma}
\setlength{\bibsep}{8pt}

\renewcommand{\bibnumfmt}[1]{\ \ \ #1.}
\renewcommand\refname{\vspace{-7mm}}


\begin{document}
\pagestyle{CVfooter}

\noindent \textbf{\textit{\ \ Under Review}}
\vspace{-2mm}
\begin{bibunit}
\nocite{paper1}
\nocite{paper2}
\putbib[publications]
\end{bibunit}

\end{document}
@article{paper1,
  title={First article},
  author={Smith, John, and Obra, Daniel,  and Spencer, James},
  journal={A journal},
  volume={45},
  number={7},
  pages={11--46},
  year={2013}
}

@article{paper2,
  title={Second article},
  author={Smith, John and Spencer, James},
  journal={My journal},
  volume={4},
  number={5},
  pages={703--718},
  year={2019}
}

enter image description here

The .bst file can be reached at this link.

9
  • Give replacing \nocite{paper1,paper2} with \nocite{paper2,paper1}, followed by a full recompilation cycle, a try.
    – Mico
    May 17, 2021 at 4:22
  • Unfortunately, it did not work. I've tried \nocite{paper2,paper1}, but the order did not change.
    – ball_jan
    May 17, 2021 at 5:52
  • I don’t have access to the file my-apalike.bst. Have you ascertained that it does not sort the bib entries alphabetically?
    – Mico
    May 17, 2021 at 6:16
  • My bad! I edited my post and shared a link to access the .bst file.
    – ball_jan
    May 17, 2021 at 6:20
  • 1
    The link you provided points to a file called apalike.bst, not my-apalike.bst. Is this difference of any relevance?
    – Mico
    May 17, 2021 at 14:22

0

You must log in to answer this question.

Browse other questions tagged .