Jump to content

Testing Colour in LateX for Highlighting


joigus

Recommended Posts

\[7={\color{red}1}\times2^{2}+{\color{red}1}\times2^{1}+{\color{red}1}\times2^{0}={\color{red}111}\]

\[7={\color{red}1}\times2^{2}+{\color{red}1}\times2^{1}+{\color{red}1}\times2^{0}={\color{red}1}{\color{red}1}{\color{red}1}\]

Edited by joigus
Link to comment
Share on other sites

Test on hexadecimal multiplication table with matrix & colours.

\[\begin{array}{cccccccccccccccccc} {\color{teal}\times} & {\color{red}0} & {\color{red}1} & {\color{red}2} & {\color{red}3} & {\color{red}4} & {\color{red}5} & {\color{red}6} & {\color{red}7} & {\color{red}8} & {\color{red}9} & {\color{red}a} & {\color{red}b} & {\color{red}c} & {\color{red}d} & {\color{red}e} & {\color{red}f} & {\color{red}10}\\ {\color{red}0} & {\color{purple}0} & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ {\color{red}1} & 0 & {\color{purple}1} & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & a & b & c & d & e & f & 10\\ {\color{red}2} & 0 & 2 & {\color{purple}4} & 6 & 8 & a & c & e & g & 12 & 14 & 16 & 18 & 1a & 1c & 1e & 20\\ {\color{red}3} & 0 & 3 & 6 & {\color{purple}9} & c & f & 12 & 15 & 18 & 1b & 1e & 21 & 24 & 27 & 2a & 2d & 30\\ {\color{red}4} & 0 & 4 & 8 & c & {\color{purple}g} & 14 & 18 & 1c & 20 & 24 & 28 & 2c & 30 & 34 & 38 & 3c & 40\\ {\color{red}5} & 0 & 5 & a & f & 14 & {\color{purple}19} & 1e & 23 & 28 & 2d & 32 & 37 & 3c & 41 & 46 & 4b & 50\\ {\color{red}6} & 0 & 6 & c & 12 & 18 & 1e & {\color{purple}24} & 2a & 30 & 36 & 3c & 42 & 48 & 4e & 54 & 5a & 60\\ {\color{red}7} & 0 & 7 & e & 15 & 1c & 23 & 2a & {\color{purple}31} & 38 & 3f & 46 & 4d & 54 & 5b & 62 & 69 & 70\\ {\color{red}8} & 0 & 8 & g & 18 & 20 & 28 & 30 & 38 & {\color{purple}40} & 48 & 50 & 58 & 60 & 68 & 70 & 76 & 80\\ {\color{red}9} & 0 & 9 & 12 & 1b & 24 & 2d & 36 & 3f & 48 & {\color{purple}51} & 5a & 63 & 6c & 75 & 7e & 87 & 90\\ {\color{red}a} & 0 & a & 14 & 1e & 28 & 32 & 3c & 46 & 50 & 5a & {\color{purple}64} & 6e & 78 & 82 & 8c & 96 & a0\\ {\color{red}b} & 0 & b & 16 & 21 & 2c & 37 & 42 & 4d & 58 & 63 & 6e & {\color{purple}79} & 84 & 8f & 9a & a5 & b0\\ {\color{red}c} & 0 & c & 18 & 24 & 30 & 3c & 48 & 54 & 60 & 6c & 78 & 84 & {\color{purple}90} & 9c & a8 & b4 & c0\\ {\color{red}d} & 0 & d & 1a & 27 & 34 & 41 & 4e & 5b & 68 & 75 & 82 & 8f & 9c & {\color{purple}a9} & b6 & c3 & d0\\ {\color{red}e} & 0 & e & 1c & 2a & 38 & 46 & 54 & 62 & 70 & 7e & 8c & 9a & a8 & b6 & {\color{purple}c4} & d2 & e0\\ {\color{red}f} & 0 & f & 1e & 2d & 3c & 4b & 5a & 69 & 76 & 87 & 96 & a5 & b4 & c3 & d2 & {\color{purple}e1} & f0\\ {\color{red}10} & 0 & 10 & 20 & 30 & 40 & 50 & 60 & 70 & 80 & 90 & a0 & b0 & c0 & d0 & e0 & f0 & {\color{purple}100} \end{array}\]

 

\[\begin{array}{cccccccccccccccccc} {\color{teal}\times} & {\color{red}0} & {\color{red}1} & {\color{red}2} & {\color{red}3} & {\color{red}4} & {\color{red}5} & {\color{red}6} & {\color{red}7} & {\color{red}8} & {\color{red}9} & {\color{red}a} & {\color{red}b} & {\color{red}c} & {\color{red}d} & {\color{red}e} & {\color{red}f} & {\color{red}1\color{red}0}\\ {\color{red}0} & {\color{purple}0} & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ {\color{red}1} & 0 & {\color{purple}1} & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & a & b & c & d & e & f & 10\\ {\color{red}2} & 0 & 2 & {\color{purple}4} & 6 & 8 & a & c & e & g & 12 & 14 & 16 & 18 & 1a & 1c & 1e & 20\\ {\color{red}3} & 0 & 3 & 6 & {\color{purple}9} & c & f & 12 & 15 & 18 & 1b & 1e & 21 & 24 & 27 & 2a & 2d & 30\\ {\color{red}4} & 0 & 4 & 8 & c & {\color{purple}g} & 14 & 18 & 1c & 20 & 24 & 28 & 2c & 30 & 34 & 38 & 3c & 40\\ {\color{red}5} & 0 & 5 & a & f & 14 & {\color{purple}1\color{purple}9} & 1e & 23 & 28 & 2d & 32 & 37 & 3c & 41 & 46 & 4b & 50\\ {\color{red}6} & 0 & 6 & c & 12 & 18 & 1e & {\color{purple}2\color{purple}4} & 2a & 30 & 36 & 3c & 42 & 48 & 4e & 54 & 5a & 60\\ {\color{red}7} & 0 & 7 & e & 15 & 1c & 23 & 2a & {\color{purple}3\color{purple}1} & 38 & 3f & 46 & 4d & 54 & 5b & 62 & 69 & 70\\ {\color{red}8} & 0 & 8 & g & 18 & 20 & 28 & 30 & 38 & {\color{purple}4\color{purple}0} & 48 & 50 & 58 & 60 & 68 & 70 & 76 & 80\\ {\color{red}9} & 0 & 9 & 12 & 1b & 24 & 2d & 36 & 3f & 48 & {\color{purple}5\color{purple}1} & 5a & 63 & 6c & 75 & 7e & 87 & 90\\ {\color{red}a} & 0 & a & 14 & 1e & 28 & 32 & 3c & 46 & 50 & 5a & {\color{purple}6\color{purple}4} & 6e & 78 & 82 & 8c & 96 & a0\\ {\color{red}b} & 0 & b & 16 & 21 & 2c & 37 & 42 & 4d & 58 & 63 & 6e & {\color{purple}7\color{purple}9} & 84 & 8f & 9a & a5 & b0\\ {\color{red}c} & 0 & c & 18 & 24 & 30 & 3c & 48 & 54 & 60 & 6c & 78 & 84 & {\color{purple}9\color{purple}0} & 9c & a8 & b4 & c0\\ {\color{red}d} & 0 & d & 1a & 27 & 34 & 41 & 4e & 5b & 68 & 75 & 82 & 8f & 9c & {\color{purple}a\color{purple}9} & b6 & c3 & d0\\ {\color{red}e} & 0 & e & 1c & 2a & 38 & 46 & 54 & 62 & 70 & 7e & 8c & 9a & a8 & b6 & {\color{purple}c\color{purple}4} & d2 & e0\\ {\color{red}f} & 0 & f & 1e & 2d & 3c & 4b & 5a & 69 & 76 & 87 & 96 & a5 & b4 & c3 & d2 & {\color{purple}e\color{purple}1} & f0\\ {\color{red}1\color{red}0} & 0 & 10 & 20 & 30 & 40 & 50 & 60 & 70 & 80 & 90 & a0 & b0 & c0 & d0 & e0 & f0 & {\color{purple}1\color{purple}0\color{purple}0} \end{array}\]

Edited by joigus
Link to comment
Share on other sites

\[\begin{array}{cccccc} & & & {\color{red}0} & {\color{red}1} & {\color{red}1}\\ & & \times & {\color{red}1} & {\color{red}1} & {\color{red}1}\\ & & & 0 & 1 & 1\\ & & 0 & 1 & 1\\ & 0 & 1 & 1\\ & {\color{green}1} & {\color{green}0} & {\color{green}1} & {\color{green}0} & {\color{green}1} \end{array}\]

Edited by joigus
Link to comment
Share on other sites

On 12/16/2020 at 9:00 PM, ahmet said:

maybe something better exists..(html+css +js (+php)) :) 

..you cannot use your own HTML+CSS+JS+PHP on 3rd party website like this forum..

You have to use what is built-in website.

This part of the forum (The Sandbox) is for testing such built-in features.

Permission to execute JS + PHP on a third party would allow deep surveillance of forum members, person identification, hacker attacks, money theft etc.

Edited by Sensei
Link to comment
Share on other sites

6 minutes ago, Sensei said:

..you cannot use your own HTML+CSS+JS+PHP on 3rd party website like this forum..

You have to use what is built-in website.

This part of the forum (The Sandbox) is for testing such built-in features.

Permission to execute JS + PHP on a third party would allow deep surveillance of forum members, person identification, hacker attacks, money theft etc.

this is correct ,I also sometimes add the mechanism of +TCP,UDP protocols and all the content relevant to this.

but in spite of these details, I see many people using their own websites,though. Can we say that most of them were not sufficiently knowledgeable?

About LaTeX:

I have not used it so much and I was supposing that it would not contain good/shining colours. (i.e. not suitable for a good presentation)

setting formulas, colours , borders , etc ...this is a part of programming that might require good work.

 

 

Link to comment
Share on other sites

\[ \frac{\sqrt{FE_R} \left( \sqrt[4]{FE_R} \right)^2}{\frac{E_R}{c^2}} = \left( FE_R \right)^{\frac{1}{2}+\frac{2}{4}} \frac{1}{c^2} =\]

\[  =\frac{FE_R}{\frac{E_R}{c^2}} =Fc^2 = \frac{G}{c^2}c^2 \]

Edited by joigus
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.