# Pandoc + lualatex font error

**URL:** <https://travis-ci.community/t/pandoc-lualatex-font-error/9409>\
**Category:** R\
**Created:** [July 21, 2020, 10:26pm UTC](https://travis-ci.community/t/pandoc-lualatex-font-error/9409 "2020-07-21T22:26:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [July 26, 2020, 6:35pm UTC](https://travis-ci.community/t/pandoc-lualatex-font-error/9409/4 "2020-07-26T18:35:49Z")

</div>

@jeroen @jimhester It look like the TexLive bundle at [https://github.com/jimhester/ubuntu-bin/releases/download/latest/texlive.tar.gz](https://github.com/jimhester/ubuntu-bin/releases/download/latest/texlive.tar.gz) has missing/outdated dependencies for `pandoc`, even the default version.

Could you consider updating it (see the workaround below), or at least tell your stance on this issue?

P.S. since the OP’s repo has a small test document, it could be used as a test for the bundle.

* * *

@dhicks **The workaround that I [confirm to work](https://travis-ci.com/github/native-api/pandoc-crossref-travis-text/builds/177203419) is:**

```bash
before_install:
- tlmgr update --all || true # one package fails to update but that doesn't affect the outcome
- tlmgr install unicode-math lualatex-math pdftexcmds infwarerr luaotfload
- luaotfload-tool --update

```

* * *

> [@dhicks](#):
>
> `linux/luaotfload-tool:74: unexpected symbol near '/'`

`cat -n $(which luaotfload-tool)` shows that [it’s a `luatex` script](https://travis-ci.com/github/native-api/pandoc-crossref-travis-text/builds/177200465#L761) and [uses](https://travis-ci.com/github/native-api/pandoc-crossref-travis-text/builds/177200465#L834) the floor division operator `//` [which is new in Lua 5.3](https://www.lua.org/manual/) while the stock `luatex` [uses 5.2](https://travis-ci.com/github/native-api/pandoc-crossref-travis-text/builds/177201876#L2448). So you need to update `luatex` to run it. I do confirm that `luaotfload-tool --update` fixes the font issue once it works.

The rest of the installs/updates are to fix unrelated failures after that.

---

_[View the full topic](https://travis-ci.community/t/pandoc-lualatex-font-error/9409)._
