Skip to content

Commit

Permalink
Improvements to #3
Browse files Browse the repository at this point in the history
  • Loading branch information
mvuorre committed Aug 29, 2024
1 parent 50db948 commit 2280fd8
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _extensions/preprint/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: Preprint
author: Matti Vuorre
version: 0.9.0
version: 0.9.2
quarto-required: ">=1.5.47"
contributes:
formats:
Expand Down
4 changes: 2 additions & 2 deletions _extensions/preprint/typst-show.typ
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ $endif$
$if(toc_indent)$
toc_indent: "$toc_indent$",
$endif$
$if(columns)$
cols: $columns$,
$if(cols)$
cols: $cols$,
$endif$
$if(col-gutter)$
col-gutter: $col-gutter$,
Expand Down
7 changes: 4 additions & 3 deletions _extensions/preprint/typst-template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
if authors != none {
for a in authors {
let author_string = [
#a.name#super[#a.affiliation]#if a.keys().contains("email") {[\*]}
// Solo manuscripts don't have institutional id
#a.name#if authors.len() > 1 [#super[#a.affiliation]]#if a.keys().contains("email") {[\*]}
#if a.keys().contains("orcid") {
box(
height: 1em,
Expand All @@ -59,7 +60,7 @@
}
]
if a.keys().contains("email") {
authornote = [\*Corresponding author: #a.name, #a.email.\ #authornote]
authornote = [\*Send correspondence to: #a.name, #a.email.\ #authornote]
}
author_strings.push(author_string)
}
Expand Down Expand Up @@ -199,7 +200,7 @@
titleblock(
weight: "regular", size: 1.1em, below: 2em,
for a in affiliations [
#super[#a.id]#a.name#if a.keys().contains("department") [, #a.department] \
#if authors.len() > 1 [#super[#a.id]]#a.name#if a.keys().contains("department") [, #a.department] \
]
)
}
Expand Down
Binary file modified docs/ex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/index.docx
Binary file not shown.
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.47">
<meta name="generator" content="quarto-1.6.8">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<meta name="author" content="Matti Vuorre">
<meta name="dcterms.date" content="2024-06-25">
<meta name="dcterms.date" content="2024-08-29">
<meta name="keywords" content="Quarto, Typst, preprints, communication, typesetting, tools">

<title>quarto-preprint: A Quarto Typst extension for efficient typesetting of computationally reproducible manuscripts</title>
Expand Down Expand Up @@ -86,10 +86,10 @@
<script src="index_files/libs/quarto-html/tippy.umd.min.js"></script>
<script src="index_files/libs/quarto-html/anchor.min.js"></script>
<link href="index_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="index_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<link href="index_files/libs/quarto-html/quarto-syntax-highlighting-79bb3942e891885f9f7af119cd221462.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="index_files/libs/bootstrap/bootstrap.min.js"></script>
<link href="index_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="index_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<link href="index_files/libs/bootstrap/bootstrap-1336af542e941ddb4d74cee0382b4daa.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">

<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>
Expand Down Expand Up @@ -202,7 +202,7 @@ <h1 class="title"><em>quarto-preprint</em>: A Quarto Typst extension for efficie
<div>
<div class="quarto-title-meta-heading">Published</div>
<div class="quarto-title-meta-contents">
<p class="date">June 25, 2024</p>
<p class="date">August 29, 2024</p>
</div>
</div>

Expand Down
Binary file modified docs/index.pdf
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ bibliography-style: "apa"
margin:
x: 1cm
y: 3cm
cols: 1
```

- leading
Expand All @@ -290,6 +291,7 @@ margin:
- <https://typst.app/docs/reference/text/text/#parameters-region>
- bibliography-title: "References"
- bibliography-style: "apa"
- cols: columns in the main document (experimental)

# Example content

Expand Down

0 comments on commit 2280fd8

Please sign in to comment.