if (!_matched) {
if (sec instanceof Part) {
_matched=true;
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append("\\part{");
TextOrMarkup _title = ((Part)sec).getTitle();
CharSequence _genNonParContent = this.genNonParContent(_title);
_builder_1.append(_genNonParContent, "");
_builder_1.append("}");
_switchResult = _builder_1;
}
}
if (!_matched) {
if (sec instanceof Chapter) {
_matched=true;
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append("\\chapter{");
TextOrMarkup _title = ((Chapter)sec).getTitle();
CharSequence _genNonParContent = this.genNonParContent(_title);
_builder_1.append(_genNonParContent, "");
_builder_1.append("}");
_switchResult = _builder_1;
}
}
if (!_matched) {
if (sec instanceof Section) {
_matched=true;
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append("\\section{");
TextOrMarkup _title = ((Section)sec).getTitle();
CharSequence _genNonParContent = this.genNonParContent(_title);
_builder_1.append(_genNonParContent, "");
_builder_1.append("}");
_switchResult = _builder_1;
}
}
if (!_matched) {
if (sec instanceof Section2) {
_matched=true;
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append("\\subsection{");
TextOrMarkup _title = ((Section2)sec).getTitle();
CharSequence _genNonParContent = this.genNonParContent(_title);
_builder_1.append(_genNonParContent, "");
_builder_1.append("}");
_switchResult = _builder_1;
}
}
if (!_matched) {
if (sec instanceof Section3) {
_matched=true;
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append("\\subsubsection{");
TextOrMarkup _title = ((Section3)sec).getTitle();
CharSequence _genNonParContent = this.genNonParContent(_title);
_builder_1.append(_genNonParContent, "");
_builder_1.append("}");
_switchResult = _builder_1;
}
}
if (!_matched) {
if (sec instanceof Section4) {
_matched=true;
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append("\\paragraph{");
TextOrMarkup _title = ((Section4)sec).getTitle();
CharSequence _genNonParContent = this.genNonParContent(_title);
_builder_1.append(_genNonParContent, "");
_builder_1.append("}");
_switchResult = _builder_1;
}
}
_builder.append(_switchResult, "");
_builder.newLineIfNotEmpty();
CharSequence _switchResult_1 = null;
boolean _matched_1 = false;
if (!_matched_1) {
if (sec instanceof Part) {
_matched_1=true;
_switchResult_1 = this.genLabel(sec);
}
}
if (!_matched_1) {
if (sec instanceof Chapter) {
_matched_1=true;
_switchResult_1 = this.genLabel(sec);
}
}
if (!_matched_1) {
if (sec instanceof Section) {
_matched_1=true;
_switchResult_1 = this.genLabel(sec);
}
}
if (!_matched_1) {
TextOrMarkup _title = sec.getTitle();
_switchResult_1 = this.genLabel(_title);
}
_builder.append(_switchResult_1, "");
_builder.newLineIfNotEmpty();
CharSequence _genContent = this.genContent(sec);