Hello Christian,

On 30/01/2010, at 11:22 PM, Christian Pleul wrote:

Hi,

is there a way to assign a certain css class to bibliography links created with the cite command?

Processing citations is pretty complicated.
The easiest way to hack into that coding to add a CSS class
would be to make a personalised version of the   process_cite
subroutine. Currently this is just:

  sub process_cite { &process_real_cite(@_) }

This extra level of indirection is there, precisely to make it easy
to add extra tag processing after all the real work of converting
symbolic keys to HTML structures, has been done.

So you could try wrapping this in <span> tagging:

sub process_cite { '<span class="cite">'.&process_real_cite(@_).'</ span>' }

then attach a CSS rule to  span.cite  in whatever CSS files are
being used with your job.

This is just a single line of coding that can go into your
initialisation file, either for a single job, or for all jobs.




Thanks,
--
        Christian


Hope this helps,

        Ross

------------------------------------------------------------------------
Ross Moore                                       [email protected]
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------



_______________________________________________
latex2html mailing list
[email protected]
http://tug.org/mailman/listinfo/latex2html

Reply via email to