[Disclaimer: I don't know much about BibTeX or bibtex.el
, so take what follows with the appropriate grain of salt]
I think you misunderstand what this is supposed to do. BibTeX string constants are basically abbreviations:
@string{ foo = "a very long string that I would not like to have to type constantly" }
You can then use it in a field like this:
@Book{ key
author = {A.U.Thor}
title = {This is } # foo # { indeed}
...
}
The hash is a string concatenation operator and the string constant foo
gets replaced by its definition when you bibtex
your file.
What the bibtex-field-strings-alist
mechanism allows you to do is to not worry about what's inside and what's outside the braces or getting the string concatenation operators right. You can say
(setq bibtex-field-strings-alist
'((("title") "foo" "foo")))
and write the entry as
@Book{ key
author = {A.U.Thor}
title = {This foo indeed}
...
}
Then C-c C-c
gets you the previous form of the entry which is then properly expanded using the definition of the string. That's all it does.
bibtex.el
provides some facilities but to understand where/when/how to use them, you need a grounding in BibTeX itself. This question is just barely about Emacs: it's more about BibTeX, so it would probably be more appropriate for the TeX-LaTeX SE site.
PS. BTW, when you change bibtex-field-strings-alist
(or as in your previous question, bibtex-field-braces-alist
), you don't need to restart emacs, but you do need to reinitialize the variable bibtex-field-strings-opt
(or bibtex-field-braces-opt
) to nil
.