langsci / 259

Müller, Stefan et al. (eds): Head-Driven Phrase Structure Grammar: The handbook
Creative Commons Attribution 4.0 International
22 stars 7 forks source link

avms without & do not work #39

Open stefan11 opened 3 years ago

stefan11 commented 3 years ago

grafik

\avm{
[ synsem|loc|cat|comps <>\\
  head-dtr [ synsem|loc|cat|comps \1 ]\\
  non-head-dtrs \upshape ! \rel{synsem2signs}(\1) ! ]
}
kopeckyf commented 3 years ago

Punks will work (pun intended) here in any case:

\avm{
    [ \punk{synsem|loc|cat|comps}{<>}\\
      \punk{head-dtr}{[ synsem|loc|cat|comps \1 ]}\\
    non-head-dtrs & \upshape ! \rel{synsem2signs}(\1) !]\\
}

The issue is that the design of an AVM as having both attributes and values is hard-coded quite deeply into langsci-avm. One problem here is that the preamble of an array and tabular is protected from expansion in LaTeX. Anyway, I'll see in what way it would make sense to make the column specification customisable.

stefan11 commented 3 years ago

This would be really great. This way of doing things is really deeply entrenched in all brains of avm users. Not just in mine. The reason is that this comes from array or tabular and there it is just normal to use \ and you are in the next line.

kopeckyf commented 3 years ago

Link to related issue: https://github.com/langsci/langsci-avm/issues/2