File: Breaking.py

package info (click to toggle)
plastex 3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,132 kB
  • sloc: python: 23,341; xml: 18,076; javascript: 7,755; ansic: 46; makefile: 40; sh: 26
file content (63 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"""
C.12 Line and Page Breaking (p212)

"""

from plasTeX import Command


#
# C.12.1
#

class linebreak(Command):
    args = '[ num:int ]'

class nolinebreak(Command):
    args = '[ num:int ]'


class newline(Command):
    pass

class NewLine(newline):
    macroName = '\\'
    args = '* [ len:dimen ]'

class AllowHyphen(Command):
    macroName = '-'

class hyphenation(Command):
    args = 'words:str'

class sloppy(Command):
    pass

class fussy(Command):
    pass

class sloppypar(Command):
    pass

#
# C.12.2 Page Breaking
#

class pagebreak(Command):
    args = '[ num:int ]'

class nopagebreak(Command):
    args = '[ num:int ]'

class enlargethispage(Command):
    args = '* len:dimen'

class newpage(Command):
    pass

class clearpage(Command):
    pass

class cleardoublepage(Command):
    pass