Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧠 Update parts for new options #5

Merged
merged 4 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,13 @@
% \item Each must be 140 characters or fewer with no special characters or punctuation and must be complete sentences
% \end{keypoints}

[# if parts.keypoints #]
\begin{keypoints}
\item [-options.keypoint_1-]
[# if options.keypoint_2 #]
\item [-options.keypoint_2-]
[# endif #]
[# if options.keypoint_3 #]
\item [-options.keypoint_3-]
[# endif #]
[# for keypoint in parts.keypoints #]
\item [-keypoint-]
[# endfor #]
\end{keypoints}
[# endif #]

%% ------------------------------------------------------------------------ %%
%
Expand Down Expand Up @@ -215,9 +213,9 @@ \section*{Plain Language Summary}
%For physical samples, use the IGSN persistent identifier, see the International Geo Sample Numbers section:
% https://www.agu.org/Publish-with-AGU/Publish/Author-Resources/Data-and-Software-for-Authors#IGSN

[# if parts.availability #]
[# if parts.data_availability #]
\section*{Open Research}
[-parts.availability-]
[-parts.data_availability-]
[# endif #]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Expand Down
32 changes: 12 additions & 20 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ parts:
A good Abstract will begin with a short description of the problem being
addressed, briefly describe the new data or analyses, then briefly states
the main conclusion(s) and how they are supported and uncertainties.
- id: availability
- id: data_availability
title: Availability Statement
required: true
description: >
Expand Down Expand Up @@ -70,12 +70,23 @@ parts:
contributors.

AGU does not normally allow dedications.
- id: keypoints
required: true
as_list: true
description: >
Key Points summarize the main points and conclusions of the article.

Include up to three key points (at least one is required). Must be a list in the frontmatter.

Each must be 140 characters or fewer with no special characters or
punctuation and must be complete sentences
doc:
- id: title
required: true
- id: authors
required: true
- id: bibliography
- id: affiliations
options:
- type: choice
id: journal_name
Expand Down Expand Up @@ -106,25 +117,6 @@ options:
- type: boolean
id: draft
description: Mark the document as draft
- type: string
id: keypoint_1
description: >
First of up to three key points (at least one is required)

Key Points summarize the main points and conclusions of the article

Each must be 140 characters or fewer with no special characters or
punctuation and must be complete sentences
required: true
max_chars: 140
- type: string
id: keypoint_2
description: Second key point
max_chars: 140
- type: string
id: keypoint_3
description: Third key point
max_chars: 140
files:
- template.tex
- agujournal2019.cls
Expand Down