Get Latin Modern on Quiver

Just had my first hand-on experience with Quiver. It’s quite a useful note-taking app. Just that it only supports OS X. It would be better if it works on Android as well.

I’ve found out that Quiver uses MathJax for LaTeX rendering, and it uses STiX fonts instead of Latin Modern. Personally, I prefer Latin Modern better for math expressions, as it’s the default choice, and STiX just too similar to Times.

Okay let’s come back to the topic: how to change the font in Quiver LaTeX rendering.

Well, actually, MathJax only officially support a bunch of different fonts, they are:

  • MathJax TeX
  • STIX General
  • Asana Math
  • Neo Euler
  • Gyre Pagella
  • Gyre Termes
  • Latin Modern

So, you are not limited to just Latin Modern and STIX.

What you need

  • Quiver app
  • Latest MathJax Package

The procedure is quite simple. First you need to make a back up of your current Quiver app, so that in case of any problems, you can just revert it back.

Then, navigate to the path Quiver.app/Contents/Resources/html-build/vendor, replace all contents in MathJax-2.4.0 with corresponding files in the latest MathJaX.

Finally, replace similar code in:

  • html-build/presentation.html
  • html-build/preview.html
  • html-build/export.html

to the following code (usually from line 45):

1
2
3
4
5
6
"HTML-CSS": {
availableFonts: ["Latin-Modern"],
preferredFont: null,
webFont: "Latin-Modern",
imageFont: null
}

Note: Replace Latin-Modern with TeX, STIX-Web, Asana-Math, Neo-Euler, Gyre-Pagella or Gyre-Termes to use other fonts.

That’s it. Restart your Quiver app and enjoy.

preview.png


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post’s permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post’s URL again. (Find out more about Webmentions.) 要在你自己的网站上回应,请输入你的回应页面的 URL,该页面应包含指向此文章永久链接 URL 的链接。你的回应随后将显示在此页面上(可能需要经过审核)。想更新或删除你的回应?请更新或删除你的文章并再次输入你的文章 URL。(了解更多关于 Webmention 的信息。) 自分のサイトで返信するには、この投稿のパーマリンク URL へのリンクを含む返信ページの URL を入力してください。あなたの返信は(承認後に)このページに表示されます。返信を更新または削除したい場合は、あなたの投稿を更新または削除し、再度その投稿の URL を入力してください。(Webmention について詳しくはこちら。)