Skip to content

Commit

Permalink
Adjust the IEEE style sheet to properly handle nested lists
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtm committed Jan 6, 2014
1 parent 1e7ce42 commit 7c0a879
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions rinohlib/stylesheets/ieee.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,29 +94,40 @@
space_below=6*PT,
numbering_style=CHARACTER_UC)

styles('list', ClassSelector(List, 'enumerated'),
styles('enumerated list', ClassSelector(List, 'enumerated'),
base='body',
space_above=5*PT,
space_below=5*PT,
indent_left=0*INCH,
indent_first=0*INCH,
indent_left=0*PT,
indent_first=0*PT,
item_indent=12*PT,
ordered=True,
flowable_spacing=0*PT,
numbering_style=NUMBER,
numbering_separator=')')

styles('nested enumerated list', ContextSelector(ClassSelector(ListItem),
ClassSelector(List,
'enumerated')),
base='enumerated list',
indent_left=10*PT)

styles('bulleted list', ClassSelector(List, 'bulleted'),
base='body',
indent_left=5*PT,
base='enumerated list',
ordered=False,
flowable_spacing=0*PT)

styles('nested bulleted list', ContextSelector(ClassSelector(ListItem),
ClassSelector(List, 'bulleted')),
base='bulleted list',
indent_left=10*PT)

styles('list item paragraph', ContextSelector(ClassSelector(ListItem),
ClassSelector(Paragraph)),
base='body',
space_above=0*PT,
space_below=0*PT,
indent_first=14*PT)
indent_first=15*PT)

styles('definition list', ClassSelector(DefinitionList),
base='body')
Expand Down

0 comments on commit 7c0a879

Please sign in to comment.