Releases: korsbo/Latexify.jl
Add support for Julia 0.7 and 1.0. Deprecate Julia 0.6.
No new functionality is added, but the code has been refactored.
The refactoring was necessitated by a breaking change to Requires.jl. All the code which requires external packages is now placed in files under the src/plugin/
directory. This may also make it easier for others to see how one overloads Latexify functions in order to add support for something new.
Support for Dicts. Last 0.6 supported release.
Add method for latexifying Dicts.
Additional input and output support. Last 0.6 compatible release.
This is most likely the last release which supports Julia 0.6.
- Add support for outputting Markdown tables and text.
- Add support for DataFrames
- Add the ability to render ReactionNetworks in chemical arrow notation using mhchem.
- Rewrite docs for using
latexify
and onlylatexify
.
Overhaul `latexify()`, reduce deps and add other support.
-
Let
latexify
infer a suitable output environment. This is a breaking change. -
Add
latexinline
to replace the previous function oflatexify
. -
Use Require.jl to limit the REQUIREments of this package.
-
Add support for AbstractReactionNetwork from DiffEqBiological.jl
-
Add side-by-side aligns for ParameterizedFunctions.
-
Add
latextabular
. -
Update the docs.
Fix compatibility with ParameterizedFunctions 3.0.0 and increase support for input.
Fix compatibility issue after ParameterizedFunction update.
Increase support for rendering functions such as arctan
, etc.
Add latexalign()
methods for input of the following forms:
- vector containing expressions with both left-hand-side and right-hand-side in each element (ex
u[1] = "x=y"
). - vector of ParameterizedFunctions results in a side-by-side display.
Allow automatic copying to clipboard.
Allows the user to choose if the output of the Latexify.jl functions should be copied to the system clipboard.
Enabled with
copy_to_clipboard(true)
Automatic rendering and reduced requirements.
-
Utilize the latex string type provided by LaTeXStrings.jl to allow for automatic rendering of the function outputs when used with IJulia.
-
Reduce the dependencies by not requiring the full DifferentialEquations.jl but instead only the DiffEq packages which are actually needed.
-
Rename the old latexify function to latexraw.
-
Create a new latexify function which essentially calls latexraw but converts the output to a LaTeXString with a surrounding $$ environment. This is now automatically rendered in IJulia.
Initial release
Initial release of Latexify.jl
Latexify.jl is a package which supplies functions for producing LaTeX formatted strings from Julia objects. Among the supported input types are Julia Expressions, which gets converted to properly formatted LaTeX maths.
Supported objects
This package supplies functionality for latexifying objects of the following types:
- Expressions,
- Strings,
- Numbers (including rational and complex),
- DataFrames' NA type,
- Symbols,
- Symbolic expressions from SymEngine.jl.
Along with any shape of array which contains elements of the above types.
Example:
julia> str = "x/(2*k_1+x^2)"
julia> print(latexify(str))
\frac{x}{2 \cdot k_{1} + x^{2}}
Functions
latexify(x)
Latexifies an object x
and returns a LaTeX formatted string.
If the input is an array, latexify
recurses it and latexifies its elements.
This function does not surround the resulting string in any LaTeX environments.
latexalign()
Latexifies input and surrounds it with an align environment. Useful for systems of equations and such fun stuff.
latexarray()
Latexifies a 1 or 2D array and generates a corresponding LaTeX array.