Skip to content

teaser w/ strip and preamble tweaks#65

Open
taiya wants to merge 1 commit intomainfrom
tweaks2026
Open

teaser w/ strip and preamble tweaks#65
taiya wants to merge 1 commit intomainfrom
tweaks2026

Conversation

@taiya
Copy link
Copy Markdown
Collaborator

@taiya taiya commented Nov 11, 2025

Found a much better way to get two-column teasers integrated (credit: Jan Held)
Also, added a few goodies for "auto-naming" of references based on file names.

@taiya taiya requested a review from cr333 November 11, 2025 02:00
Copy link
Copy Markdown
Collaborator

@cr333 cr333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your patience. These are good changes. I'm enclosing some suggested minor improvements.

Maybe there is a bit too much space above the teaser? I would probably remove an em or so:

Image

Comment thread fig/teaser.tex
Comment on lines +3 to +5
\includegraphics[width=.325\linewidth]{example-image-golden}
\includegraphics[width=.325\linewidth]{example-image-golden}
\includegraphics[width=.325\linewidth]{example-image-golden}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think it would look slightly nicer to make the images fill the complete page width.

Suggested change
\includegraphics[width=.325\linewidth]{example-image-golden}
\includegraphics[width=.325\linewidth]{example-image-golden}
\includegraphics[width=.325\linewidth]{example-image-golden}
\includegraphics[width=.33\linewidth]{example-image-golden}\hfill
\includegraphics[width=.33\linewidth]{example-image-golden}\hfill
\includegraphics[width=.33\linewidth]{example-image-golden}

Comment thread fig/teaser.tex
\includegraphics[width=.325\linewidth]{example-image-golden}
\includegraphics[width=.325\linewidth]{example-image-golden}
\includegraphics[width=.325\linewidth]{example-image-golden}
\captionof{figure}{\textbf{Teaser} -- example of a 2-column teaser. This figure appears at the top of the first page, and a two-column teaser is not mandatory.}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporarily disables hypcap around \captionof to suppress the warning about hyperlink anchors not working outside float environments. Re-enables it immediately after so all other figures retain the default behavior.

Suggested change
\captionof{figure}{\textbf{Teaser} -- example of a 2-column teaser. This figure appears at the top of the first page, and a two-column teaser is not mandatory.}
\captionsetup{hypcap=false}
\captionof{figure}{\textbf{Teaser} -- example of a 2-column teaser. This figure appears at the top of the first page, and a two-column teaser is not mandatory.}
\captionsetup{hypcap=true}

Comment thread fig/teaser.tex
\includegraphics[width=.325\linewidth]{example-image-golden}
\includegraphics[width=.325\linewidth]{example-image-golden}
\captionof{figure}{\textbf{Teaser} -- example of a 2-column teaser. This figure appears at the top of the first page, and a two-column teaser is not mandatory.}
\label{fig:\currfilebase}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added % at end to consume the trailing whitespace/newline before \end{strip}, fixing chktex warning W24 about spacing affecting page references.

Suggested change
\label{fig:\currfilebase}
\label{fig:\currfilebase}%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants