We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e60c1 commit 9a07798Copy full SHA for 9a07798
ext/UnitfulExt.jl
@@ -9,6 +9,16 @@ import RecipesBase
9
import LaTeXStrings: LaTeXString
10
import Latexify: latexify
11
12
+# Very ugly hack for loading the Unitful + Latexify extension on old versions of Julia:
13
+if !isdefined(Base, :get_extension)
14
+ using Requires
15
+ function __init__()
16
+ # @info "using Requires" unitfullatexifyext_fname isdefined(Base, :get_extension)
17
+ unitfullatexifyext_fname = joinpath(dirname(dirname(pathof(Unitful))), "ext", "LatexifyExt.jl")
18
+ @require Latexify="5c2747f8-3f33-11e9-0e5d-1d1b2b2a6f19" include(unitfullatexifyext_fname)
19
+ end
20
+end
21
+
22
const MissingOrQuantity = Union{Missing, <:Quantity, <:LogScaled}
23
24
#==========
0 commit comments