Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12814 > unrolled thread

Copy as LaTeX v9 vs v8

Started byThemis Matsoukas <tmatsoukas@me.com>
First post2012-12-16 10:05 +0000
Last post2012-12-16 10:05 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Copy as LaTeX v9 vs v8 Themis Matsoukas <tmatsoukas@me.com> - 2012-12-16 10:05 +0000

#12814 — Copy as LaTeX v9 vs v8

FromThemis Matsoukas <tmatsoukas@me.com>
Date2012-12-16 10:05 +0000
SubjectCopy as LaTeX v9 vs v8
Message-ID<kak6dh$k4e$1@smc.vnet.net>
In v8, if you have

t = {{300, 1}, {250, 20}} // 
 TableForm[#, TableHeadings -> {{a, b}, {c, d}}] &

and copy the output cell using Copy As LaTeX, you get

\begin{array}{l|ll}
  & c & d \\
\hline
 a & 300 & 1 \\
 b & 250 & 20
\end{array}

but in v9 you get

\left(
\begin{array}{cc}
 300 & 1 \\
 250 & 20 \\
\end{array}
\right)

That is, the TableHeadings are not copied and there are extraneous big parentheses.

Now, if you say 

t // TeXForm

you get

\begin{array}{ccc}
  & c & d \\
 a & 300 & 1 \\
 b & 250 & 20 \\
\end{array}

which copies the TableHeadings but not the horizontal and vertical rules.  But if you say

t
% // TeXForm

the result is the same as Copy as LaTeX:

\left(
\begin{array}{cc}
 300 & 1 \\
 250 & 20 \\
\end{array}
\right)

Not sure I can see the logic behind these behaviors.

tm

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web