Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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"]] 
share|improve this question
1  
When I run the top line, I get "what are you mode" followed by a big red f(x). –  bill s May 28 '13 at 3:57
    
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? –  Jonathan Shock May 28 '13 at 4:10
    
@bill s windows x64 with Mathematica Version 9.0.1 I wonder if I mis-setting something... –  HyperGroups May 28 '13 at 4:14
    
@JonathanShock windows x64 with Mathematica Version 9.0.1. –  HyperGroups May 28 '13 at 4:15
3  
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. –  Jonathan Shock May 28 '13 at 4:42
show 8 more comments

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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