FR: allow LaTeX in tags

Hi!
It would be desirable to allow inline LaTeX in tags, to include at least subindices and superindices. For example $H_2O$ would be rendered with 2 as a subindex.

Thanks!
  • dstillman Zotero Team
    Zotero isn't a LaTeX-based tool and won't support LaTeX in field values or tags. You can use Unicode subscript and superscript characters (e.g., H₂O, CO₂, x²) directly in tags.
  • edited 3 days ago
    I understand Zotero isn't a LaTeX-based tool, but the same way it could be used in Notes, it would help much for tags. And if not LaTeX, any other tool making easier to write down subindices, superindices, greek letters and so on, since through Unicode, one first must look for the symbol, and then copy and paste, which is too complex just for writing a tag.
  • dstillman Zotero Team
    Notes are documents, so they can contain formatted text and math. Tags are identifiers that Zotero matches exactly for filtering, autocomplete, etc., and they're exported as plain text to other tools. They need to stay plain text. Unicode characters are plain text and work everywhere.

    Entering special characters is a general text-input problem that would apply to any app, and it should be solved via the OS or a text-expansion utility. Once a tag exists, Zotero will autocomplete, so you only need to enter it once.
  • edited 1 hour ago
    Notes are documents, so they can contain formatted text and math. Tags are identifiers that Zotero matches exactly for filtering, autocomplete, etc., and they're exported as plain text to other tools. They need to stay plain text. Unicode characters are plain text and work everywhere.
    Actually, LaTeX and TeX are also plain text. As, for example, it is $H_2O$. Ideally, Zotero would just interpret the $..$ surrounding as an instruction to either,
    1. show that plain text formatted as what it means in LaTeX language.
    or
    2. transform to the corresponding Unicode characters
    Of course, under a setting which would allow to choose if interpretting the $...$ string as such, or keep it raw.
    Once a tag exists, Zotero will autocomplete, so you only need to enter it once.
    Unfortunately, this is not so easy when there are a lot of tags, or also when a tag begins with a special unicode character such a greek letter, subindex or superindex.

    Another solution would be making autocomplete to expand alhpa letters when typing a, betta letters when typing b, subindices or superindices with same character as typed, and so on. Although for me, this would be a more ad-hoc solution, it would be a clear benefit.

    Related issue, but with a more proper language to Zotero, such as HTML. I do not understand Zotero tags and item titles containing .... I would expect to see the emphasized content, not the HTML-tags.
Sign In or Register to comment.