-
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.
Add placeholders_for_extensions, CI on v1.9
modified: .github/workflows/ci.yml modified: Project.toml renamed: ext/LuxorExt.jl -> ext/LuxorExtLatex.jl modified: ext/latex.jl modified: src/Luxor.jl new file: src/placeholders_for_extensions.jl modified: test/latex.jl
- Loading branch information
Showing
7 changed files
with
77 additions
and
25 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
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