I asked a question on http://tex.stackexchange.com/q/286883/82730.
A few valid answers came up, but they all seemed overly complex for a beginner or suboptimal.
Can anyone think of a concise and elegant way to typeset an abbreviated truth table?
Math & Science ⇒ Is there an elegant way to typeset abbreviated truth table?
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Is there an elegant way to typeset abbreviated truth tab
You got an excellent answer from Enrico making it very very easy to input the tables. What else do you want? You either need a complex definition to allow an easy input, or make it simple but manual like in cfr's answer.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Is there an elegant way to typeset abbreviated truth table?
Sir, I cannot find Enrico on that web page.Johannes_B wrote:You got an excellent answer from Enrico making it very very easy to input the tables. What else do you want? You either need a complex definition to allow an easy input, or make it simple but manual like in cfr's answer.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Is there an elegant way to typeset abbreviated truth table?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: Is there an elegant way to typeset abbreviated truth tab
I felt that egreg's answer was overly complex in the preamble.
It should take a while to understand what the preamble of egreg's answer contains.
It should take a while to understand what the preamble of egreg's answer contains.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Is there an elegant way to typeset abbreviated truth table?
This is LaTeX3 code, low-level. Chances are high, you will never understand that code.
You can place it in an extra tex file and input that file into your preamble using
You can place it in an extra tex file and input that file into your preamble using
\input
. That way, your preamble will appear a bit more tidy.The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.