quarto-ext / typst-templates

Repository of Typst templates for Quarto
Creative Commons Zero v1.0 Universal
45 stars 3 forks source link

types - IEEE - format & generalise column layout #10

Closed rainer-rq-koelle closed 5 months ago

rainer-rq-koelle commented 5 months ago

Got pointed here - and in hindsight agree - this is the better place to speak about typst and its ieee format.

Updated Quarto and RStudio today to play around with Typst and/or decide whether to give it a try for an upcoming conference paper submission. Thanks for all the hard work on Typst, it really feels lightweight. From a youtube video of posit::2023, I understood that format observations should also be posted here. If I got this wrong, please kill this "request" (and let me know where to put it instead).

The bit I noted: The current typst-ieee format prints the abstract across the whole page q14-ieee-typst.pdf. Typically, in IEEE conference proceedings, the abstract sits in the column layout. It feels like the column settings only take effect after the abstract section.

For the case at hand (IEEE conference proceedings requirement) the abstract should be part of the column layout of the document. However, I could picture for own layouts that the author would like to have the abstract spanning (similar to the title) the full body of the page. Ditto for a table-of-contents.

The idea would be to have this controlled via a key like abstract-in-column (or toc-in-column).

For the typst-ieee format this could be automatically set to true (as IEEE requires it).

Next to the number of columns, it would be nice to be able to control - next to the page margins - also the gap between the columns (e.g. column-spacing).

Again, thanks for all the hard work on typst and helping non-LATEXer starting to tame the pdf landscape.

rainer-rq-koelle commented 5 months ago

I am a bit embarrassed ... not sure how I managed to overlook this ... and ultimately should have not raised this issue at all! Long story short: just stick to the default format and the abstract prints nicely in the left column!!

If someone comes here, do not try to do the following - which I did and forced the abstract to span the columns. For any future visitor ... my faulty tweaks:

...
format:
  ieee-typst:
    columns: 2                       #   <-- NOT NEEDED, template does 2 columns by default!!!
    abstract: |                        #    <-- DO NOT PUT the abstract under the format!
        Air transport faces multiple challenges. 
        Fuel efficiency will be an overriding priority of the future.
 #   toc: true
    section-numbering: I.1.a
....

Thus, all is well, if you work with the template example and put the abstract underneath the format specifications! The example suggests

...
format:
  ieee-typst: default      # <-- possibly add some specifics here, if needed
bibliography: refs.bib
abstract: |                      # abstract does not sit in the format section!
  Air transport faces multiple challenges. 
  Fuel efficiency will be an overriding priority of the future. 
...