addCitation

addCitation

ADVANCED / PREMIUM BASIC

Inserts a citation into the Word document.

Description
public addCitation ( string $tagName [, array $fields = array('Author', 'Title', 'Year') [, array $options = array()]] )

This method allows to insert citations into a Word document.

Parameters

tagName

Source tag name.

fields

Fields to be displayed.

options

Check addText options to apply styles to citations (font, bold, italic, color, size, underline).

Code samples

Example #1

The resulting Word document looks like: