\newenvironment{amatrix}[1]{%
\left[\begin{array}{@{}*{#1}{c}|c@{}}
}{%
\end{array}\right]
}
But MathJax puts one between every column!
*{#1}{c}*{#1}{c}|cc|c\newenvironment{amatrix}[1][ccc|c]{\left[\begin{array}{#1}}{\end{array}\right]}
$\begin{amatrix}
1 & 2 & 4 & 8 \\
16 & 32 & 64 & 128 \\
256 & 512 & 1024 & 2048
\end{amatrix}$
$\begin{amatrix}[cc|cc]
1 & 2 & 4 & 8 \\
16 & 32 & 64 & 128 \\
256 & 512 & 1024 & 2048
\end{amatrix}$
\newcommand{\augmentedmatrix}[2]{\left[\;\begin{matrix}#1\end{matrix}\right.\;\left\rvert\;\begin{matrix}#2\end{matrix}\;\right]}
$\augmentedmatrix{
1&2&4\\
16&32&64\\
256&512&1024
}{
8\\
128\\
2048
}$
--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/52cdc1f6-d5a8-4ca1-9b8a-3e6bd7852d0e%40googlegroups.com.
Does [1][ccc|c] let me override the ccc|c layout with an argument?
--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/7f6fd748-6ea4-0621-ba37-d9a40e164002%40ups.edu.
Might a macro smash two
together (one multi-column, the other a single column) and supply the delimiters
and the vertical bar?
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/28a13a60-2e2c-d9a4-a138-59ba82c3f253%40ups.edu.
\newenvironment{amatrix}[1]{%
\left[\begin{array}{#1}
\end{array}\right]
}To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrfnpxRxtObcah%2BWhbxwt1d8vZhFSfnLD5s5uC570687iQ%40mail.gmail.com.
--
Interesting. Perhaps we should just dispense with that line altogether? It's certainly not required, and some texts don't bother with it.It then becomes a matter of context, rather than visual representation, to decide if a matrix is augmented or not.(Now, the use case I'm working on is slides, so the visual representation is pretty much the whole story, but I bet life would go on if we dropped the vertical rule.)
--
But of course earlier in this discussion people suggested array is not the right thing to use
--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/64d7d837-bd4e-4153-828c-35702a604f06%40ups.edu.
But of course earlier in this discussion people suggested array is not the right thing to use
Not exactly what I meant, if you are referring to my post.It is fine for making the visual of an augmented matrix.(And getting to the original difficulty Sean posted about,it avoids the *{}{} construction.)It's not semantic though. Which suggest that it will beharder to make it fully accessible. Sometimes we havesemantic markup for these things, and even if the presentdoesn't have a solution for making them accessible, atleast the semantic markup makes it more likely that asolution will be invented at some point.Semantic markup for augmented or block matrices at thispoint in time seems to have the other problem: not leadingto something where the visual rendering looks good."Semantic" wants to make each block specified in isolation.But "looking good" wants to have alignment across a rowthat spans multiple blocks, and also across a column thatspans multiple blocks. These two things are at odds.
--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/f7610905-9656-459d-8704-0539f49812ff%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/3c14e806-265c-cde8-9de5-3eb181b6aa06%40ups.edu.