I have one problem with this code and special characters:


\newcommand{\avec}{\qquad \text{avec} \qquad}
\renewcommand{\harvardurl}[1]{\unpenalty\unskip\unpenalty}%remove url

\let\x@bibitem\bibitem% store original \bibitem
\def\x@getfirst#1#2\endgetfirst{#1}% macro that returns the first letter/token of its argument
\def\x@bibalph{}% previous first letter, initiated to nothing
\def\bibitem[#1]{% new bibitem
  \edef\x@bibalphtest{\x@getfirst#1\endgetfirst}% get the new first letter
  \ifx\x@bibalphtest\x@bibalph\else % if the first letter changed
    \let\x@bibalph\x@bibalphtest% update
    \subsection*{\x@bibalph}% and make the \subsection
  \x@bibitem[#1]% start the \bibitem itself


(The source of the code between \makeatletter and \makeatother is this answer.)

The code is supposed to print an unnumbered subsection-level header, consisting of a single letter (A, B, C, ...), whenever the alphabetical order changes in the bibliography. Unfortunately, the code appears to think that upper- and lowercase letters are different, and that's why there are currently 4 subgroups for the 6 references that start with the letter "V":

V - v - V - v 

enter image description here

The second problem is that the code gets tripped up if a surname starts with an "accented" character. E.g., the surname Černe gets entered as {\v C}erne for BibTeX purposes. In my bibliography, the "{\v C}erne et al" entry should be in the same group -- viz., "C" -- as the "Callon et al" and "Chae" entries. Currently, though, the code is not sophisticated enough to "realize" that {\v C} should be treated as C.

enter image description here

Question: How should the code between \makeatletter and makeatother be adjusted to make it insensitive to capitalization and to the presence of "accented" characters in the first letter of the first author's surname?

This is the file libraryC2.bib; it contains entries with authors whose surnames begin with C, D, and V. (The bib database is stored in Mendeley.)

  author   = "Callon, M. and Courtial, J.-P. and Turner, W. A.
              and Bauin, S.",
  doi      = "10.1177/053901883022002003",
  issn     = "0539-0184",
  journal  = "Social Science Information",
  number   = 2,
  pages    = "191--235",
  publisher= "SAGE Publications",
  title    = "From translations to problematic networks: An
              introduction to co-word analysis",
  volume   = 22,
  year     = 1983,

  author   = "{\v C}erne, Matej and Ka{\v s}e, Robert and 
              {\v S}kerlavaj, Miha",
  doi      = "10.1016/j.scaman.2016.02.001",
  issn     = 09565221,
  journal  = "Scandinavian Journal of Management",
  keywords = "Co-citation analysis,Innovation,Non-technological
              innovation,Quantitative literature review,Social
              network analysis-island algorithm",
  number   = 2,
  pages    = "69--85",
  title    = "Non-technological innovation research: Evaluating
              the intellectual structure and prospects of an
              emerging field",
  volume   = 32,
  year     = 2016,

  author   = "Chae, Bongsug",
  doi      = "10.1080/02642069.2010.545390",
  isbn     = "0264-2069",
  issn     = 02642069,
  journal  = "Service Industries Journal",
  keywords = "BUSINESS planning,BUSINESS service
              centers,COMPETITIVE advantage,CUSTOMER
              services,PROFESSIONAL corporations,STRATEGIC
              planning,complexity theory,knowledge-intensive
              business service,new solution development",
  number   = 1,
  pages    = "127--149",
  title    = "A framework for new solution development: an
              adaptive search perspective",
  volume   = 32,
  year     = 2012,

  author   = "de Reuver, Mark and Ondrus, Jan",
  doi      = "10.1016/j.telpol.2017.01.004",
  issn     = 03085961,
  journal  = "Telecommunications Policy",
  keywords = "Digital platforms,Ecosystems,Mobile
              payment,Multi-sided platforms,Secure element",
  pages    = "1--10",
  publisher    = "Elsevier",
  title    = "When technological superiority is not enough: The
              struggle to impose the {SIM} card as the {NFC}
              Secure Element for mobile payment platforms",
  year     = 2017,

  author   = "De Solla Price, D. J. and Beaver, D.",
  doi      = "10.1037/h0024051",
  issn     = "1935-990X",
  journal  = "American Psychologist",
  number   = 11,
  pages    = "1011--1018",
  publisher    = "American Psychological Association",
  title    = "Collaboration in an invisible college",
  volume   = 21,
  year     = 1966,

  author   = "de Vaujany, Fran{\c c}ois-Xavier",
  isbn     = "978-2-7637-2655-7",
  pages    = 110,
  publisher    = "Presses Universit{\'e} Laval",
  title    = "Sociomat{\'e}rialit{\'e} et information dans les
              organisations: entre bonheur et sens?",
  year     = 2015,

  author   = "Demirkan, Haluk and Spohrer, Jim",
  doi      = "10.5437/08956308X5805007",
  issn     = 08956308,
  journal  = "Research Technology Management",
  number   = 5,
  pages    = "12--15",
  title    = "T-Shaped Innovators: Identifying the Right Talent
              to Support Service Innovation",
  volume   = 58,
  year     = 2015,

  author   = "Den Hertog, Pim and Rubalcaba, Luis and Segers,
  journal  = "International Journal of Services Technology and
  keywords = "R\&D and innovation,Reference,innovation
              policy.,market failures,services,systemic
  number   = "3/4",
  pages    = "334--354",
  title    = "Is there a rationale for services {R\&D} and
              innovation policies?",
  volume   = 9,
  year     = 2008,

  author   = "Djellal, Faridah and Gallouj, Camal and Gallouj,
              Fa{\" i}z",
  journal  = "Economies et Soci{\'e}t{\'e}s. S{\'e}rie EGS,
              Economie et gestion des services",
  pages    = "1979--1999",
  title    = "L'innovation dans les services et par les services:
              un bilan des travaux fran{\c c}ais r{\'e}cents
  year     = 2003,

  author   = "Van de Ven, A. H. and Poole, M.S.",
  doi      = "10.5465/AMR.1995.9508080329",
  isbn     = 03637425,
  issn     = "0363-7425",
  journal  = "The Acadeny of Management Review",
  number   = 3,
  pages    = "510--540",
  pmid     = 181,
  title    = "Explaining development and change",
  volume   = 20,
  year     = 1995,

  author   = "van den Broek, Tijs and van Veenstra, Anne Fleur",
  isbn     = 9783000502842,
  booktitle= "Twenty-Third European Conference on Information
              Systems (ECIS), M{\"u}nster, Germany, 2015",
  keywords = "Big Data,Data Sharing,ELSS -
              Society,Infostructures,Inter,Life and Social
              Sciences,SP2,Strategy \& Policy 2,Urban Mobility
              \& Environment,organisational Collaborations",
  pages    = "1--12",
  title    = "Modes of governance in inter-organisational data
  year     = 2015,

  author   = "Van Der Aa, Wietze and Elfring, Tom",
  doi      = "10.1016/S0956-5221(00)00040-3",
  isbn     = "0956-5221",
  issn     = 09565221,
  journal  = "Scandinavian Journal of Management",
  keywords = "Client as co-producer,Multi-unit organization,New
              innovations,Supporting processes,Technological
  number   = 2,
  pages    = "155--171",
  title    = "Realizing innovation in services",
  volume   = 18,
  year     = 2002,

  author   = "Vargo, Stephen L. and Maglio, Paul P. and Akaka,
              Melissa Archpru",
  doi      = "10.1016/j.emj.2008.04.003",
  isbn     = "0263-2373",
  issn     = 02632373,
  journal  = "European Management Journal",
  keywords = "Service science,Service system,Service-dominant
  mendeley-tags= "Service science,Service system,Service-dominant
  month    = "jun",
  number   = 3,
  pages    = "145--152",
  title    = "On value and value co-creation: A service systems
              and service logic perspective",
  volume   = 26,
  year     = 2008,

  author   = "Vergori, Anna Serena",
  doi      = "10.1080/02642069.2013.763343",
  issn     = 02642069,
  journal  = "Service Industries Journal",
  keywords = "ASSIMILATION theory (Cognitive learning
              theory),INDUSTRIAL surveys,INNOVATION
              management,INNOVATIONS in
              business,RESEARCH,SERVICE industries --
  number   = 2,
  pages    = "145--161",
  title    = "Measuring innovation in services: the role of
  volume   = 34,
  year     = 2014,

  author   = "vom Brocke, Jan and Simons, Alexander and Riemer,
              Kai and Niehaves, Bj{\"o}rn and Plattfaut, Ralf
              and Cleven, Anne",
  isbn     = 15293181,
  issn     = 15293181,
  journal  = "Communications of the Association for Information
  keywords = "Dissertation Review,Information Systems,Literature
              Review,Literature Search,Systematic Literature
  number   = 1,
  pages    = "205--224",
  pmid     = 109101530,
  title    = "Standing on the Shoulders of Giants: Challenges and
              Recommendations of Literature Search in
              Information Systems Research",
  volume   = 37,
  year     = 2015,
  • 1
    Did you try any of the solutions in the linked question using Biblatex/Biber? That's probably the way to go here, if you can, though it won't fix problems in the .bib itself. In any case, please provide enough bibliography entries in your question for people to reproduce without needing to tangle with dropbox, which many of us won't do. – cfr Mar 1 '18 at 1:53
  • 1
    Thanks. I know you didn't ask about the .bib file, but the problems @Mico pointed out will prevent you from getting the correct results and will complicate your efforts to determine what is causing oddities in the output. That is, you can't expect to get sensible output if you don't feed in sensible input. That's not necessarily related to the issue you're asking about, although inconsistent mark-up of names might possibly be part of the cause, but still presumably important to you actual purposes :-). – cfr Mar 1 '18 at 17:14
  • 3
    Some of the problems are the direct result of poor coding practices. E.g, writing {Van de Ven}, A. H. is just pointless and is asking for trouble. Write Van de Ven, A. H., etc and you'll be fine. It really isn't good practice to wantonly add brace groups in a bib file. – Mico Mar 1 '18 at 21:36
  • 1
    I've taken the liberty of editing your posting further, both to simplify the exposition (and the LaTeX code) and to pose the question you wish to answer much more directly. I hope you're OK with that. – Mico Mar 1 '18 at 22:27
  • 1
    Hello @Mico! Thaks a lot for your edition and corrections in latex code and question. Great! I use sharelatex with Mendeley integration for references management (I have more of 1500 references, book or articles, in pdf ou djvu format). The bib file is generated automatly by Mendeley. – Vie d'Or d'Heureux Mar 2 '18 at 7:54

Your Answer

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

Browse other questions tagged or ask your own question.