Re: Using ConversionRules to generate labels in TeX
- To: mathgroup at smc.vnet.net
 - Subject: [mg62882] Re: Using ConversionRules to generate labels in TeX
 - From: Paul Abbott <paul at physics.uwa.edu.au>
 - Date: Thu, 8 Dec 2005 00:04:08 -0500 (EST)
 - Organization: The University of Western Australia
 - Sender: owner-wri-mathgroup at wolfram.com
 
On Dec 2, W. Craig Carter wrote:
> I am unable to get the cell option, ConversionRules, to do what I 
> want. The documentation is not terribly helpful. 
> What I want is Mathematica to generate a label for specified cells 
> when I save as a TeX document. 
> I've tried this: 
> ConversionRules->{"TeX",{{"\label{foo}", ""}}} 
> but nothing shows up on conversion to TeX. 
> Any ideas? 
There's a syntax error here. The rule should be written as:
  ConversionRules->{"TeX" -> {"\label{foo}", ""}}
and this works. It seems more typical for the label to appear after the 
cell's content, so perhaps
  ConversionRules->{"TeX" -> {"", "\label{foo}"}}
is better.
Cheers,
Paul
_______________________________________________________________________
Paul Abbott                                      Phone:  61 8 6488 2734
School of Physics, M013                            Fax: +61 8 6488 1014
The University of Western Australia         (CRICOS Provider No 00126G)    
AUSTRALIA                               http://physics.uwa.edu.au/~paul