khq latex docs