Copy as LaTeX v9 vs v8
- To: mathgroup at smc.vnet.net
- Subject: [mg129117] Copy as LaTeX v9 vs v8
- From: Themis Matsoukas <tmatsoukas at me.com>
- Date: Sun, 16 Dec 2012 05:05:49 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@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