# TeXDemerits class

Namespace: [Grasshopper2.UI.Typography](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.typography.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class TeXDemerits
```

Collates the demerits used in the TeX line-breaking algorithm.

## Properties

- [BinaryOperatorDemerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texdemerits/binaryoperatordemerits.md): Gets the demerits for breaking at a binary operator.
- [ConsecutiveHyphenationDemerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texdemerits/consecutivehyphenationdemerits.md): Gets the demerits for consecutive hyphenated lines.
- [Default](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texdemerits/default.md): (static) Gets the default demerits.
- [ExplicitHyphenationDemerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texdemerits/explicithyphenationdemerits.md): Gets the demerits for breaking at a user-typed hyphen.
- [ImplicitHyphenationDemerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texdemerits/implicithyphenationdemerits.md): Gets the demerits for inserted hyphens.
- [LineEndingDemerit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texdemerits/lineendingdemerit.md): Demerit for every line break.
- [LineIncompatibilityDemerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texdemerits/lineincompatibilitydemerits.md): Gets the demerits for incompatible adjacent lines.
- [PenultimateHyphenationDemerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texdemerits/penultimatehyphenationdemerits.md): Gets the demerits for hyphenating the penultimate line.
- [RelationOperatorDemerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texdemerits/relationoperatordemerits.md): Gets the demerits for breaking at a relation.
