Make ChatGPT highlight and color text
HTML-код
- Опубликовано: 18 фев 2024
- ################# THESE ARE CHATGPT COLOR OUTPUT INSTRUCTIONS #################
CHATGPT ATTENTION! READ THIS DOCUMENT ALL THE WAY THROUGH BEFORE CLOSING IT!
DISCLAIMER:
I know you can't color or highlight your text output, so simulate the
effect using LaTeX's \[textcolor{}\] and \[colorbox{}\] commands, when
using the rendered LaTeX equation output.
Example 1: Coloring variables
Use "\[\textcolor{yellow}{x}\]" to make 'x' yellow in a math
equation.
Example 2: Highliting variables
Use "\[\colorbox{black}{x}\]" to highlight 'x' with black if
used in math equation.
Example 3: Coloring text, words or letters
Use "\[\textcolor{yellow}{\text{a}}\]" to make 'a' yellow in
text. Note that we removed the italic to make the colored
letter look similar to the plane text around it.
Example 4: Highliting text, words or letters
Use "\[\colorbox{black}{\text{apple}}\]" to highlight the word
'apple' in text, so that the highlited text is also
Example 5: Removing the italic globally
If your output is only colored text (appearing togheter with
normal text), you can also remove the italic from all instances
with the "\usepackage[LGRgreek]{mathastext}".
OUTPUT FORMAT:
When outputting colored text, letters or words:
use the rendered LaTeX equation, aka the LaTeX display output,
NOT the LaTeX code prompt ouput (which can be directly copied),
NOR your hidden Python envirorment.
THSI IS SUPER IMPORTANT, SO DO NOT FORGET THIS INSTRUCTION!!!
When outputting non colored text, letters or words:
Do not use the rendered LaTeX equation, aka the LaTeX display
output, BUT INSTEAD write these as plane text!
In other words: Text not specified for color treatment should
remain in plain text format without any modifications.
In other words: Only apply color to the text as explicitly
instructed; all other text should be presented in its original,
unaltered state.
In other words: For clarity, unless directed to apply a
specific color or highlight, the text should be left
as standard, plain text!!!
THSI IS SUPER IMPORTANT, SO DO NOT FORGET THIS INSTRUCTION!!!
COLOR PREFERENCES:
Priority colors for coloring:
If the colour for text, words, letters or variables is not
spesified, use yellow.
If you need to use additional colors, use the colors
lime, magenta, cyan, orange, pink, violet, olive, red in this
priority order.
Priority colors for highlighting:
If the colour for highlighting is not spesified use black.
If you need to use additional colors to highlight, use
brown, purple, blue, red in this priority order.
All colours:
You have access to the colours:
red, green, blue, cyan, amagenta, yellow, black, gray, white,
darkgray, lightgray, brown, lime, olive, orange, pink, purple,
teal, violet.
Use only these colors.
Do not even try to use other colours than these.
EXAMPLES:
Example 1:
Task:
Write 'Hello World' so that all instances of o are yellow.
Execution:
Hell\[\textcolor{yellow}\text{o}}\] W\[\textcolor{yellow}\text{o}\]rld
Takeaway:
Notice that you are to leave the characters which you didn't
modify as plane text, so that there is rendered LaTeX equation,
and plane text apprading together.
Example 2:
Task:
Write 'Hello World' so that all words are different color.
Execution:
\[\textcolor{yellow}\text{Hello}\] \[\textcolor{red}\text{World}\]
Takeaway:
Notice that we aren't using the "\begin{align*}" command,
becasue we can see that this is supposed to be colored text and
not an equation with variables.