From b2d5b51cf549bf5e5ff3a862354081c206429b44 Mon Sep 17 00:00:00 2001 From: Danilo Croce Date: Sat, 17 Feb 2024 13:16:00 +0100 Subject: [PATCH] - Changed the title format for keynotes and panels by replacing colons with newlines to avoid clashes with titles of panels and keynotes that contain colons. - Added the ability to specify custom page titles for invited talks using strings different from 'keynote'. - Updated the README file to reflect these changes. --- README.md | 15 ++++++++++----- aclpub2/templates/proceedings.tex | 11 +++++++++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cf2b505..4ad971a 100644 --- a/README.md +++ b/README.md @@ -192,11 +192,16 @@ As with the prefaces, the contents of the `.tex` files should not include usual and only what is usually found between the `\begin{document}` and `\end{document}` directives. ```yaml -- speaker_name: Speaker name as it should appear, e.g. Jane Doe - institution: Speaker's institution name as it should appear, e.g. University of California Berkeley, USA - title: The title of the talk. - abstract_file: Path to abstract LaTeX file relative to the invited_talks/ directory. - bio_file: Path to bio LaTeX file relative to the invited_talks/ directory. +- speaker_name: "Speaker name as it should appear, e.g., Jane Doe" + institution: "Speaker's institution name as it should appear, e.g., University of California Berkeley, USA" + title: "The title of the talk." + abstract_file: "Path to the abstract's LaTeX file relative to the invited_talks/ directory, e.g., invited_talks/jane_doe_abstract.tex" + bio_file: "Path to the bio's LaTeX file relative to the invited_talks/ directory e.g., invited_talks/jane_doe_bio.tex" + photo: "Path to the speaker's photo, relative to the invited_talks/ directory e.g., invited_talks/jane_doe_photo.jpg" + date: "Day of the invited talk, e.g., Mon, March 18, 2024" + time: "Time of the invited talk, e.g., 09:00 -- 10:00" + location: "Location of the invited talk, e.g., Room A" + custom_prefix: "Custom title for the page, e.g., Distinguished Lecture. This field allows customizing the default title of the page. If not provided, 'Keynote' is used." ``` #### papers.yml diff --git a/aclpub2/templates/proceedings.tex b/aclpub2/templates/proceedings.tex index 4711f21..da9ef36 100644 --- a/aclpub2/templates/proceedings.tex +++ b/aclpub2/templates/proceedings.tex @@ -236,7 +236,13 @@ \phantomsection \addcontentsline{toc}{section}{Keynote Talk: \VAR{talk.title}} \begin{center} - {\LARGE \textbf{Keynote Talk: \VAR{talk.title}}\\} + \BLOCK{if talk.custom_prefix} + {\Large \textbf{\VAR{talk.custom_prefix}}\\} + {\LARGE \textbf{\VAR{talk.title}}\\} + \BLOCK{else} + {\Large \textbf{Keynote Talk}\\} + {\LARGE \textbf{\VAR{talk.title}}\\} + \BLOCK{endif} \vspace*{0.5cm} %\begin{minipage}[c][0.35\linewidth][c]{0.35\linewidth} % \end{minipage}\\ @@ -285,7 +291,8 @@ \phantomsection \addcontentsline{toc}{section}{Panel: \VAR{panel.title}} \begin{center} - {\LARGE \textbf{Panel: \VAR{panel.title}}} + {\Large \textbf{Panel}\\} + {\LARGE \textbf{\VAR{panel.title}}\\} \BLOCK{if panel.photo} \begin{center}