Discussion:
epub to pdf conversion does't doesn't some math symbols
Atanas Janackovski
2018-02-19 23:47:29 UTC
Permalink
Hi.

When trying to convert and `.epub` document to `.pdf` executing the
commands

`pandoc -s -f epub -t latex --pdf-engine=xelatex test.epub -o test.pdf`



I get the following errors:


```
```
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ρ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!


[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≀ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≀ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≀ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≀ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≀ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≀ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≥ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ↔ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ↔ in font
[lmroman10-regular]:mapping=tex-text;!
```



I'm not sure what is going wrong, as I have the `fontspec` package
installed in my latex distribution. The relevant package and version
numbers are below:

```
pandoc 2.1
Compiled with pandoc-types 1.17.3, texmath 0.10.1, skylighting 0.5.1
TeX 3.14159265 (TeX Live 2017)
kpathsea version 6.2.3
```

Any help would be greatly appreciated. Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+***@googlegroups.com.
To post to this group, send email to pandoc-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/eb512821-8fac-4d46-8929-d3aa25669144%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
John MACFARLANE
2018-02-20 17:28:38 UTC
Permalink
It looks like your EPUB contains some unicode math, and the
font you're using doesn't have the needed characters.

You can try using the 'mainfont' variable to specify a font
that does have these.
Post by Atanas Janackovski
Hi.
When trying to convert and `.epub` document to `.pdf` executing the
commands
`pandoc -s -f epub -t latex --pdf-engine=xelatex test.epub -o test.pdf`
```
```
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ρ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≤ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≤ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≤ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no α in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≤ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≤ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≤ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ≥ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ↔ in font
[lmroman10-regular]:mapping=tex-text;!
[WARNING] Missing character: There is no ↔ in font
[lmroman10-regular]:mapping=tex-text;!
```
I'm not sure what is going wrong, as I have the `fontspec` package
installed in my latex distribution. The relevant package and version
```
pandoc 2.1
Compiled with pandoc-types 1.17.3, texmath 0.10.1, skylighting 0.5.1
TeX 3.14159265 (TeX Live 2017)
kpathsea version 6.2.3
```
Any help would be greatly appreciated. Thanks in advance.
--
You received this message because you are subscribed to the Google
Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send
To post to this group, send email to
To view this discussion on the web visit
[3]https://groups.google.com/d/msgid/pandoc-discuss/eb512821-8fac-4d46-
8929-d3aa25669144%40googlegroups.com.
For more options, visit [4]https://groups.google.com/d/optout.
References
4. https://groups.google.com/d/optout
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+***@googlegroups.com.
To post to this group, send email to pandoc-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20180220172838.GA2505%40protagoras.
For more options, visit https://groups.google.com/d/optout.
Atanas Janackovski
2018-02-22 04:15:07 UTC
Permalink
Thanks for that. I think I know what you mean. Do I do that on the command
line via the `--variable mainfont="somefont"`?
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+***@googlegroups.com.
To post to this group, send email to pandoc-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7d1ffd39-516d-40a1-8081-b98c05e97799%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...