typst / templates

Templates that are directly maintained by the Typst team.
MIT No Attribution
228 stars 22 forks source link

set `raw` figures to be of kind `image` #40

Closed schmidma closed 2 months ago

schmidma commented 2 months ago

This results in the figures containing code blocks and figures containing images to share a common counter. This is necessary, as the code blocks (raw figures) are also supplemented with Fig. in the caption.

Fixes #39

laurmaedje commented 2 months ago

I'm not sure whether we should do this or rather remove the show rule for raw figures. I can't find guidance in the IEEE guidelines.

cc: @reknih

schmidma commented 2 months ago

You are correct, I also could not find any reference to whether code listings should be called "Fig." or something different. I assumed that this template opts for the "Fig." naming because #31 added this naming scheme to the template. If I include a code listing in the Latex template on overleaf via

\usepackage{listings}
\begin{lstlisting}[language=Python, caption=Python example]
.....
\end{lstlisting}

This is called a "Listing" image

So I'd argue to remove the show rule all together. What do you think?

laurmaedje commented 2 months ago

Sounds good.

schmidma commented 2 months ago

Closed in favor of #42