Skip to content

Latex-style highlighting and editing in .bib file #2301

@tomvam

Description

@tomvam

Is your feature request related to a problem? Please describe it.
Currently, there is no latex-style highlighting inside an entry field of a .bib file and <F7> doesn't insert a command the way it does for a .tex file.

Describe the solution you'd like
Both of these would be useful for as non-trivial Latex editing is sometimes required.

It may not be necessary to render, say, the content of \emph as emphasized, nor to highlight ~, --, etc (though I think that would be nice) but it would be very helpful to highlight every command at least, as would the <F7> insertion, especially in the visual mode.

Examples from Biblatex developers and a TeX thread


@inproceedings{moraux,
  author       = {Moraux, Paul},
  editor       = {Lloyd, G. E. R. and Owen, G. E. L.},
  title        = {Le \emph{De Anima} dans la tradition gr{\`e}cque},
  date         = 1979,
  booktitle    = {Aristotle on Mind and the Senses},
  subtitle     = {Quelques aspects de l'interpretation du trait{\'e}, de
                  Theophraste {\`a} Themistius},
  booktitleaddon= {Proceedings of the Seventh Symposium Aristotelicum},
  eventdate    = 1975,
  publisher    = cup,
  location     = {Cambridge},
  pages        = {281-324},
}

@Article{gibbard,
  author       = {Gibbard, Allan},
  title        = {Morality in Living},
  subtitle     = {Korsgaard's {Kantian} Lectures},
  journaltitle = {Ethics},
  year         = 1999,
  volume       = 110,
  number       = 1,
  pages        = {140--164},
  titleaddon   = {\bibstring{reviewof} \mkbibemph{The Sources of
                  Normativity}, \bibstring{by} {Christine M. Korsgaard}},
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions