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.
example1.mp4
(UI is pre-v1.0.2) Quickly create any size truth table.
example2.mp4
(v1.0.3 or later) Create truth tables from LaTeX formula.
example3.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.jsonwith 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 ioryarnto install dependenciesnpm run devto start compilation in watch mode.
Manually installing the plugin
- Copy over
main.js,styles.css,manifest.jsonto your vaultVaultFolder/.obsidian/plugins/your-plugin-id/.



