You could open the database in your editor. It is called otfl-names.lua and should be in one of your texmf-trees in \luatex-cache\generic\names
.
It is also not very difficult to make lists based on otfl-names.lua. E.g.
Old version (Texlive 2013?)
\documentclass{article}
\usepackage{luacode,luaotfload}
\begin{document}
\begin{luacode}
myfonts=dofile(fonts.names.path.localdir..'/otfl-names.lua')
for i,v in ipairs(myfonts.mappings) do
tex.print(-2, v.familyname)
tex.print(', ')
tex.print(-2, v.fontname)
tex.print('\\par')
end
\end{luacode}
\end{document}
Edit in may 2013: With a newer luaotfload (as the one in TL2013 (pretest) one should exchange the myfonts line by this one as the name of the database as changed:
myfonts=dofile(fonts.names.path.path)
Edit for Texlive 2014
I tried again in TL 2014 (june 2014). Now the names file is in a .luc and the access name has changed again. I also added some "if exist code" to avoid error if a table entry doesn't exist for a font:
\documentclass{article}
\usepackage{luacode}
\usepackage{luaotfload}
\begin{document}
\begin{luacode}
myfonts=dofile(fonts.names.path.index.luc)
tex.sprint(fonts.names.path.index.luc)
---[[
for i,v in ipairs(myfonts.mappings) do
if v.familyname then
tex.print('\\par')
tex.print(-2, v.familyname)
end
if v.fontname then
tex.print(', ')
tex.print(-2, v.fontname)
end
tex.print('\\par')
end
--]]
\end{luacode}
\end{document}
Edit for TeXlive 2015 / MiKTeX in july 2015
The code do get the names file has to be adapted again. Now this here seems to work.
\documentclass{article}
\usepackage{luacode}
\usepackage{luaotfload}
\begin{document}
\begin{luacode}
myfonts=dofile(config.luaotfload.paths.index_path_luc)
tex.sprint(config.luaotfload.paths.index_path_luc)
---[[
for i,v in ipairs(myfonts.mappings) do
if v.familyname then
tex.print('\\par')
tex.print(-2, v.familyname)
end
if v.fontname then
tex.print(', ')
tex.print(-2, v.fontname)
end
tex.print('\\par')
end
--]]
\end{luacode}
\end{document}
Best Answer
Such shortcuts are mainly useful for you if you have the font installed. Such lists are on your system. If you use pdfTeX, take a look into
pdftex.map
. You could find it byat the command prompt, or use any search feature of your system. It shows the font mappings.
There are ways you could get concrete information you need. I would list all installed fonts by
On my system ist lists nearly 200 lines of font maps, such as
so I know which fonts are installed. I posted this earlier here.
To see the respective shortcuts, I would look into those files. Since I can find them using
kpsewhich
, I typeusing gedit or any other editor. So I find the shortcuts inside:
jkpmnc
etc.Often I take the quick way and look into the
sty
file to hopefully find the correct shortcut. Again, I usekpsewhich
likeRemark, for an explanation and an outlook:
kpsewhich
works also on Windows.gedit
is a GNOME editor, mainly used on Linux, such as Debian and Ubuntu. The backticks in the command lines evaluate the command and give the output togedit
. Because of command line features, piping, grepping, replacing with regexp and many more I like to use TeX on Linux. Here, I look for font names on my complete system, filtering for Charter fonts, cutting the output a bit bysed
, the stream editor:which returns:
If there would be a list on the internet, I guess it could be found by using a search engine and typing in 5 or more already known shorthands all together.