Giter Club home page Giter Club logo

typst's Introduction

LaPreprint

License Stars Twitter

A template for easily creating pretty, nicely formatted preprints in LaTeX.
Want to use the template again? Here's a link to the original repo.

Features

With simple options you can enable/disable:

  • bioRxiv, medRxiv, arXiv and chemRxiv logos.
  • blue or red colour schemes
  • Figures at the end
  • Line numbers
  • Change line spacing
  • Add section numbers

See more in the wiki.

Quick start

  1. Click Use this template
  2. Open the document in your preferred environment (e.g. Overleaf or VSCode)
  3. In main.tex, edit Article setup to have the correct information
  4. Start writing! The sections are found in the main folder

If you want different sections you can easily rename them - just make sure also to edit the names in main.tex.

Acknowledgements

LaPreprint is inspired by the style of eLife and PLoS, and is based on the eLife template. Additionally, the fancy footer is modified from the the Henriques Lab template. Without all their work, this template wouldn't exist!

typst's People

Contributors

rowanc1 avatar talios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

typst's Issues

Compile breaks when given a single abstract

When providing only a single string as an abstract, e.g.:

#show: template.with(
  abstract: lorem(50),
)

or

#show: template.with(
  abstract: "This is an abstract",
)

the compile breaks with

typst compile examples/pixels/main.typ --root .
error: type dictionary has no method `map`
    ┌─ lapreprint.typ:278:14
    │
278 │     abstracts.map(abs => {
    │               ^^^

The same happens if the abstract text is wrapped as content [This is text] rather than a string.

I think this is happening because line 270-271 of lapreprint.typ returns a dictionary, but the abstracts.mapin line 278 requires an array.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.