Browse Source

Management of new LaTeX commands

pull/58/head
Louis 10 years ago
parent
commit
10434d1fb7
  1. 1
      patacrep/plastex.py
  2. 15
      patacrep/plastex_misc_commands.py
  3. 2
      patacrep/plastex_songs.py

1
patacrep/plastex.py

@ -57,6 +57,7 @@ class SongParser(object):
tex.ownerDocument.context.loadPackage(tex, "plastex_patchedbabel")
tex.ownerDocument.context.loadPackage(tex, "plastex_chord")
tex.ownerDocument.context.loadPackage(tex, "plastex_songs")
tex.ownerDocument.context.loadPackage(tex, "plastex_misc_commands")
sys.path.pop()
return tex

15
patacrep/plastex_misc_commands.py

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
"""Quick management of random LaTeX commands."""
from plasTeX import Command
# pylint: disable=invalid-name,too-many-public-methods
class songcolumns(Command):
r"""Manage `\songcolumns` command"""
args = '{num:int}'
# pylint: disable=invalid-name,too-many-public-methods
class gtab(Command):
r"""Manage `\gta` command"""
args = '{chord:str}{diagram:str}'

2
patacrep/plastex_songs.py

@ -39,7 +39,7 @@ def split_linebreak(texlist):
class beginsong(plasTeX.Command): # pylint: disable=invalid-name,too-many-public-methods
"""Class parsing the LaTeX song environment."""
args = '{titles}[ args:dict ]'
args = '{titles}[args:dict]'
def invoke(self, tex):
"""Parse an occurence of song environment."""

Loading…
Cancel
Save