So in this lesson we will learn how to use colors in latex.
So there are four types of colors which we can use by their names we don't have to define
any colours if you want to use coloured by memes.
first of all of there are some base colours for these colours we we use only this color
package without any option of this packing because in this bracket we put options from
here to here we put some option we can put some options so this base colours are available
if we use this color package and without using any auction so there's always available so
there are around 19 colours which are available to us I will show you in a minute then there
are colors which are available if we use this option dvipsnames with a command like this
usepackage colour and then we say usernames, dvipsnames then we are able to use these colours
so a lot of colours which we can add to hese colour we get access to be dvipsnames option
at colours then there are two other color names available to us which are svgnames so
they are more than dvipsnames a lot of colours available if we use this option but this option
is only available to xcolor package so dvipsnames option available to colour in xcolor packing
so these are the two main packages which we use whenever you want to use colors in latex.
So initially it was color package then they added some more colors and xcolor is the most
advanced package.
So in using the svgnames option in xcolor package we get access to some extra colors
which we can use by names.
So here we are talking about if we want to use colors by names.
Then by using x11names option, we can get access to some more color options and this
option is also only available in xcolor package.
And now let�s look at those colors which we have access to by using these options.
So these are the base colors, these 19 colors as you can see that they all start with a
lowercase, black, blue brown and all these these colors are always available.
So then these are the dvipsnames option color.
if you use this of this option in the package xcolor or color then you get access to these
all these colours and if you see you all these start with a capital letter there are some
differences yet if you look carefully for example this green is a lowercase green and
we have an uppercase getting so these two different colours of course these is no difference
in black but there are some differences in other colours these are the svgnames colors
lot of colours available then there are x11 names option and you can see that this to
this is even bigger than svgnames variations of yellow and similarly maroon variations
and you have a lot of option this will we can use hundred of these colours by their
names start using one of the some of these colours and then we discuss how to define our
own colours later in this lecture so first of all we we have to use a package, so the color is the basic
package so I am using the color package and without any options so we get access to some
basic colours let's say that we want to use the red colour so I will see backslash colour
and then in curly brackets, red with a lowercase and now if I compile this programs,
Text of all my document will be changed to Red all this text has been changed to red
similarly, you can use any color and now if you want to use the capital red color with
this which could be different and which is accessible by using the dvipsnames if I compile
this program will not compile because it can not find the definition of this capital Red
so we have to use the other option which is dvipsnames option so I will
say usenames dvipsnames, its a comma, then if I compile this, now you can get ...Now
I am able to compile this program and this Red color is almost similar to that one.Call
my text but only this line so far that we can use a command car text colour text and
then we mention the text colour of the text me if you want to change and then we posted
the curly brackets and then whatever text you want to change the colour of just put it within
the curly brackets and know if I compile only the first line will be changed in this way
you can change the color of any specific text to letter say that you want
to change the background colour of the page so there is a command for that for which is called pagecolor with the color for example
Cyan so this will change the background colour of the page so you can see the background
colour of the page has been changed So let us say, we want to define our own colors. For that we must understand color models
because we will be defining colors based on one of these models so there are 2 kind of models First of all there are some proprietary models like Pantone and
HKS colours so these colors give you very predictable results when you print them so the problem
is is that when you print the colour what you see on the screen, usually you don't get when you print
that colour so this type of corporate re-branding SKS colours they have there been designed
for these predictable results whenever you print on a clot on a paper so what type of
people you are using where is a coated paper or uncoated people so they have all type of
radiation they will give you OK this is our CT it that colour variation for this colours
they have certain books so you you buy those books and you look at the book colour and
whatever you can see on that book colour you are you will get hat color printed Call Ted
Baker lap age-related clothworks uncoated page is submit to finish Pages define finished
page so you can get some predictable is that by using these colours don't the Parramatta
best Moto G 3rd with other models but V3 are most important so did I mention I leave these
three subbies Dr card Parramatta baseball really you give the parametres of certain
colours so for example RGB model is based on red green and blue so in this model the
white is Sean is 111 so if you if you do find this girl she want to define the RGB colour
in later you will just use this command define coloured that's like define colour then whatever
you want to give this colour to for example this my own cars to Michael and then put the
name of the model which you are using to RGB then you give the variations of these red
green and blue a decimal between 0 and 1 4 0.2 0.8 and 0.22 as you can see that there
are indefinite auctions you can give you this will be a certain colour which we can see
when you just the printed but this can only see on the screen if you want the same as
that which you can see on print medium then you go don't use RGB motor vehicle RGB will
be printed differently so if you are making a lytic document which will be printed later
on then your option is to you that cmyk motor because cmyk model is the industrial printing
mortal this is used by the industrial printers so industry you see on Magenta yellow and
black blackout the colour magenta yellow and black variations and today for we have no
for different options to even this so we can be fined up cmyk colour light I know what
you see on the screen most probably that colour will be printed but cmyk colour scanner to
give you as bright colours available in a view model because I like best colours so
you will see the difference when you use cmyk colour so if you are only using web pages
your document for web pages then you can use RGB colour HTML colours Make any webpage you
so you can use a Chrome extension like I drop this is a Chrome extension and deception capsule
the HTML code for dinner and then you can you get to letting you let it up meant by
defining like this you can define countless a callus at me at your own with your own names
and then you can use them in the same fashion as we have used the other colour like your
text colour peach colour anything like that so this is some of the Motors I wanted to
highlight to you so not to say I define my own colour so what I will do I will put define
colour and then I can give any name for example my colour and then I have to give the model
name RGB and then I do I have to do for Addie model require three0.2 0.8 and 0.4 these are
the three parameters for RGB colour and I have defined this my colour but without using
at the moment so why not use it for this first line of text so instead of this red I use
discoloured me which is Michael if I can do this Nemo and Lola City move this page colour
command I have seen you have already seen that and Harford compiled this and I know
as you can see that this is my colour so this is the colour combinations which I defined
with my colour and this text has been changed to that colour this where you can define any
colour by using the define colour come on with different models and then you can use
that colour so latest define an adult colour define colour second colour let's name is
second colour and then we use the model cmyk this time and then you have to give food Parramatta
so let us a 0.20.3 0.4 and 0.52 dessert the Ford Parramatta required and no I use here
second colour and see how it looks like and as you can see there is almost agree it's
a variation of grey and no let's change this to something else 0.4 it's a 0.1 0.6 and White
2 and see the difference and no as you can see nor it is turning towards a green solo
if you give this cmyk colour to the company from where you are printing something so there
will be able to adjust their Calibre inks so that they can get this colour printed for
you so you can find colours from various models and you can use them so let's use external
package so just copy this and paste and changes to excavator package gives us access to svg
names and their names option to you this khaki colour as my page colour so I will use svg
names auction so I will use svg names auction and then I can use khaki colour is my peach
colour so backslash please colour and then copy so not want to use is that my text colour
Under Armour colour or text should be let's say bro so I said colour and I choose the
brown which is available from the basic colours so no African see the car keys.
Be Scanlan and brown is the basic brown is there a text colour in order to say that this
and I want to change only bistec time on to highlight in a box so I can listen card box
then they can assign the colourful and then I can assign this text so this will put a
box behind this text and as you can see that this text has been highlighted so you can
use it if you want to highlight a text so there is a way to change the colour of any
text on the fly and which is by using command colour and then here for example I want this
colour to be 40% in cream and rest black so I will see green!
40 exclamation mark blackannoy as you can see that about text has been changed to 42
Parsons green and 60% black just come on, Pokemon you might see some wherein said other
later come on the command is expecting that colour to be in food so you can use backslash
colour in this way you can immediately define the colour and then put it in elevator, so
this one piece of year to you the colour as well so there are some other packages no really
well with give access to Google colours colour designs and some other colours so you can
have a look at those if you want really interested in somewhat was talking but normally we just
definable on colours are you some of the existing colours and this is enough are most of the
lytic application because we have access to so many colours that there is no problem getting
any colours we won't sleep I want to get look and feel of some colours so there is a website
called later colour.com so on this website a lot of colours available so you can go through
any of these colours and see what colour you like for your document and then there is a
definition available for this so this colour for example has this RGB variations and this
is HTML code for this colour so while putting them ill call you don't have to put the same
just put the number so in this way you can select any colour and use them so the website
later colour.com you might refer to this website so these are some of that matters to use telling
you can either use any of the package is like colorex colour package with some options to
get access to some of the colours are you can find your own colours using some of the
colour models available to us and this way you can manipulate the documents look and
feel if you want to change the colour are phone to detect and you can you this text
colour, and then with fantasies you can change whatever colour you want so I hope this will
help you in using colours in latex