|
| 1 | +# orange-book |
| 2 | +A book template inspired by The Legrand Orange Book of Mathias Legrand and Vel https://www.latextemplates.com/template/legrand-orange-book. |
| 3 | + |
| 4 | +## Usage |
| 5 | +You can use this template in the Typst web app by clicking "Start from template" |
| 6 | +on the dashboard and searching for `orange-book`. |
| 7 | + |
| 8 | +Alternatively, you can use the CLI to kick this project off using the command |
| 9 | +``` |
| 10 | +typst init @preview/orange-book |
| 11 | +``` |
| 12 | + |
| 13 | +Typst will create a new directory with all the files needed to get you started. |
| 14 | + |
| 15 | +## Configuration |
| 16 | +This template exports the `book` function with the following named arguments: |
| 17 | + |
| 18 | +- `title`: The book's title as content. |
| 19 | +- `subtitle`: The book's subtitle as content. |
| 20 | +- `author`: Content or an array of content to specify the author. |
| 21 | +- `paper-size`: Defaults to `a4`. Specify a [paper size |
| 22 | + string](https://typst.app/docs/reference/layout/page/#parameters-paper) to |
| 23 | + change the page format. |
| 24 | +- `copyright`: Details about the copyright or |
| 25 | + `none`. |
| 26 | +- `lowercase-references`: True to have references in lowercase (Eg. table 1.1) |
| 27 | + |
| 28 | +The function also accepts a single, positional argument for the body of the |
| 29 | +book. |
| 30 | + |
| 31 | +The template will initialize your package with a sample call to the `book` |
| 32 | +function in a show rule. If you, however, want to change an existing project to |
| 33 | +use this template, you can add a show rule like this at the top of your file: |
| 34 | + |
| 35 | +```typ |
| 36 | +#import "@preview/orange-book:0.7.0": book |
| 37 | +
|
| 38 | +#show: book.with( |
| 39 | + title: "Exploring the Physical Manifestation of Humanity’s Subconscious Desires", |
| 40 | + subtitle: "A Practical Guide", |
| 41 | + date: "Anno scolastico 2023-2024", |
| 42 | + author: "Goro Akechi", |
| 43 | + main-color: rgb("#F36619"), |
| 44 | + lang: "en", |
| 45 | + cover: image("./background.svg"), |
| 46 | + image-index: image("./orange1.jpg"), |
| 47 | + list-of-figure-title: "List of Figures", |
| 48 | + list-of-table-title: "List of Tables", |
| 49 | + supplement-chapter: "Chapter", |
| 50 | + supplement-part: "Part", |
| 51 | + part-style: 0, |
| 52 | + copyright: [ |
| 53 | + Copyright © 2023 Flavio Barisi |
| 54 | +
|
| 55 | + PUBLISHED BY PUBLISHER |
| 56 | +
|
| 57 | + #link("https://github.com/flavio20002/typst-orange-template", "TEMPLATE-WEBSITE") |
| 58 | +
|
| 59 | + Licensed under the Apache 2.0 License (the “License”). |
| 60 | + You may not use this file except in compliance with the License. You may obtain a copy of |
| 61 | + the License at https://www.apache.org/licenses/LICENSE-2.0. Unless required by |
| 62 | + applicable law or agreed to in writing, software distributed under the License is distributed on an |
| 63 | + “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 64 | + See the License for the specific language governing permissions and limitations under the License. |
| 65 | +
|
| 66 | + _First printing, July 2023_ |
| 67 | + ], |
| 68 | + lowercase-references: false |
| 69 | +) |
| 70 | +
|
| 71 | +// Your content goes below. |
| 72 | +``` |
0 commit comments