8
$\begingroup$

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.

$\endgroup$
  • $\begingroup$ What is an ItemNumbered cell? $\endgroup$ – Tom Wellington Oct 8 '12 at 20:21
  • $\begingroup$ It's a Cell style. Just go to Format -> Style -> Item Numbered. It uses a CounterBox to keep track of counts. $\endgroup$ – M.R. Oct 8 '12 at 20:26
  • $\begingroup$ Would Publicon do what you want? $\endgroup$ – Silvia Oct 9 '12 at 21:54
  • 6
    $\begingroup$ Does this question's answer answer your question? $\endgroup$ – rcollyer Oct 10 '12 at 2:04