This commit is contained in:
15
README.md
15
README.md
@@ -105,6 +105,21 @@ Notare includes built-in styles and supports custom style definitions.
|
|||||||
|
|
||||||
#### Built-in Styles
|
#### Built-in Styles
|
||||||
|
|
||||||
|
| Style | Properties |
|
||||||
|
|-------|------------|
|
||||||
|
| `:title` | 26pt, bold, centered |
|
||||||
|
| `:subtitle` | 15pt, italic, gray (#666666) |
|
||||||
|
| `:quote` | italic, gray (#666666), indented |
|
||||||
|
| `:code` | Courier New, 10pt |
|
||||||
|
| `:heading1` | 24pt, bold |
|
||||||
|
| `:heading2` | 18pt, bold |
|
||||||
|
| `:heading3` | 14pt, bold |
|
||||||
|
| `:heading4` | 12pt, bold |
|
||||||
|
| `:heading5` | 11pt, bold, italic |
|
||||||
|
| `:heading6` | 10pt, bold, italic |
|
||||||
|
|
||||||
|
Note: `h1` through `h6` methods use the corresponding heading styles automatically.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
Notare::Document.create("output.docx") do |doc|
|
Notare::Document.create("output.docx") do |doc|
|
||||||
doc.p "This is a title", style: :title
|
doc.p "This is a title", style: :title
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Notare
|
module Notare
|
||||||
VERSION = "0.0.2"
|
VERSION = "0.0.3"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user