<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=LaTeX%2FC3%2FAdding-Colour-to-LaTeX-Documents%2FEnglish</id>
		<title>LaTeX/C3/Adding-Colour-to-LaTeX-Documents/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=LaTeX%2FC3%2FAdding-Colour-to-LaTeX-Documents%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=LaTeX/C3/Adding-Colour-to-LaTeX-Documents/English&amp;action=history"/>
		<updated>2026-04-26T13:55:02Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=LaTeX/C3/Adding-Colour-to-LaTeX-Documents/English&amp;diff=57212&amp;oldid=prev</id>
		<title>Ketkinaina: Created page with &quot;'''Title of the script: Adding Colour to LaTeX Documents'''  '''Authors: Ambika Vanchinathan'''  '''Keywords:''' LaTeX, xcolor package, background color, textcolor, pagecolor,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=LaTeX/C3/Adding-Colour-to-LaTeX-Documents/English&amp;diff=57212&amp;oldid=prev"/>
				<updated>2025-11-12T06:48:19Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Title of the script: Adding Colour to LaTeX Documents&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Authors: Ambika Vanchinathan&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Keywords:&amp;#039;&amp;#039;&amp;#039; LaTeX, xcolor package, background color, textcolor, pagecolor,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of the script: Adding Colour to LaTeX Documents'''&lt;br /&gt;
&lt;br /&gt;
'''Authors: Ambika Vanchinathan'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' LaTeX, xcolor package, background color, textcolor, pagecolor, nopagecolor, fcolorbox, video tutorial&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on ''' Adding Colour to LaTeX Documents.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to&lt;br /&gt;
* Use the '''xcolor''' package&lt;br /&gt;
* Apply colour to text and page background&lt;br /&gt;
* Colour a specific text and&lt;br /&gt;
* Colour Math equations&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
* Linux Mint OS version 21.3&lt;br /&gt;
* TeXworks Editor version 0.6.6&lt;br /&gt;
|| To record this tutorial I am using the following setup.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of LaTeX.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
1. xcolor-eg.tex&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
\usepackage{xcolor}&lt;br /&gt;
|| This command imports the '''xcolor''' package.&lt;br /&gt;
|- &lt;br /&gt;
|| Click the green Typeset button to run the code&lt;br /&gt;
&lt;br /&gt;
Use '''XeLatex '''to typeset.&lt;br /&gt;
&lt;br /&gt;
Show the output&lt;br /&gt;
|| Click the green '''Typeset''' button to run the code. &lt;br /&gt;
&lt;br /&gt;
The output shows text, table and math equation in black colour.&lt;br /&gt;
&lt;br /&gt;
Let us add colour to the text.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 11&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 11.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
Output shows text, math equation and section heading in blue colour.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
line 11&lt;br /&gt;
|| To colour the text, we use the '''\color{} '''command.&lt;br /&gt;
&lt;br /&gt;
'''color''' command takes the color name as its argument.&lt;br /&gt;
&lt;br /&gt;
Here we have given blue.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 13&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 13.&lt;br /&gt;
&lt;br /&gt;
Run the code. &lt;br /&gt;
&lt;br /&gt;
Output shows text and section title in lime colour.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
'''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
'''line 13'''&lt;br /&gt;
&lt;br /&gt;
click the typeset button&lt;br /&gt;
&lt;br /&gt;
Show the output&lt;br /&gt;
|| This command changes the colour to lime.&lt;br /&gt;
&lt;br /&gt;
The previous line remains in blue colour. &lt;br /&gt;
&lt;br /&gt;
This command takes effect for all the text from here onwards.&lt;br /&gt;
&lt;br /&gt;
Let us see how to change the background colour.&lt;br /&gt;
|- &lt;br /&gt;
|| uncomment the line 15&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 15.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
Output shows gray coloured background for the entire document. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 15&lt;br /&gt;
|| '''\pagecolor''' command changes the background colour of the page.&lt;br /&gt;
&lt;br /&gt;
This command takes the colour name as its argument.&lt;br /&gt;
&lt;br /&gt;
Here it is specified as gray.&lt;br /&gt;
&lt;br /&gt;
Let us see some more options.&lt;br /&gt;
|- &lt;br /&gt;
|| uncomment line 17&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
show the output&lt;br /&gt;
|| Uncomment line 17.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
We see some text in violet colour in the output.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 17&lt;br /&gt;
|| The command '''\textcolor''' takes 2 arguments.&lt;br /&gt;
&lt;br /&gt;
The first one is color''' '''and the second one is the''' '''actual text to apply the color.&lt;br /&gt;
&lt;br /&gt;
Here violet is chosen for the given text.&lt;br /&gt;
&lt;br /&gt;
Scope of the '''textcolor''' command is only for the text that is within the braces.&lt;br /&gt;
&lt;br /&gt;
So, the text outside the braces will be in its original colour.&lt;br /&gt;
|- &lt;br /&gt;
|| point to the output in lime colour&lt;br /&gt;
|| Here it is shown in lime colour.&lt;br /&gt;
&lt;br /&gt;
Let us see how to remove the background colour of the page.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 19&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
show the output&lt;br /&gt;
|| Uncomment line 19.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
Now we see that the background colour is removed in the output.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: line 19'''&lt;br /&gt;
|| '''\nopagecolor''' command removes the page colour or gives no pagecolor to the background.&lt;br /&gt;
&lt;br /&gt;
This takes effect from the current page.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 21, 25&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
show the output&lt;br /&gt;
|| Uncomment lines 21 and 25.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
The output shows the text colour changing to teal.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: line 21'''&lt;br /&gt;
|| Here we have changed the text colour to teal.&lt;br /&gt;
|- &lt;br /&gt;
|| show the output&lt;br /&gt;
|| The math equation has also changed to teal colour.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: '''&lt;br /&gt;
&lt;br /&gt;
line 21, 23&lt;br /&gt;
|| '''\color{teal } '''command has changed the text and math equation to teal colour.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Use the '''xcolor''' package&lt;br /&gt;
* Apply colour to text and page background&lt;br /&gt;
* Colour a specific text and&lt;br /&gt;
* Colour Math equations&lt;br /&gt;
|| With this we come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an Assignment,&lt;br /&gt;
&lt;br /&gt;
Create a page with background colour blue and text in white colour.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	</feed>