1
$\begingroup$

If you take the following line, right click on it and Copy As Latex:

Cell[BoxData[RowBox[{"what", " ", "are", " ", "you", "  ", "mode", " ", 
 Cell["f(x)", "Title"]}]], "Text",
  CellChangeTimes->{{3.578697794669105*^9, 3.5786978134524927`*^9}}]

The result of pasting that is:

\text{are}\text{mode}\text{what}\text{you}\text{f(x)}

which is an alphabetization of the original set of words. How is it possible to copy the original text into $\LaTeX$ while preserving the ordering.

Sometimes this kind of disorder occurs in converting to TraditionalForm.

ExportString[
Cell[BoxData[RowBox[{"what"," ","are"," ","you","  ","mode"," ",
 Cell["f(x)","Title"]}]], "Text",
   CellChangeTimes->{{3.578697794669105*^9,3.5786978134524927`*^9}}],"Tex"]

it's ok.

how to add an item named ExportLatexToString below Copy As Latex in the menu comes via right click whose function is what ExportString done here, i.e. without the disorder of words?

My system is Windows-8 X64, Mathematica 9.0.1

Updating1:

I found TextCell and TextData should have not such disorders, maybe this is one of the right track, but the problem is how to convert default text-style-cell to TextCell like this one

CellPrint[TextCell[Row[{Style["bold", FontWeight->Bold], " are"}],"Text"]] 
$\endgroup$
13
  • 1
    $\begingroup$ When I run the top line, I get "what are you mode" followed by a big red f(x). $\endgroup$
    – bill s
    May 28, 2013 at 3:57
  • $\begingroup$ The top line also appears to be correct for me. MMA version 9.0.0.0, Mac OS X Mountain Line on a Macbook Pro. @HyperGroups. Can you specify what system you are using? $\endgroup$ May 28, 2013 at 4:10
  • $\begingroup$ @bill s windows x64 with Mathematica Version 9.0.1 I wonder if I mis-setting something... $\endgroup$ May 28, 2013 at 4:14
  • $\begingroup$ @JonathanShock windows x64 with Mathematica Version 9.0.1. $\endgroup$ May 28, 2013 at 4:15
  • 3
    $\begingroup$ This is interpreted as a list of symbols which are being multiplied together. The issue is one of reordering of symbols within the Times command. This is because Times has attribute Orderless. $\endgroup$ May 28, 2013 at 4:42

1 Answer 1

1
$\begingroup$

This is just to get an answer on record so the question can be removed from not-answered list.

Jonathan Shock answered the question in a comment:

This is interpreted as a list of symbols which are being multiplied together. The issue is one of reordering of symbols within the Times command. This is because Times has attribute Orderless.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.