Skip to content

Adding an option to redefine amsmath environments #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Basmah1961 opened this issue Jul 5, 2024 · 0 comments
Open

Adding an option to redefine amsmath environments #506

Basmah1961 opened this issue Jul 5, 2024 · 0 comments

Comments

@Basmah1961
Copy link

image

I think it is a good to add an optional argument for \UseTblrLibrary{amsmath} as \UseTblrLibrary[export]{amsmath} to allow the use of tabularray keys directly in the conventional amsmath environments. For example, array should be redefined to become +array

\documentclass{article}

\usepackage{fancyhdr}
\pagestyle{empty}

\usepackage{xcolor}

\usepackage[fleqn]{amsmath}

\usepackage{tabularray}
\UseTblrLibrary{amsmath}

\begin{document}

\begin{equation*}
f(x)=
\begin{cases}%[column{2}={r}, row{2}={purple8}] cases should become +cases 
	0
	& \text{The}
	\\
	\dfrac{1}{3}
	& \text{quick}
	\\
	\dfrac{2}{3},
	& \text{brown}
	\\
	1
	& \text{fox}
	\\
\end{cases}
\end{equation*}

\begin{equation*}
f(x)=
\begin{+cases}[column{2}={r}, row{2}={purple8}]
	0
	& \text{The}
	\\
	\dfrac{1}{3}
	& \text{quick}
	\\
	\dfrac{2}{3}
	& \text{brown}
	\\
	1
	& \text{fox}
	\\
\end{+cases}
\end{equation*}

\end{document}
@Basmah1961 Basmah1961 changed the title Adding option to redefine amsmath environments Adding an option to redefine amsmath environments Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant