## LaTeX forum ⇒ Math & Science ⇒ Is there an elegant way to typeset abbreviated truth table?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Posts: 16
Joined: Thu Dec 10, 2015 5:55 am

### Is there an elegant way to typeset abbreviated truth table?

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?

Johannes_B
Site Moderator
Posts: 4109
Joined: Thu Nov 01, 2012 4:08 pm
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.

Posts: 16
Joined: Thu Dec 10, 2015 5:55 am
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.

Sir, I cannot find Enrico on that web page.

Johannes_B
Site Moderator
Posts: 4109
Joined: Thu Nov 01, 2012 4:08 pm
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Posts: 16
Joined: Thu Dec 10, 2015 5:55 am
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.

Johannes_B
Site Moderator
Posts: 4109
Joined: Thu Nov 01, 2012 4:08 pm
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 `\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.