https://github.com/insertish/obsidian-truth-table-plugin
Obsidian plugin for auto-generating truth tables with pre-filled truth values.
https://github.com/insertish/obsidian-truth-table-plugin
obsidian obsidian-md obsidian-plugin
Last synced: 28 days ago
JSON representation
Obsidian plugin for auto-generating truth tables with pre-filled truth values.
- Host: GitHub
- URL: https://github.com/insertish/obsidian-truth-table-plugin
- Owner: insertish
- License: mit
- Created: 2021-10-02T22:03:39.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-03T15:15:46.000Z (over 3 years ago)
- Last Synced: 2025-05-08T01:12:54.888Z (28 days ago)
- Topics: obsidian, obsidian-md, obsidian-plugin
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Obsidian Truth Table Plugin
This is an Obsidian plugin for auto-generating truth tables with pre-filled truth values.
## Features
Create tables manually with chosen number of variables and columns.
https://user-images.githubusercontent.com/38285861/135750457-b58c7fcc-6342-43c3-aa14-1151c6ad9cdf.mp4
**(UI is pre-v1.0.2)** Quickly create any size truth table.
https://user-images.githubusercontent.com/38285861/135750458-7c12df08-acc5-4309-b8a9-68bcc0a15717.mp4
**(v1.0.3 or later)** Create truth tables from LaTeX formula.
https://user-images.githubusercontent.com/38285861/135756625-8facb361-8cbd-4271-b265-c22feae04b02.mp4
## How To Use
Configure how the plugin should fill out your tables in settings.

Open your command palette and type in "Truth Tables":

Selecting the first option will allow you to manually create a truth table:

Which will generate the following table:
|$p$|$q$|$r$|$p \land q$|$r \lor p$|
|:-:|:-:|:-:|:-:|:-:|
| F | F | F | | |
| F | F | T | | |
| F | T | F | | |
| F | T | T | | |
| T | F | F | | |
| T | F | T | | |
| T | T | F | | |
| T | T | T | | |You may generate a truth table from a LaTeX formula by selecting the second option:

Which will generate the following table:
|$a$|$p$|$b$|$a \lor p$|$(a \lor p) \oplus b$|
|:-:|:-:|:-:|:-:|:-:|
| F | F | F | | |
| F | F | T | | |
| F | T | F | | |
| F | T | T | | |
| T | F | F | | |
| T | F | T | | |
| T | T | F | | |
| T | T | T | | |## Changelog
Version 1.0.2:
- Initial release.Version 1.0.3:
- Add ability to generate table from LaTeX formula.Version 1.0.4:
- Use a more generic syntax parsing to handle more LaTeX commands.
- Allow no whitespace between command and brackets.## Repository Maintanace
This section is related to maintanance of the plugin's repository.
### Releasing new releases
- Update your `manifest.json` with new version number.
- Commit changes.
- Create tag: `git tag 1.0.0`
- Push commits and tag: `git push --atomic origin master 1.0.0`### How to use
- Clone this repo.
- `npm i` or `yarn` to install dependencies
- `npm run dev` to start compilation in watch mode.### Manually installing the plugin
- Copy over `main.js`, `styles.css`, `manifest.json` to your vault `VaultFolder/.obsidian/plugins/your-plugin-id/`.