△ Content Quality △
Q. What are the tex Codes for typing answers for highlighting, bold, box and many more?
At least 5 Tex codes!
Answers
Users in Brainly use such tex codes for:
♦ To make their answers more attractive.
♦ For highlighting important Words and Sentences.
The below codes are written in Capital Letters (i.e. A, B, C, etc). Be sure that every alphabet in the codes should be in small letters ( i.e. a, b, c, etc.) or else the code will not work.
Some of the codes are as follow :
♦ [TEX] \TEXTBF{...} [/TEX]
=> For bold which leaves space between two words.
♦ [TEX] \BOLD{...} [/TEX]
=> For bold which doesn't leaves space between words.
♦ [TEX] \TEXTIT{...} [/TEX]
=> For italics.
♦ [TEX] \UNDERLINE{...} [/TEX]
=> For underlining Words.
♦ [TEX] \BOXED{...} [/TEX]
=> For creating a box around the words and sentences.
♦ [TEX] \BF{\MATHFRAK{...}} [/TEX]
=> For a different Font.
♦ [TEX] \SMALL{...} [/TEX]
=> For small size of words.
♦ [TEX] \LARGE \HUGE \BF{\MATHFRAK{...}} [/TEX]
=> For large words with a different font.
♦ [TEX] \LARGE \HUGE \BF{...} [/TEX]
=> For large words with different font.
♦ [TEX] \LARGE \HUGE{...} [/TEX]
=> For large words with italics.
♦ [TEX] \UNDERLINE{\LARGE \HUGE{\MATHFRAK{...}}} [/TEX]
=> For underlined words with large letters and different font.
♦ [TEX] \HUGE{\RED { \BOLD {…}}} [/TEX]
=> For huge words with red colour.
✔ You can only use "red, green & blue" colour.
In some Codes, there won't be space by your own keyboard. In a such a situation, use this “\:” for giving space between two words.
✔ You can also create some codes from your own by removing and adding some words such as “\underline”, “\mathfrak”, “\bf”, etc.
✔ Give the proper number of brakets & proper words in proper place Or else the Code will not work.
____________________
____________________
✿ Be Brainly ✿
We are going to see some TeX Codes.
So, What is TeX?
TeX is basically a typesetting software, designed to typeset books, articles, posters, etc.
Then there are many different extensions to this TeX. These provide simple commands to execute TeX Codes.
Basically, LaTeX is used in the Website Version of Brainly.
Another version, known as KaTeX, developed by Khan Academy, is used in the Brainly App.
This brings us to some complications. There are some commands in KaTeX that don't work with the Website.
I will only mention the commands that work both on Website and the App.
Also, note that there is a Character Limit of 512 Character between the tags.
If you use more than 512 Characters, the App will render, but the Code won't render on Website.
Here we go:
1) Bold
This simply gives boldface. Use it for mathematical expressions. Spacing is to be done manually.
Code: \bold{SampleText}
Result:
2) Bold Text [Automatic Spacing between words]
Text in Boldface
Code: \textbf{Sample Text}
Result:
3) Italics Text [Automatic Spacing between words]
Text in italics
Code: \textit{Sample Text}
Result:
4) Underline
Underline Command for Mathematical Expressions. Spacing is to be done manually.
Code: \underline{SampleText}
Result:
5) Text [Automatic Spacing between words]
This code is used for simply involving Text in any command.
If you use text without this command, you will get a result in italics, and with no spacing.
Code: \text{Sample Text}
Result:
6) Box
It puts a box around things. Spacing is to be done manually.
Code: \boxed{SampleExpression}
Result:
7) Huge Text
For Text.
Code: \huge \text{Sample Text}
Result:
8) Blackboard Math Text
See this for yourself. Works only for Capital Letters.
This is generally used to denote Special Sets in Mathematics. Like the set of Natural Numbers is , set of real numbers is and so on.
Code: \mathbb{SAMPLE}
Result:
9) Fraktur Math Text
This is like a calligraphy text for Math. Works only for small letters.
Code: \mathfrak{sample}
Result:
10) Integrals
Code: \displaystyle \int\limits_{a}^{b}{x^2 \, dx}
Result:
Here, the \displaystyle command renders a bigger and clearer integral sign and limits. This command can be also used with fractions.
11) Limits
Code: \displaystyle \lim_{x\to a} \frac{x^2-a^2}{x-a}
Result:
12) Summations
Code: \displaystyle \sum_{r=a}^{b} 2^r
Result:
13) Matrices [and Arrays in general]
We can make arrays, and put relevant brackets around it.
Code: \left[\begin{array}{ccc}1&2&3\\4&5&6\\7&8&9\end{array}\right]
Result:
Here, as you see, we used \begin{array}{ccc} to start an array. The ccc represents three columns, each with center alignment.
We can use for left alignment, and for right alignment.
E.g.: \begin{array}{lrcr} will create four columns, with left, right, center and right alignments respectively.
Use & to differentiate between elements of different columns. The new line command \\ is used to enter a new row.
The \left[ and \right] commands make brackets around it, and we have a Matrix like looking structure.
14) Vectors
Code: \vec{r}=a \hat{\imath}+b\hat{\jmath}+c\hat{k}
Result:
The \imath and \jmath commands provide special forms of i and j.
_____
Spacing
-> \:
For normal space
-> \,
For a shorter than normal space
-> \quad
For a large space, like the indentations when starting a paragraph.
-> \qquad
For even larger spaces
-> \\
For inserting a new line.
Please Always use \\ at least twice when writing Math Equations.
Preferably use them thrice, like \\ \\ \\ . This maintains readability on Website