LaTeX forum ⇒ Math & ScienceIs there an elegant way to typeset abbreviated truth table?

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

Is there an elegant way to typeset abbreviated truth table?

Postby mado » Mon Jan 11, 2016 2:33 am

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?

User avatar
Johannes_B
Site Moderator
Posts: 4098
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jan 11, 2016 10:43 am

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.

mado
Posts: 16
Joined: Thu Dec 10, 2015 5:55 am

Postby mado » Mon Jan 11, 2016 10:46 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.

User avatar
Johannes_B
Site Moderator
Posts: 4098
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jan 11, 2016 11:15 am

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mado
Posts: 16
Joined: Thu Dec 10, 2015 5:55 am

Postby mado » Mon Jan 11, 2016 11:19 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.

User avatar
Johannes_B
Site Moderator
Posts: 4098
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jan 11, 2016 11:30 am

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.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 2 guests