GithubHelp home page GithubHelp logo

k-trout / truthtable Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 628 KB

A small LaTeX package for generating truth tables automatically.

Home Page: https://ctan.org/pkg/truthtable

TeX 100.00%
latex lualatex package truth-table

truthtable's Introduction

truthtable

Copyright (C) Dominic Flück (K-Trout) 2021-2023 <k-trout.ctan[at]protonmail[dot]ch>

truthtable 2023/09/16 v0.1.0


The package is distributed under the LaTeX Public Project License v1.3c or later.

Details: www.latex-project.org/lppl.txt


Info

A small LaTeX package for generating truth tables automatically.

CTAN

The package is available on CTAN: ctan.org/pkg/truthtable.

GitHub

The package repository is on GitHub: github.com/K-Trout/truthtable. For bug reports and feature requests create an issue: github.com/K-Trout/truthtable/issues

Provided files

truthtable's People

Contributors

k-trout avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

slnkahveci

truthtable's Issues

(Not an Issue)

package could have not come at a better time! thanks a ton ❤️

got a super lengthy hw and this is saving me so much time!

Compatbility with Booktabs

Hello,
Just good package, nice and handy, love it. I was just wondering if you could add optional usage of the Booktabs set of table lines compared to the default LaTeX ones. I know I can put \toprule and `\bottomrule\ around my truthtable command but I think the 'midrule' is still off.

Thanks,

Feature Request - add NOR operator

First of, thanks for the great package!

For the sake of completeness, it would be useful to have the NOR (negated disjunction) operator. This is often use along with NAND to show that either is sufficient for expressing AND, NOT, and OR.

The truth table for nor is

| P | Q | P NOR Q |
|---|---|---------|
| T | T | F       |
| T | F | F       |
| F | T | F       |
| F | F | T       |

First column and alignment

Hi- Tks for the package ;-)

Just a question, as you can see in the screen, the first column of the generate table isn't correctly centered :-)

%!TEX lualatex

\documentclass{article}
\usepackage{truthtable}

\begin{document}

\begin{tabular}{|c|c||c|c|c|c|c|c|c}
% Content of table is generated using this single command.
\hline
\truthtable{A,B}{$A$,$B$}{!A, A & B, A | B}{$\lnot A$, $A \land B$, $A \lor B$}{$T$}{$F$}
\hline
\end{tabular}

\end{document}

image

Issues with the column titles

If I set the column title to $A \implies B$, it shows up as "A@ifvmode @Equal \implies @ ifvmode B".

I think this is a bug.

A feature I would find helpful for these small bugs, is if you could make a method to copy the generated LaTeX code, and manually edit it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.