Skip to content

juliantao/quarto-asce

Repository files navigation

Warning

Starting from version 1.0.0, a cleaner tex can be generated for direct submission to journals or conferences. This is achieved by directly constructing the template with only partials that are absolutely necessary. There are still some rough edges in this extension, especially on the handling of the authors and affiliations in the title block. Use with caution. Contribution welcomed!

ASCE Quarto Template

This is a Quarto template that assists you in creating a manuscript for American Society of Civil Engineers journals and conference proceedings. You can learn more about the format requirements on the ASCE website and the Overleaf template, which this Quarto template was based off.

The "ascelike-new.cls" class and "ascelike-new.bst" citation style is from Overleaf developed by Matthew R. Kuhn. Starting from Version 1.0.0, we are no longer using Pandoc's citproc, but rely on the original ascelike-new.bst citation file using natbib as the citation method.

Creating a New Article

You can use this as a template to create an article for an AFT journal. To do this, use the following command:

quarto use template juliantao/quarto-asce

This will install the extension and create an example qmd file and bibiography that you can use as a starting place for your article.

Installation For Existing Document

You may also use this format with an existing Quarto project or document. From the quarto project or document directory, run the following command to install this format:

quarto install extension juliantao/quarto-asce

Usage

To use the format, you can use the format names asce-pdf. For example:

quarto render article.qmd --to asce-pdf

or in your document yaml

format:
  pdf: default
  asce-pdf:
    keep-tex: true    

You can view a preview of the rendered template at https://github.com/juliantao/quarto-asce/blob/main/style-guide/asce-template.pdf.

Format Options

The title block, document classes, and other document options can be set in the yaml header.

For example, to generate the example PDF file, the following yaml header is used

title: | 
  Template for Preparing Your Submission to the 
  American Society Of Civil Engineers (ASCE) 

author:
  - name: Author One, S.M. ASCE
    affiliations: Graduate Research Associate, First affiliation address
    email: author.one@email.com
  - name: Author Two, M. ASCE
    affiliations: Assistant Professor, Second affiliation address
    email: author.two@email.com
  - name: Author three, A.M. ASCE
    affiliations: Associate Professor, Third affiliation address
    email: author.three@email.com
    corresponding: true
code-highlighter: true # This line can be removed for most cases to keep the tex file cleaner.
abstract: |
  The abstract should be a single paragraph (150-175 words long) written
  in plain language and include a summary of the key conclusions of the
  manuscript. It should clearly state the purpose of the work, the scope
  of the effort, the procedures used to execute the work, and major
  findings. The abstract is the second most important online search
  discovery element, after the title. Authors should review the abstract
  to ensure that it accurately reflects the revised paper and should
  strive to include any applicable keywords that would likely be used
  during an online search. Mathematics and references are not permitted
  in the abstract and will be removed by the copyeditors.
keywords: template, quarto, asce
bibliography: references.bib
format: 
  asce-pdf:
    keep-tex: true
    publication-type: NewProceedings
    footer-lastname: Author1
    classoption: [InsideFigs, LineNumbers]

Notes on Tables

  • It is recommended to use raw \LaTeX code blocks to construct tables for PDF output.
    Label your table using the format \label{tbl-xx} and cite it in the text with Table~\ref{tbl-xx}.
    For HTML output, use a Markdown table wrapped in a conditional div:
    .content-visible when-format="html".

  • If you use a Markdown table for PDF rendering, the table-replacement.lua filter will convert it to a tabular environment (not longtable).
    The booktabs package is still applied for improved formatting.
    For example, Table~\ref{tbl-assembly} is rendered directly from a Markdown table.

  • If a longtable environment is required (e.g., for multi-page tables), you can use raw LaTeX within a {=latex} code block.
    Table \ref{tbl-longtable} demonstrates a table created this way. The downside is that for Journal option, the table will be placed in instead of after the main text. However, the caption will still be included in the List of Tables. This will mess up the Table numbers and your first longtable will always be the Table 1 since it appears in the text. So a suggestions is, avoid using longtable if possible.

code-highlighter

When set to true, Quarto’s default code highlighting style is included, which adds a lengthy block to the LaTeX preamble. In most cases, this is unnecessary.

In this example, it is enabled to demonstrate the highlighted YAML block above. To produce a cleaner .tex file for submission, simply remove this line from your YAML header.

Authors and affiliations

For now, I prefer to use a simplified way to define the authors and affiliations: just use name, affiliations, email and corresponding fields. See above yaml header. I may change this in the future.

For more detailed setups, see quarto document.

Format options

The document class ascelike-new.cls provides several options given below.

Publication types

The Proceedings|Journal|NewProceedings option is the most important; the other options are largely incidental.

In a quarto document, use publication-type to specify the overall format.

  1. Options Journal|Proceedings|NewProceedings specify the overall format of the output manuscript.

    Journal produces double-spaced manuscripts for ASCE journals. As default settings, it places tables and figures at the end of the manuscript and produces lists of tables and figures. It places line numbers within the left margin.

    Proceedings produces older-style camera-ready single-spaced manuscripts for ASCE conference proceedings. The newer ASCE style is enacted with the NewProceedings option.

    NewProceedings produces newer-style single-spaced manuscripts for ASCE conference proceedings, as shown on the ASCE website (ca. 2013). As default settings, NewProceedings places figures and tables within the text. It does not place line numbers within the left margin.

    If desired, the bottom right corner can be "tagged" with the author's name (this can be done by inserting the command \NameTag{<your name>} within the preamble of your document). All of the default settings can be altered with the options that are described below.

Fine-tuning options

Use classoption to specify the following options.

  1. Options BackFigs|InsideFigs can be used to override the default placement of tables and figures in the Journal, Proceedings, and NewProceedings formats.

  2. Options SingleSpace|DoubleSpace can be used to override the default text spacing in the Journal, Proceedings, and NewProceedings formats.

  3. Options 10pt|11pt|12pt can be used to override the default text size (12pt).

  4. The option NoLists suppresses inclusion of lists of tables and figures that would normally be included in the Journal format.

  5. The option NoPageNumbers suppresses the printing of page numbers.

  6. The option SectionNumbers produces an automatic numbering of sections. Without the SectionNumbers option, sections will not be numbered, as this seems to be the usual formatting in ASCE journals (note that the Appendixes will, however, be automatically "numbered" with Roman numerals). With the SectionNumbers option, sections and subsections are numbered with Arabic numerals (e.g. 2, 2.1, etc.), but subsubsection headings will not be numbered.

  7. The options NoLineNumbers|LineNumbers can be used to override the default use (or absence) of line numbers in the Journal, Proceedings, and NewProceedings formats.