Warning: Constant MULTISITE already defined in /home/pbmalartu/public_html/wp-config.php on line 107

Warning: Constant SUBDOMAIN_INSTALL already defined in /home/pbmalartu/public_html/wp-config.php on line 108

Warning: Constant DOMAIN_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 109

Warning: Constant PATH_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 110

Warning: Constant SITE_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 111

Warning: Constant BLOG_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 112

Warning: The magic method Pressbooks\Book::__wakeup() must have public visibility in /home/pbmalartu/public_html/wp-content/plugins/pressbooks/inc/class-book.php on line 62
Typography: Hyphens – Pressbooks User Guide ="http://www.w3.org/2000/svg" viewBox="0 0 512 512">

Special Formatting

Typography: Hyphens

Hyphens and Hyphenation

In the Apperance –> Theme Options –> PDF Options settings page of Pressbooks, you can set your hyphenation preferences for your PDF theme: hyphens on or off.

In the case that you have hyphens enabled, but you see some “bad breaks” (hyphens where you don’t want them), you can address this in the following way:

  • Go to the TEXT editor.
  • Identify the word or group of words that you would prefer not to break with a hyphen.
  • Add the following markup:
<span class="no-hyphens">words where I don't want hyphenation</span>

This will apply the css class no-hyphens, which is defined in the CSS as:

.no-hyphens,
span.no-hyphens
p.no-hyphens {
hyphens: none;
}

License

Icon for the Creative Commons Attribution 4.0 International License

Typography: Hyphens by admin is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book

css.php