1.3.0 • Published 2 months ago

slidev-theme-academic v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

slidev-theme-academic npm npm https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg

Simplifies creating academic presentations with Slidev by providing the necessary components and layouts.

Install

Add the following frontmatter to your slides.md. Start Slidev then it will prompt you to install the theme automatically.

---
theme: academic
---

Learn more about how to use a theme.

Layouts

cover

ParameterTypeDefaultNotes
coverAuthorArray, Stringundefined-
coverAuthorUrlArray, Stringundefined-
coverBackgroundUrlStringundefinedAdapt the text color with the built-in class attribute in the same frontmatter.
coverBackgroundSourceStringundefined-
coverBackgroundSourceUrlStringundefined-
coverDateStringnew Date().toLocaleDateString()-

cover

table-of-contents

table-of-contents puts custom content above the table of contents. If none is given, the content defaults to <h1>Table of Contents</h1>.

table-of-contents

index

index can be used as a general list for figures, references, tables etc..

index puts custom content above the list. If none is given, the content defaults to <h1>Index</h1>.

ParameterTypeDefaultNotes
indexEntries*{ title: string, uri?: number \| string }[]undefinedSpecify uri as a page number or optional URL in accordance with indexRedirectType.
indexRedirectTypeexternal \| internalinternal-

index

figure

ParameterTypeDefaultNotes
figureCaptionStringundefined-
figureFootnoteNumberNumberundefinedAlign with a Footnote.
figureUrl*Stringundefined-

figure

figure-side

ParameterTypeValuesDefaultNotes
figureCaptionString-undefined-
figureFootnoteNumberNumber-undefinedAlign with a Footnote.
figureUrl*String-undefined-
figureXString'l', 'r''r'-

figure-side

Components

Footnotes

Footnotes is to be used as parent of Footnote children.

ParameterTypeValuesDefaultNotes
filledBooleantrue, falsefalseOverlay subordinate content that may puts itself in background.
separatorBooleantrue, falsefalse-
xString'l', 'r''r'-

Footnote

Footnote is to be used as children of a Footnotes parent.

ParameterTypeNotes
numberNumberAlign with an attribution in the pages' content.

Footnotes & Footnote

Pagination

Pagination is rendered globally by default. The global configuration can be defined using themeConfig.

If certain pages need individual configuration of Pagination, exclude them from global rendering of Pagination using themeConfig and add Pagination manually.

ParameterTypeValuesDefaultNotes
classNamesArray, String-undefinedPagination by default uses the color given by the color schema currently active in Slidev.
xString'l', 'r''r'-
yString'b', 't''t'-

Pagination

themeConfig

Global parameters of the theme can be set using the themeConfig block in the frontmatter of the first page.

Be aware that defining the themeConfig block initializes all parameters as undefined; hence you may need to set parameters albeit using defaults.

ParameterTypeValuesDefaultNotes
paginationPagesDisabledArray-undefinedDisable global rendering of Pagination for pages having individual Pagination.
paginationXString'l', 'r''r'To disable global default rending, set both paginationX and paginationY to undefined. Pagination can then still be used on selected pages.
paginationYString'b', 't''t'To disable global default rending, set both paginationX and paginationY to undefined. Pagination can then still be used on selected pages.

Contributing

  • npm run setup
  • npm run dev to start theme preview of example.md
  • Edit the example.md and style to see the changes
  • npm run export to generate the preview PDF
  • npm run screenshot to generate the preview PNG
1.3.0

2 months ago

1.2.0

3 months ago

1.1.4

4 months ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago