Change Fonts/Format Styles in Bibliography

Dec 1, 2010 at 10:40 AM

Hi there,

first of all, this is a very great project and it helped me a lot with my diploma thesis for now. Just something that is bugging me a bit right now:

I modded Harvard Anglia to show 2 columns looking like that:

Axelrod, 1997a Axelrod, R., 1997. Die Evolution der Kooperation. München, Deutschland: Oldenbourg. 4. Auflage.

I'd like the bib-style to automatically change the first column to either a specific predefined layout paragraph style or at least change it to another (sans-serif-) font (and accordingly another font size), so it'll look like this:

Axelrod, 1997a Axelrod, R., 1997. Die Evolution der Kooperation. München, Deutschland: Oldenbourg. 4. Auflage.

Is there a way to do that inside the XSL or is that something I always have to do manually after updating the bibliography?


Thanks a lot in advance,


Jan 7, 2011 at 1:00 PM


Any idea? =)

Jan 7, 2011 at 5:50 PM

Wrap the format string for the first column into a html span element with a style attribute. This should overwrite the default formatting.

For example, where you have something like

<format>{%Author%}{ %Year%}</format>

you could write

<format>&lt;span style="font-weight=bold;"&gt;{%Author%}{ %Year%}&lt/span&gt;</format>

It is basically the exact same way how in some styles the volume of a journal article is set in bold and the issue in italics.

Jan 8, 2011 at 12:11 PM

Thanks, but making the text bold is not the problem =)

I'd like to assign another predefined layout paragraph style (the ones you can configure directly in word)  to the first column, so it changes Font, Size, indents and so on when I update the bibliography. Do you think, that's somehow possible?

btw thanks a lot for your effort, BibWord rescued me!

Jan 8, 2011 at 12:25 PM

Currently there is only one mapping that I'm aware of for bibliographies and that is the one through the MsoBibliography style. But I guess you could use others as well.

A simple test could be to replace MsoBibliography with MsoNormal in the xsl and see if the bibliography adheres to the normal style paragraph formatting instead of the bibliography one. If it does, the change you want should be possible.

If the above test succeeds, in the template format-bibliography-table-column you would have to insert a conditional option depending on the column you are in. Currently the style is fixed to MsoBibliography through "<p class="MsoBibliography">". You could make the value of the class attribute variable (just check the line above it for an example).