parent: 'html-c'
extension: 'tex'
highlight: 'latex'
column_separator: ', '
compose_relation: '  \item \relat{{{this_relation_name}}} ({columns})'
compose_relational_schema: '% Generated by Mocodo {version}\n\n\begin{{itemize}}\n{relations}\n\end{{itemize}}\n'
transform_relation:
  - order: 1000
    comment: 'Compose normal attributes'
    search: '<span class=''normal''>(.+?)</span>'
    replace: '\\attr{\1}'
  - order: 1100
    comment: 'Compose primary keys'
    search: '<span class=''primary''>(.+?)</span>'
    replace: '\\prim{\1}'
  - order: 1200
    comment: 'Compose foreign primary keys'
    search: '<span class=''foreign primary''>#(.+?)</span>'
    replace: '\\foreign{\\prim{\1}}'
  - order: 1300
    comment: 'Compose foreign attributes'
    search: '<span class=''foreign''>#(.+?)</span>'
    replace: '\\foreign{\1}'
  - order: 1400
    comment: 'Exponents'
    search: '(<sup>.*u)(\d)(.*</sup>)'
    replace: '\1_\2\3'
    iterated: true
  - order: 1500
    comment: 'Exponents'
    search: ' <sup>(.+?)</sup>'
    replace: '$^{\1}$'
  - order: 1600
    comment: 'Escape underlines'
    search: '_'
    replace: '\_'
