o

orange-book

@preview

A book template inspired by The Legrand Orange Book of Mathias Legrand and Vel

v0.7.1
MIT-0
Template

Package Information

Last Updated
Minimum Typst Version
0.14.0
Categories
book

Preview

Template preview

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/orange-book:0.7.1

2. Initialize from template

Create a new project from this template:

typst init @preview/orange-book:0.7.1

Version History

0.7.10.14.0
76ee4c0eda69...
0.6.20.14.1
83187e7d7577...
0.6.10.13.1
41196f19580c...
0.6.00.13.0
4f0b41e5a619...
0.5.00.12.0
9512760099f4...
0.4.00.12.0
a16f780b258c...
0.3.00.12.0
8265ba1be46f...
0.2.00.11.1
8594f4e5649b...
0.1.00.10.0
3df848044017...

orange-book

A book template inspired by The Legrand Orange Book of Mathias Legrand and Vel https://www.latextemplates.com/template/legrand-orange-book.

Usage

You can use this template in the Typst web app by clicking "Start from template"
on the dashboard and searching for orange-book.

Alternatively, you can use the CLI to kick this project off using the command

typst init @preview/orange-book

Typst will create a new directory with all the files needed to get you started.

Configuration

This template exports the book function with the following named arguments:

  • title: The book's title as content.
  • subtitle: The book's subtitle as content.
  • author: Content or an array of content to specify the author.
  • paper-size: Defaults to a4. Specify a paper size
    string
    to
    change the page format.
  • copyright: Details about the copyright or
    none.
  • lowercase-references: True to have references in lowercase (Eg. table 1.1)

The function also accepts a single, positional argument for the body of the
book.

The template will initialize your package with a sample call to the book
function in a show rule. If you, however, want to change an existing project to
use this template, you can add a show rule like this at the top of your file:

#import "@preview/orange-book:0.7.1": book

#show: book.with(
  title: "Exploring the Physical Manifestation of Humanity’s Subconscious Desires",
  subtitle: "A Practical Guide",
  date: "Anno scolastico 2023-2024",
  author: "Goro Akechi",
  main-color: rgb("#F36619"),
  lang: "en",
  cover: image("./background.svg"),
  image-index: image("./orange1.jpg"),
  list-of-figure-title: "List of Figures",
  list-of-table-title: "List of Tables",
  supplement-chapter: "Chapter",
  supplement-part: "Part",
  part-style: 0,
  copyright: [
    Copyright © 2023 Flavio Barisi

    PUBLISHED BY PUBLISHER

    #link("https://github.com/flavio20002/typst-orange-template", "TEMPLATE-WEBSITE")

    Licensed under the Apache 2.0 License (the “License”).
    You may not use this file except in compliance with the License. You may obtain a copy of
    the License at https://www.apache.org/licenses/LICENSE-2.0. Unless required by
    applicable law or agreed to in writing, software distributed under the License is distributed on an
    “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and limitations under the License.

    _First printing, July 2023_
  ],
  lowercase-references: false
)

// Your content goes below.