Last active
December 27, 2015 17:39
-
-
Save masnick/7363338 to your computer and use it in GitHub Desktop.
Ulysses III double-spaced manuscript style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Arial double | |
// (Based on Novel Cochin) | |
// | |
// By Max Masnick (http://masnick.org) | |
// | |
// Visit http://www.ulyssesapp.com/styles | |
// for full reference | |
// | |
// | |
// Document & Layout Settings | |
// | |
document-settings { | |
page-height: 11in; | |
page-width: 8.5in; | |
page-inset-top: 1in; | |
page-inset-bottom: 1in; | |
page-inset-inner: 1in; | |
page-inset-outer: 1in; | |
// section-break: heading-1 | |
// always have H1 on a new page | |
two-sided: no; | |
footnote-enumeration: per-section | |
footnote-placement: end-of-page | |
footnote-style: decimal | |
} | |
// | |
// Default Typography | |
// | |
defaults { | |
font-family: "Arial" | |
font-size: 11pt | |
line-height: 14pt | |
text-alignment: left | |
hyphenation: no | |
// individual styles can override this | |
} | |
// | |
// Basic Non-Text-Area Page Layout | |
// | |
area-header { | |
content: none | |
top-spacing: 0mm | |
bottom-spacing: 0mm | |
} | |
area-footnotes { | |
font-size: 10pt | |
line-height: 12pt | |
top-spacing: 10mm | |
// additional space cut off from text area | |
divider-width: 0.5pt | |
divider-length: 20mm | |
divider-spacing: 5pt | |
// space between divider and footnotes | |
anchor-inset: 5mm | |
anchor-alignment: right | |
text-inset: 6mm | |
} | |
area-footer { | |
content: page-number | |
text-alignment: center | |
top-spacing: 0mm | |
bottom-spacing: 0.5in | |
} | |
// | |
// Reusable styles (variables & mixins) | |
// | |
$mark-color = #FEFECC | |
$black = #000000 | |
$light-grey = #eeeeee | |
$link-color = #daf2ff | |
// Readable colors FTW! | |
@code { | |
font-family: "Courier New" | |
font-weight: normal; | |
font-slant: normal; | |
// Reset all traits to normal, since this can appear anywhere | |
} | |
// | |
// Headers | |
// | |
heading-all { | |
font-family: "Arial" | |
font-weight: bold | |
keep-with-following: true | |
text-alignment: left | |
hyphenation: no | |
// Remember that setting in defaults? | |
margin-bottom: 0pt | |
} | |
heading-1 { | |
style-title: "Heading 1" | |
// As shown and used by MS Word | |
font-size: 16pt | |
line-height: 16pt | |
margin-top: 0pt | |
text-alignment: center | |
// Since H1 is section break, this adds to first page top margin | |
margin-bottom: 0pt | |
} | |
heading-1 + heading-1 { | |
style-title: "Subheading 1" | |
font-size: 11pt; | |
line-height: 11pt; | |
margin-top: -11pt; | |
margin-bottom: 11pt; | |
font-weight: normal; | |
} | |
heading-2 { | |
style-title: "Heading 2" | |
// As shown and used by MS Word | |
font-size: 16pt | |
line-height: 16pt | |
margin-top: 22pt | |
margin-bottom: 0pt | |
} | |
heading-3 { | |
style-title: "Heading 3" | |
// As shown and used by MS Word | |
font-size: 11pt; | |
line-height: 11pt | |
margin-top: 22pt; | |
margin-bottom: 0pt; | |
} | |
heading-4 { | |
style-title: "Heading 4" | |
// As shown and used by MS Word | |
font-size: 11pt | |
font-slant: italic | |
// font-style: "Condensed Medium" | |
// Check Font Book to see options | |
margin-top: 22pt | |
margin-bottom: 0pt | |
} | |
heading-5 { | |
style-title: "Heading 5" | |
// As shown and used by MS Word | |
font-size: 10pt; | |
font-style: "Condensed Medium" | |
// Check Font Book to see options | |
margin-top: 14pt; | |
} | |
heading-6 { | |
style-title: "Heading 6" | |
// As shown and used by MS Word | |
font-size: 9pt; | |
font-style: "Condensed Medium" | |
// Check Font Book to see options | |
margin-top: 14pt; | |
} | |
// | |
// Paragraph styles | |
// | |
paragraph { | |
style-title: "Paragraph" | |
// As shown and used by MS Word | |
// first-line-indent: 10pt | |
line-height: 22pt; | |
} | |
paragraph + paragraph { | |
margin-top: 11pt | |
// Spacing between two paragraphs | |
} | |
paragraph :first { | |
// first-line-indent: 0pt | |
// Do not indent the first paragraph, like... ever | |
} | |
heading-all + paragraph { | |
// first-line-indent: 0pt | |
// Do not indent the first paragraph after any headline | |
margin-top: 0pt | |
} | |
paragraph-divider { | |
page-break: after; | |
// Set the divider to help with manual page breaks | |
} | |
paragraph-figure { | |
margin-top: 11pt | |
margin-bottom: 11pt | |
text-alignment: center | |
// Applies to paragraphs that only hold images | |
} | |
paragraph-figure + paragraph { | |
first-line-indent: 0pt | |
// Do not indent the first paragraph after a figure | |
} | |
block-all + paragraph { | |
first-line-indent: 0pt | |
// Do not indent the first paragraph after a list or quote | |
} | |
// | |
// Block styles | |
// | |
block-all { | |
margin-top: 12pt | |
margin-bottom: 12pt | |
margin-left: 28pt | |
margin-right: 28pt | |
} | |
block-code : @code { | |
style-title: "Codeblock" | |
// As shown and used by MS Word | |
font-size: 10pt | |
// No need to set the font, since @code calls Courier | |
} | |
block-code paragraph { | |
first-line-indent: 0pt; | |
text-alignment: left | |
hyphenation: no | |
} | |
block-quote { | |
style-title: "Blockquote" | |
// As shown and used by MS Word | |
font-slant: italic | |
} | |
block-raw { | |
visibility: hidden | |
// kills raw source blocks | |
} | |
block-comment { | |
visibility: hidden; | |
// kills comment blocks | |
} | |
// | |
// List styles | |
// | |
list-all { | |
margin-left: 10pt | |
margin-right: 10pt | |
item-spacing: 7pt | |
// overwrites block-all | |
} | |
list-all list-all { | |
margin-top: 7pt | |
margin-bottom: 7pt | |
// Spacings between nested ordered and unordered lists | |
} | |
list-ordered { | |
enumeration-format: "%p." | |
enumeration-style: decimal | |
text-inset: 13pt | |
// Simulates tab stop justified right | |
} | |
list-ordered list-ordered { | |
enumeration-format: "%*%p" | |
enumeration-style: decimal | |
text-inset: 26pt; | |
// Simulates tab stop justified right | |
} | |
list-ordered list-ordered list-ordered { | |
enumeration-format: "%*.%p" | |
enumeration-style: decimal | |
text-inset: 39pt; | |
// Simulates tab stop justified right | |
} | |
list-unordered { | |
enumeration-format: "–" | |
text-inset: 10pt; | |
// Simulates tab stop justified right | |
} | |
list-unordered list-unordered { | |
enumeration-format: "–" | |
text-inset: 10pt; | |
// Simulates tab stop justified right | |
} | |
heading-all + list-all { | |
margin-top: 0pt | |
// Sets first list item after headline as if it were a paragraph | |
} | |
list-all paragraph { | |
margin-top: 0pt | |
// No spacing within a list | |
} | |
// | |
// Inline styles | |
// | |
inline-strong { | |
style-title: "Strong" | |
// As shown and used by MS Word | |
font-weight: bold; | |
} | |
inline-emphasis { | |
style-title: "Emphasis" | |
// As shown and used by MS Word | |
font-slant: italic; | |
} | |
inline-mark { | |
style-title: "Mark" | |
// As shown and used by MS Word | |
background-color: $mark-color | |
} | |
inline-citation { | |
style-title: "Inline Cite" | |
// As shown and used by MS Word | |
font-slant: italic; | |
} | |
inline-code : @code { | |
style-title: "Inline Code" | |
// As shown and used by MS Word | |
// Nothing else to set here, since it inherits from @code | |
} | |
inline-link { | |
style-title: "Link" | |
// As shown and used by MS Word | |
underline: none | |
font-color: $black | |
background-color: $link-color | |
// Good thing we defined readable colors | |
} | |
inline-comment { | |
visibility: hidden; | |
// kills comments | |
} | |
inline-delete { | |
visibility: hidden; | |
// deletes deletions | |
} | |
inline-annotation { | |
background-color: $mark-color | |
} | |
inline-annotation:anchor { | |
background-color: none | |
} | |
inline-raw { | |
visibility: hidden; | |
// kills raw source | |
} | |
inline-footnote paragraph { | |
first-line-indent: 0pt | |
// Do not indent paragraph in footnotes | |
} | |
inline-annotation paragraph { | |
first-line-indent: 0pt | |
// Do not indent paragraph in endnotes | |
} | |
// | |
// Ulysses specific stuff | |
// By default, we are hiding tags (##) etc. | |
// | |
ulysses-tag { | |
visibility: hidden | |
} | |
ulysses-whitespace { | |
visibility: hidden | |
} | |
ulysses-escape-character { | |
visibility: hidden | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment