Re: [EP-underground] enabling latex features

"Malka Cymbalista" <[email protected]> Wed, 24 Jul 2002 09:59:27 +0300
Newsgroups gmane.comp.web.eprints.general
Message-ID <[email protected]>
Thanks very much for your reply.  I had a hard time getting convert to work properly but I now get proper mathematical output when I go to 
http://--archiveurl--/perl/latex2png?latex={\pi}r^2

However, I cannot find the file ArchiveMetadataConfig.pm.  Where is it supposed to be?  I did a 
     find . - name ArchiveMetadataConfig.pm 
in the highest eprints directory but nothing shows up.

I did find a file ArchiveMetadataFieldsConfig.pm.  Is that the one?  But I could not figure out where to put the line 
  render_single_value => \&EPrints::Latex::render_string 

Any help will be appreciated.  Thank you.


Malki Cymbalista
Webmaster, Weizmann Institute of Science
Rehovot, Israel 76100
Internet: [email protected]

>>> [email protected] 07/15/02 02:08PM >>>
First you should check it's working... try

http://--archiveurl--/perl/latex2png?latex={\pi}r^2

Which should return the image of an equation.

The most likely problem you'll have is it not knowing where latex/convert etc.
are, in which case edit /opt/eprints2/perl_lib/EPrints/SystemSettings.pm

THEN:

In ArchiveMetadataConfig.pm add the following property to the text or
longtext field(s):

render_single_value => \&EPrints::Latex::render_string 

This overrides the default field renderer with the latex aware one.

On Mon, Jul 15, 2002 at 12:08:52PM +0300, Malka Cymbalista wrote:
> The eprints documentation says that there is an optional feature that
> allows eprints to look in certain fields for TeX looking text and
> display it as an image. When I originally installed eprints, I did not
> install latex.  I have since then installed  latex, dvips, and convert. 
> How do I enable this feature?
> Thanks for any information.
> 
> Malki Cymbalista
> Webmaster, Weizmann Institute of Science
> Rehovot, Israel 76100
> Internet: [email protected] 

-- 

 Christopher Gutteridge                   [email protected] 
 ePrints2 Coder, Support and Stuff        +44 23 8059 4833