How can I export aligned equations to $\LaTeX$?

8

4

Using Palettes -> Writing Assistant -> Math Cells, you can enter aligned equations such as:

Cell[TextData[Cell[BoxData[
 FormBox[GridBox[{
    {GridBox[{
       {
        RowBox[{
         RowBox[{"f", "(", "x", ")"}], "=", 
         RowBox[{"expr", " ", "1"}]}]},
       {
        RowBox[{"=", 
         RowBox[{"expr", " ", "2"}]}]},
       {
        RowBox[{"=", 
         RowBox[{"expr", " ", "3"}]}]}
      },
      GridBoxAlignment->{"Columns" -> {{"="}}}]}
   },
   GridBoxItemSize->{"Columns" -> {{
        Scaled[0.96]}}}], TraditionalForm]]]], "Text"]

But saving as $\LaTeX$ yields equations that are unaligned and uncentered!

sample

I'm looking for a SaveAsLatex function that would correctly export human readable code for the following things:

  1. (marker) Aligned Equations
  2. Hyperlinks (refs, labels, etc...)
  3. ItemNumbered cells
  4. Centered math cells
  5. Numbered and captioned tables/figures

Here is a sample notebook to test your code.

M.R.

Posted 2012-10-04T17:15:34.467

Reputation: 30 727

Question was closed 2016-04-08T15:42:22.367

What is an ItemNumbered cell? – Tom Wellington – 2012-10-08T20:21:09.447

It's a Cell style. Just go to Format -> Style -> Item Numbered. It uses a CounterBox to keep track of counts. – M.R. – 2012-10-08T20:26:24.217

Would Publicon do what you want?

– Silvia – 2012-10-09T21:54:04.710

6

Does this question's answer answer your question?

– rcollyer – 2012-10-10T02:04:08.310

No answers