Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
53cf64fd
Commit
53cf64fd
authored
Feb 06, 2005
by
Jay Belanger
Browse files
(math-compose-expr): Allow multiline matrices in TeX mode.
parent
1f9ad95a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
lisp/calc/calccomp.el
lisp/calc/calccomp.el
+14
-4
No files found.
lisp/calc/calccomp.el
View file @
53cf64fd
...
...
@@ -266,12 +266,22 @@
(
if
(
or
calc-full-vectors
(
<
(
length
a
)
7
))
(
if
(
and
(
eq
calc-language
'tex
)
(
math-matrixp
a
))
(
append
'
(
horiz
"\\matrix{ "
)
(
math-compose-tex-matrix
(
cdr
a
))
'
(
" }"
))
(
if
(
and
(
integerp
calc-language-option
)
(
or
(
=
calc-language-option
0
)
(
>
calc-language-option
1
)
(
<
calc-language-option
-1
)))
(
append
'
(
vleft
0
"\\matrix{"
)
(
math-compose-tex-matrix
(
cdr
a
))
'
(
"}"
))
(
append
'
(
horiz
"\\matrix{ "
)
(
math-compose-tex-matrix
(
cdr
a
))
'
(
" }"
)))
(
if
(
and
(
eq
calc-language
'latex
)
(
math-matrixp
a
))
(
if
(
memq
calc-language-option
'
(
-2
0
2
))
(
if
(
and
(
integerp
calc-language-option
)
(
or
(
=
calc-language-option
0
)
(
>
calc-language-option
1
)
(
<
calc-language-option
-1
)))
(
append
'
(
vleft
0
"\\begin{pmatrix}"
)
(
math-compose-tex-matrix
(
cdr
a
))
'
(
"\\end{pmatrix}"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment