Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions packages/preview/theoretic/0.4.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Theoretic

> Opinionated tool to typeset theorems, lemmas and such

Example Usage:
```typ
#import "@preview/theoretic:0.4.0"
#import theoretic.presets.basic: * // this will automatically load predefined styled environments
#show ref: theoretic.show-ref // this is necessary for references to theorems to work

// Example Usage:
#theorem(<label>)[Title][Body]
#theorem(label: <label>, title: [Title], [Body]) // this is equivalent to the above

#proposition(variant: "important")[This proposition has a frame around it!]
#proof[...]
#example[...]
// ..etc

```

## Features: Overview
- It is easy to create single-use variants of environments, as all parameters can be changed on use.
(All configuration is achieved via parameters on the `theorem` function, the presets are only preset pramaters.)
- There are multiple preset styles available, and it should be easy to add your own.
- Automatic QED placement!
- Even if the proof ends with a list or a block equation, the QED will be perfectly aligned.
- Nested proofs are supported.
- You can add a suffix (e.g. `∎`) to any environment.
- Flexible References via specific supplements. E.g. a reference without the title using `@label[-]`; or one with only title and number using `@label[!!]`.
- Any theorem can be restated.
- Automatic numbering & ability to use anything as a number. (E.g. "Proposition F")
- Custom outlines: Outline for headings _and/or_ theorems.
- Filter for specific kinds of theorem to create e.g. a list of definitions.
- Optionally sorted alphabetically!
- Theorems can have a different title for outlines and can even have multiple entries in a sorted outline.
- Exercise solutions


[Please see the PDF manual for more information][manual], e.g. on how to define your own styles and environments.

## Manual

[Full Manual →][manual]

[![first page of the documentation][manual-preview]][manual]


### Preset styles

[![Overview over preset styles][preset-preview]][manual]

## Feedback
Do you have questions or need help? [I may be able to help you in the Typst forum, feel free to `@nleanba` to get my attention.](https://forum.typst.app/)

Have you encountered a bug? [Please report it as an issue in my github repository.](https://github.com/nleanba/typst-theoretic/issues)
<small>(You are also welcome to add feature requests there, but I give no guarantees of implementing them.)</small>

Has this package been useful to you? [I am always happy when someone gives me a ~~sticker~~ star⭐](https://github.com/nleanba/typst-theoretic)



<!--[manual]: https://github.com/nleanba/typst-theoretic/blob/main/main.pdf?raw=true
[manual-preview]: https://github.com/nleanba/typst-theoretic/raw/refs/heads/main/preview.svg
[preset-preview]: https://github.com/nleanba/typst-theoretic/raw/refs/heads/main/preset-preview.svg-->

[manual]: https://github.com/nleanba/typst-theoretic/blob/v0.4.0/main.pdf?raw=true
[manual-preview]: https://github.com/nleanba/typst-theoretic/raw/refs/tags/v0.4.0/preview.svg
[preset-preview]: https://github.com/nleanba/typst-theoretic/raw/refs/tags/v0.4.0/preset-preview.svg
24 changes: 24 additions & 0 deletions packages/preview/theoretic/0.4.0/UNLICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
3 changes: 3 additions & 0 deletions packages/preview/theoretic/0.4.0/lib.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#import "src/base.typ": *

#import "src/presets.typ"
Loading
Loading