fixed section in toc

This commit is contained in:
s5260822 2025-03-22 22:01:47 +01:00
parent 8d00ef14d4
commit 25fc8b5480

View file

@ -84,17 +84,19 @@ public class Speech_MongoDB_Impl extends Speech_File_Impl implements Speech {
public String toTeX() {
StringBuilder tex = new StringBuilder();
tex.append("\\section*{Rede ")
.append(this.getSpeechKey())
.append("/")
.append(getAgendaTitle(this.getSessionId(), this.getAgendaItemId()))
.append(" von ")
.append(this.getSpeakerName())
.append(" (")
.append(this.getFraction())
.append(") vom ")
.append(getSessionDateTime(this.getSessionId()))
.append("}\n");
String speechTitle = "Rede " +
this.getSpeechKey() +
"/" +
getAgendaTitle(this.getSessionId(), this.getAgendaItemId()) +
" von " +
this.getSpeakerName() +
" (" +
this.getFraction() +
") vom " +
getSessionDateTime(this.getSessionId());
tex.append("\\section*{").append(speechTitle).append("}\n");
tex.append("\\addcontentsline{toc}{section}{").append(speechTitle).append("}\n");
tex.append("$$SPEAKERINFO$$\n");