Bringing the list to the conversation...Attached is a zip with your questions as an org file and the resulting PDF. Bottom line is, we could start restricting math* to align* and then open the hand as we get more experience.
Best, /PA On 15/11/26 17:11, Ihor Radchenko wrote:
"Pedro A. Aranda" <[email protected]> writes:I think the key problem I have is that we do not have a clear logic behind what :mode means in tables. Something users can intuitively understand.Let's see if I can help. If you cut from here to the end of the message, you can unwrap org examples and see what they produce. \begin{center} \begin{align*}{ll} f(x) & = (x + 1)\textsuperscript{3}\\ f(x) & = (x + 1)\textsuperscript{2} * (x + 1)\\ \end{align*} \end{center} #+END_SRC This fails because of the ={ll}=. =align= and =align*= do not accept extra parameters. It wouldn't work for the =split= environment either. Add to that the extra =\textsuperscript{}=What about a table like #+attr_latex: :mode math* :environment align* | f(x) | = (x + 1)^3 | |------|-----------------------| | | = (x + 1)^2 * (x + 1) | ? I understand that align environment require special handling of the contents, similar to :mode math, but is it the same? I'd also like to understand the expected behavior when you have cases like #+caption: one #+attr_latex: :mode math* :environment align* | f(x) | = (x + 1)^3 | | | = (x + 1)^2 * (x + 1) | look at what #+caption: one #+attr_latex: :mode math | f(x) | = (x + 1)^3 | | | = (x + 1)^2 * (x + 1) | does, vs simply #+attr_latex: :mode math | f(x) | = (x + 1)^3 | | | = (x + 1)^2 * (x + 1) |... which is way out of scope and application. Why? Because all I need something to translate my table into an environment I can define with =:environment= and that doesn't add any default =:align=, etc.The key unknown is what "etc" refers to. Because both default table export and :mode math define a number of special features during export. Clearly, the default :environment align* will not be right, but does the proposed :mode math* that reuses `org-latex--math-table' do all right for align? And do you really need to merge subsequent tables in `org-latex--wrap-latex-matrices' for align?
-- Pedro A. Aranda ox-latex & ox-beamer maintainer Sagen's Paradeiser! (ORF: Als Radiohören gefährlich war) => write BE! IA: onomatopeya del rebuzno 2nd year of the New Koprocracy
<<attachment: math-star.zip>>
