Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add custom numbering style #198

Merged
merged 4 commits into from
Apr 11, 2014
Merged

Conversation

ivanlanin
Copy link
Contributor

Waiting for Travis check. Documentation and example has been updated. Backward compatibility still maintained. Should be able to close #10 and one step closer to close #193.

ivanlanin added a commit that referenced this pull request Apr 11, 2014
Ability to add custom numbering style. Solved #10.
@ivanlanin ivanlanin merged commit a7567f7 into PHPOffice:develop Apr 11, 2014
@Progi1984 Progi1984 added this to the 0.10.0 milestone Apr 11, 2014
@ivanlanin ivanlanin mentioned this pull request Apr 16, 2014
@jacktrey
Copy link

jacktrey commented Oct 19, 2017

I found to reset addtitle or number list

$phpWord->addNumberingStyle(
	'hNum',
	array('type' => 'multilevel', 'levels' => array(
		array('pStyle' => 'Heading1', 'format' => 'decimal', 'text' => '%1.'),
		array('pStyle' => 'Heading2', 'format' => 'lowerLetter', 'text' => '%2.'),
		array('pStyle' => 'Heading3', 'format' => 'decimal', 'text' => '%3)'),
		array('pStyle' => 'Heading4', 'format' => 'lowerLetter', 'text' => '%4)'),
	))
);
$phpWord->addNumberingStyle(
	'hNum1',
	array('type' => 'multilevel', 'levels' => array(
		array('pStyle' => 'Heading5', 'format' => 'decimal', 'text' => '%1.'),
		array('pStyle' => 'Heading6', 'format' => 'lowerLetter', 'text' => '%2.'),					
	))
);

By adding them again..haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Automatic numbering TOC Restart ListItem Numbering
3 participants