Skip to content

Custom formats for latex citation #64

@benbrastmckie

Description

@benbrastmckie

I believe to be doing the right thing, but am not getting the right results upon running the command :Telescope bibtex format=CiteT. Here is what I have in the config:

      custom_formats = {
        {id = 'citet', cite_maker = '\\citet{%s}'}
      },
      -- Custom format for citation label
      format = 'citet',
      -- Format to use for citation label.
      -- Try to match the filetype by default, or use 'plain'

I have also tested it with cite_maker = '#%s#' or with parentheses but would only get the citation key alone instead of wrapped inside the citation command that I want to be added as well.

I have also tried the command :Telescope bibtex but still get \cite{KEY} instead of \citet{KEY} as desired. Any pointers would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions