get_style method

get_style(style_file_name)

Returns bibliography style.

def get_style(self, style_file_name: str):
    ...
ParameterTypeDescription
style_file_namestrThe bibliography style file name.

Remarks

The implementation should return None to indicate that the MS Word version of specified style should be used.

Returns

The io.BytesIO with bibliography style XSLT stylesheet.

Examples

Shows how to override built-in styles or provide custom one (BibliographyStylesProvider).

class BibliographyStylesProvider(aw.fields.IBibliographyStylesProvider):

    def get_style(self, style_file_name):
        return system_helper.io.File.open_read(MY_DIR + 'Bibliography custom style.xsl')

See Also