-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from hustf/iss275
Move from @require to v1.9 Ext
- Loading branch information
Showing
8 changed files
with
97 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
julia-version: | ||
- "1.6" | ||
- "1.9" | ||
- "1" | ||
- "nightly" | ||
os: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
environment: | ||
matrix: | ||
- julia_version: 1.7 | ||
- julia_version: 1.9 | ||
- julia_version: latest | ||
|
||
platform: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
""" | ||
This extension is loaded and used by Luxor if both LaTeXStrings and MathTeXEngine is loaded. | ||
The functions are accessed through Luxor as usual. | ||
""" | ||
module LuxorExtLatex | ||
|
||
include("latex.jl") | ||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Extensions are modules that depend on Luxor and other modules. | ||
# They are loaded when Luxor and these modules are loaded. | ||
# Extensions (LuxorExt...) cannot however reliably introduce new symbols | ||
# into Luxor. Hence, placeholder functions with catchall argument types: | ||
function latextextsize(catch_all) | ||
if Base.get_extension(Luxor, :LuxorExtLatex) isa Module | ||
throw(MethodError(latextextsize, catch_all)) | ||
else | ||
throw(ErrorException("Modules LaTeXStrings and MathTeXEngine are not loaded.")) | ||
end | ||
end | ||
function latexboundingbox(catch_all; kwargs...) | ||
if Base.get_extension(Luxor, :LuxorExtLatex) isa Module | ||
throw(MethodError(latexboundingbox, catch_all)) | ||
else | ||
throw(ErrorException("Modules LaTeXStrings and MathTeXEngine are not loaded.")) | ||
end | ||
end | ||
function rawlatexboundingbox(catch_all) | ||
if Base.get_extension(Luxor, :LuxorExtLatex) isa Module | ||
throw(MethodError(rawlatexboundingbox, catch_all)) | ||
else | ||
throw(ErrorException("Modules LaTeXStrings and MathTeXEngine are not loaded.")) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters