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

Define styles of TOC #1672

Closed
demogorgorn opened this issue Jul 19, 2019 · 1 comment
Closed

Define styles of TOC #1672

demogorgorn opened this issue Jul 19, 2019 · 1 comment

Comments

@demogorgorn
Copy link

Is it possible to set up styles for TOC? Expecting ident to set bold style for example?

@demogorgorn
Copy link
Author

I fond the solution. We can easily define styles of TOC that will be saved also after refresing the toc!

$phpWord->addFontStyle('toc 1', ['name' => 'Times New Roman', 'size' => 14, 'bold' => true], [] );
$phpWord->addFontStyle('toc 3', ['name' => 'Times New Roman', 'size' => 12, 'bold' => true], [] );

Important here is to use these style names!

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

No branches or pull requests

1 participant