“the j stands for Jersey”
about me | research blog | wordpress plugins | jQuery plugins

5 September, 2014

De Gruyter fonts and LaTeX – the elusive DGMetaSerifScience.sty

I’m currently writing a paper which needs to conform to the De Gruyter format. The editor of the collection I’m submitting to asked us to use the Microsoft Word templates. Of course once you’ve used LaTeX there’s no going back to Word. De Gruyter themselves have on their website a LaTeX template which is freely downloadable and well documented.

The only issue is the fonts. De Gruyter have their own typeface family called De Gruyter Meta Science which looks very good and has great glyph coverage, but it is not free. Their guide explains that these fonts should be provided to you as an author by your editor. I asked, and I did in fact obtain these fonts in OTF format. Great. Except that to use them in the LaTeX template, you also apparently need some .sty files too. Quoting from the DeGruyter LaTeX template manual:

As already mentioned, dgruyter.sty checks whether the specific De Gruyter fonts are installed. More precisely, it checks whether a file DGMetaSerifScience.sty exists. If it exists, it presumes that the fonts DG Meta Science, DG MetaSerif Science, and the math font MinionMath are installed through the respective packages from De Gruyter. Otherwise errors will result.

The problem is, where do I get this .sty file from? I asked my editor, who sent me the fonts, but she had no idea about how to obtain them. After a lot of Googling and coming up with nothing, I decided to look into the details of the template file and try to figure out what this file should look like, so that I could create it myself. Turns out you actually need two .sty files which are almost identical, except in name. This is what I came up with for DGMetaScience.sty:

\ProvidesPackage{DGMetaScience}[2014/08/29]
\DeclareOption{lining}{
 \addfontfeatures{Numbers={Lining}}
}
\DeclareOption{proportional}{
 \addfontfeatures{Numbers={Proportional}}
}
\ProcessOptions\relax
\endinput

And an identical file called DGMetaSerifScience.sty where the package name is changed to reflect the file name. By having these files in the same directory as the rest of the LaTeX template I was able to successfully compile everything, and the result looks good. But who knows what else is contained in these elusive official .sty files, which I’ve omitted?

Disclaimer

The De Gruyter fonts themselves are clearly protected and I’m not making any attempt on infringing that. All I’m doing is posting my guess of what I think the associated .sty files should look like, in the hopes that someone else can find this useful. Or perhaps someone who has a better idea of this stuff can tell me what’s missing from my versions.