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


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

Copy as LaTeX v9 vs v8

From Themis Matsoukas <tmatsoukas@me.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Copy as LaTeX v9 vs v8
Date 2012-12-16 10:05 +0000
Message-ID <kak6dh$k4e$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web