j Ulysses Style Sheet Reference

Document Classes

Document classes are all style classes used to define the visual appearance of the entire exported document (e.g. document-settings or header).

Document Settings

Used to describe all settings regarding the appearance of the exported document.

Selectors

  • Definitions:

    • document-settings

Style Settings

Setting Type Examples Description
column-count Number 2 The number of text columns used for output.
column-spacing-width Length 1cm The spacing between two text columns for multi-column layouts.
footnote-enumeration Symbol per-page, per-section, continuous Specifies how to enumerate footnotes.
footnote-placement Symbol end-of-page, end-of-section, end-of-document Specifies where to place footnotes in the document.
footnote-style Symbol decimal, lowercase-alpha, uppercase-alpha, lowercase-roman, uppercase-roman, chicago-style-manual The style that should be used for enumerating footnotes.
locale String "de", "en", "es" The locale that should be used for hyphenation if language detection fails.
page-binding Symbol left, right The position of the page binding.
page-height Length 21cm The height of the page.
page-inset-bottom Length 2cm, 72pt The spacing between the bottom border of a page and the page content.
page-inset-inner Length 2cm, 72pt The spacing between the inner border of a page and the page content. Depends on page-binding and two-sided.
page-inset-outer Length 2cm, 72pt The spacing between the outer border of a page and the page content. Depends on page-binding and two-sided.
page-inset-top Length 2cm, 72pt The spacing between the top border of a page and the page content.
page-number-format String "- %p -" The format string that should be used for page numbers.
page-number-reset Symbol none, per-section Specifies whether page numbers should be reset on each section.
page-number-style Symbol decimal, lowercase-alpha, uppercase-alpha, lowercase-roman, uppercase-roman The style that should be used for generating page numbers.
page-orientation Symbol portrait, landscape The orientation of a page.
page-width Length 14.8cm The width of the page.
section-break Symbol none, heading-1, heading-2, heading-3, heading-4, heading-5, heading-6, paragraph-divider Specifies whether headings or dividers will introduce a section break.
two-sided Boolean no, yes Specifies whether the output should be generated for two-sided printing or not.

Example

document-settings {
	page-binding:    left
	two-sided:       yes
	column-count:    2
}

Headers and Footers

Describes the layout and the content of the header/footer of a page. Can be used to setup running headlines or page numbers. Inherits all inline and paragraph style settings. Provides special pseudo-classes :first-page, :left-page and :right-page that allow to style headers/footers on two-sided documents differently for first, left and right pages.

Selectors

  • Definitions:

    • area-header

    • area-footer

Style Settings

See also: Paragraph, Inline

Setting Type Examples Description
bottom-spacing Length 1cm The spacing on the bottom of a header / footer.
content Symbol none, heading, page-number The content that should be filled in to the header / footer.
top-spacing Length 1cm The spacing on the top of a header / footer.

Pseudoclasses

Class Description
:first-page The style will be only applied to headers or footers that are on the first page of a section.
:left-page The style will be only applied to headers or footers that are on the left page of a section.
:right-page The style will be only applied to headers or footers that are on the right page of a section.

Example

area-header :first-page {
	text-alignment:   center
	content:          heading
}

area-header :left-page {
	text-alignment:   left
	content:          heading
}

area-header :right-page {
	text-alignment:   right
	content:          heading
}

Footnotes Area

Describes the layout and the content of the area containing the footnotes of a page or the endnotes of a section/document (see footnote-placement).

Please note that some styling options are only available to PDF export.

Selectors

  • Definitions:

    • area-footnotes

Style Settings

See also: Paragraph, Inline

Setting Type Examples Description
anchor-alignment Symbol left, right The horizontal alignment of a footnote anchor.
anchor-inset Length 10pt The inset of a footnote anchor inside the footnote area.
divider-length Length 2cm The length of the divider line of a footnote. (PDF only.)
divider-position Symbol left, right The horizontal position of the divider line of a footnote.
divider-spacing Length 1cm The spacing between the separator line of a footnote and its contents.
divider-width Length 1pt The width of the divider line of a footnote. (PDF only.)
text-inset Length 30pt The inset of the text of the footnote area.
top-spacing Length 1cm The spacing before the separator line of a footnote.

Pseudoclasses

Class Description
:anchor The style of the anchor inside the footnote area. See Inline Class. Defaults to superscript text.

Example

area-footnotes {
	font-size:         8pt

	top-spacing:       20pt
	divider-spacing:   10pt
	
	divider-length:    2cm
	divider-width:     1pt
	divider-position:  left
	
	anchor-alignment:  left
	anchor-inset:      1cm
	text-inset:        1.5cm
}