[l2h] customized cite links
Ross Moore
ross at ics.mq.edu.au
Sat Jan 30 23:04:27 CET 2010
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 ross at maths.mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the latex2html
mailing list