Skip to content

[BUG] Weave md2pdf doesn't handle \degree unicode used in Unitful.jl code. #392

@rafaqz

Description

@rafaqz

description

! Undefined control sequence.
<argument> \degree 
                   
l.141 ...oB{:}@*) (*@\HLJLn{\ensuremath{\degree}C}
                                                  @*)(*@\HLJLp{,}@*) (*@\HLJ...
No pages of output.
Transcript written on example.log.
┌ Warning: Error converting document to pdf. Try running latex manually
└ @ Weave ~/.julia/packages/Weave/7zyqS/src/writer/latex.jl:12
ERROR: LoadError: failed process: Process(`xelatex -shell-escape -halt-on-error example.tex`, ProcessExited(1)) [1]

versions

using InteractiveUtils; versioninfo():

Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

using Pkg; Pkg.status():

  [44d3d7a6] Weave v0.10.3

minimum reproducible steps

using Unitful: °C

In a jmd file at path path, then run:

weave(path, doctype="md2pdf")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions