Skip to article content
Back to Article
Elsevier CAS Template for MyST Markdown
Download Article

Elsevier CAS Template for MyST Markdown

A comprehensive MyST Markdown template for Elsevier journal articles using the CAS (Content Acquisition System) document classes.

Template Preview

Overview

AuthorsAlan Lujan
AffiliationJohns Hopkins University, Econ-ARK
Repositorygithub.com/econ-ark/elsarticle-myst
SourceElsevier LaTeX Instructions
LicenseContent: CC-BY-4.0 / Code: MIT / LaTeX: LPPL-1.3c

Features

Requirements

⚠️ LaTeX3 Required: This template uses modern LaTeX3 commands (vbox_unpack_drop:N) introduced in 2022. Earlier LaTeX distributions will fail with cryptic errors. If you encounter vbox_unpack_drop:N errors, upgrade your TeX distribution to TeX Live 2022+ or MiKTeX 22.1+.

Quick Start

1. Install MyST

pip install mystmd
# or
npm install -g mystmd

2. Create Your Article

Create a markdown file with frontmatter:

---
title: Your Article Title
authors:
  - name: Your Name
    email: you@university.edu
    corresponding: true
    orcid: 0000-0000-0000-0000
    affiliations:
      - id: univ
        name: Your University
    roles:
      - Conceptualization
      - Methodology
keywords:
  - keyword1
  - keyword2
abstract: |
  Your abstract text here.
exports:
  - format: pdf
    template: path/to/elsarticle-myst
    output: article.pdf
    columns: single
---

# Introduction

Your content here...

3. Build PDF

myst build your-article.md --pdf

Template Options

OptionTypeDefaultDescription
columnschoicesingleLayout: single or double column
citation_stylechoiceauthoryearCitation style: authoryear or numbers
longmktitlebooleanfalseUse if frontmatter spans multiple pages
graphical_abstractfilePath to graphical abstract image

Document Structure

Frontmatter Fields

title: Article Title
subtitle: Optional Subtitle  # Displayed below main title
short_title: Short Title  # For running headers
authors:
  - name: Author Name
    email: author@example.com
    orcid: 0000-0000-0000-0000
    corresponding: true
    equal_contributor: true  # Mark as equal contribution
    deceased: false  # Mark if deceased
    note: Additional author info  # Author-specific footnote
    twitter: username  # Twitter/X handle
    affiliations:
      - institution-id
    roles:
      - Conceptualization
      - Writing – original draft
affiliations:
  - id: institution-id
    name: Institution Name
    department: Department
    city: City
    country: Country
keywords:
  - keyword1
  - keyword2
abstract: |
  Abstract text...
keypoints:  # Research highlights
  - First key finding
  - Second key finding
parts:
  title_note: Acknowledgment or note attached to title
  note: General note without numbering (e.g., disclaimers)
  appendix: appendix.md  # External appendix file
  biography: |  # Author biographies (raw LaTeX)
    \bio{}
    Author biography text...
    \endbio
bibliography:
  - references.bib

CRediT Contributor Roles

Supported roles (per CRediT taxonomy):

Document Parts

Use MyST parts for special content:

parts:
  appendix: appendix.md      # External appendix file
  title_note: Funding note   # Footnote on title
  note: General disclaimer   # Non-numbered note
  biography: |               # Author bios (raw LaTeX)
    \bio{}
    Biography text...
    \endbio

Or inline with block syntax:

+++ {"part": "abstract"}
Your abstract here.
+++

Files Included

FileDescription
template.texMain Jinja/jtex template
template.ymlTemplate configuration
cas-sc.clsSingle column document class
cas-dc.clsDouble column document class
cas-common.styShared style definitions
cas-model2-names.bstBibliography style (author-year & numeric)
example/Complete working example

Supported LaTeX Packages and Environments

The template includes comprehensive package support for scientific writing:

Mathematics (amsmath, mathtools)

Figures (graphicx, caption, subcaption, wrapfig, rotating)

Tables (array, booktabs, tabularx, longtable, threeparttable)

Lists (enumitem)

Quotations (csquotes)

Algorithms (algorithm, algorithmicx)

Page Layout (changepage, pdflscape)

Boxes (adjustbox)

Additional Packages

Example

See the example/ directory for a comprehensive demonstration including:

Build the example:

cd example
myst build sample-article.md --pdf

Credits

Based on the official Elsevier CAS LaTeX templates. The original LaTeX classes are copyright Elsevier Ltd and distributed under the LaTeX Project Public License (LPPL-1.3c).

License