<?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%2Fnewenvironment-in-LaTeX%2FEnglish-timed</id>
		<title>LaTeX/C3/newenvironment-in-LaTeX/English-timed - 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%2Fnewenvironment-in-LaTeX%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=LaTeX/C3/newenvironment-in-LaTeX/English-timed&amp;action=history"/>
		<updated>2026-04-08T18:34:07Z</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/newenvironment-in-LaTeX/English-timed&amp;diff=56029&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot;{| border=1 | '''Time''' | '''Narration'''  |- | 00:01 | Welcome to the spoken tutorial on creating '''new environments '''in '''LaTeX'''.  |- | 00:08 | This tutorial will hel...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=LaTeX/C3/newenvironment-in-LaTeX/English-timed&amp;diff=56029&amp;oldid=prev"/>
				<updated>2022-09-06T06:30:07Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=1 | &amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039; | &amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- | 00:01 | Welcome to the spoken tutorial on creating &amp;#039;&amp;#039;&amp;#039;new environments &amp;#039;&amp;#039;&amp;#039;in &amp;#039;&amp;#039;&amp;#039;LaTeX&amp;#039;&amp;#039;&amp;#039;.  |- | 00:08 | This tutorial will hel...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
| '''Time'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:01&lt;br /&gt;
| Welcome to the spoken tutorial on creating '''new environments '''in '''LaTeX'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:08&lt;br /&gt;
| This tutorial will help the learners to&lt;br /&gt;
&lt;br /&gt;
create or define new '''environments''' to get customized output. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:15&lt;br /&gt;
|  redefine the existing '''environments'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:18&lt;br /&gt;
| To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
You should have knowledge of '''commands '''that are necessary to create a document in '''LaTeX'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:24&lt;br /&gt;
|  You should also have knowledge of '''compiling '''and producing a '''PDF output '''in '''LaTeX'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:30&lt;br /&gt;
|  If not, please go through the relevant '''LaTeX''' spoken tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:37&lt;br /&gt;
| To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu Linux 14.04''' operating system,  '''TeXWorks 0.5'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:47&lt;br /&gt;
| Just like '''new commands,''' we can define '''new environments.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:51&lt;br /&gt;
| As the name suggests the command '''newenvironment''' is used to create/define a new '''environment'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:58&lt;br /&gt;
| It is used to format blocks of text, generally.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:04&lt;br /&gt;
| '''New environment''' is a variation of executing few existing commands put together in a sequence.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:10&lt;br /&gt;
| Ensure that the custom '''environment''' you create, is not an already existing '''LaTeX environment'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:18&lt;br /&gt;
| The syntax to define a new '''environment '''is ''' backslash newenvironment environment name within curly braces start commands within curly braces end commands within curly braces '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:32&lt;br /&gt;
| Here the '''start commands''' are executed whenever the environment starts.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:37&lt;br /&gt;
| And '''end commands''' are executed whenever the environment ends.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:42&lt;br /&gt;
| Let us open the '''TeXWorks''' editor.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:48&lt;br /&gt;
| Pause the tutorial at this point.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:50&lt;br /&gt;
| Download and unzip the files provided in the '''Code Files''' link below the player.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:57&lt;br /&gt;
| You will see some '''LaTeX code''' given in the file '''newEnv.tex'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:06&lt;br /&gt;
| We will copy and paste the first block of code from this file into our newly opened '''tex''' file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:27&lt;br /&gt;
| Let’s try to understand the program.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:30&lt;br /&gt;
| Here '''\newenvironment{bluetext}''' means that we are defining a new '''environment''' called '''bluetext.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:39&lt;br /&gt;
| Here in the definition we center the text and colour it with blue using &lt;br /&gt;
&lt;br /&gt;
'''{\begin{center}\color{blue}}'''&lt;br /&gt;
&lt;br /&gt;
'''{\end{center}}'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:51&lt;br /&gt;
| While using it, we just give '''\begin{bluetext}''' and''' \end{bluetext}''' with the intended text between the two.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:04&lt;br /&gt;
| Save the file as '''newEnv.tex'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:15&lt;br /&gt;
| Let us compile and see the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:19&lt;br /&gt;
|Observe the blue text in the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:29&lt;br /&gt;
| Now, we will see how to use '''parameters''' in the '''environments'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:36&lt;br /&gt;
| '''New environment''' with parameter is defined as&lt;br /&gt;
&lt;br /&gt;
backslash newenvironment environment name within curly braces parameters in square bracket start commands within curly braces end commands within curly braces.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:56&lt;br /&gt;
| Let’s open a new file in '''TeXWorks'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:03&lt;br /&gt;
| Now switch to our downloaded code file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:16&lt;br /&gt;
| We will copy the next block of code from our downloaded code file &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:26&lt;br /&gt;
|and paste it into our new '''teX''' file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:32&lt;br /&gt;
| Let us understand the code now.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:34&lt;br /&gt;
| Here in the given code, we are adding a title to the blue text by getting the title as an '''input parameter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:45&lt;br /&gt;
| We have just added  textbf textit hash 1 slash slash 12pt to the code given for the '''environment''' without '''parameter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:01&lt;br /&gt;
|  We use it as '''“ begin bluetext My text in blue ”''' and the text, &lt;br /&gt;
 &lt;br /&gt;
and then '''“\end{bluetext}”'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:18&lt;br /&gt;
| Save the file as '''newEnvp1.tex'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:31&lt;br /&gt;
| Now compile and see the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:44&lt;br /&gt;
| We shall see the '''renewenvironment''' now.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:51&lt;br /&gt;
| '''renewenvironment '''is used to change or overwrite the existing environment.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:56&lt;br /&gt;
| The syntax for '''renewenvironment''' is&lt;br /&gt;
&lt;br /&gt;
''' backslash renewenvironment environment name within curly braces  start commands within curly braces end commands within curly braces '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:12&lt;br /&gt;
| It’s quite similar to '''newenvironment'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:16&lt;br /&gt;
| Once again, we will open a new '''tex''' file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:28&lt;br /&gt;
| We will copy and paste the last block of code from our downloaded file&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:48&lt;br /&gt;
|  into our newly opened '''tex''' file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:53&lt;br /&gt;
| Let us understand the code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:59&lt;br /&gt;
| ''' renewenvironment itemize '''redefines the '''itemize environment.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:06&lt;br /&gt;
| It is defined as ''' begin center large '''  '''end center '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:12&lt;br /&gt;
| This means that the text should be centered and made to '''large''' size.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:18&lt;br /&gt;
| Recall that the '''itemize environment '''creates a list according to the original definition.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:24&lt;br /&gt;
| Let’s see the usage.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:27&lt;br /&gt;
| The text given within '''\begin{itemize}''' and''' \end{itemize}''' should be converted to large size  and centered according to our definition&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:42&lt;br /&gt;
| Let us save the file as '''renewEnv.tex '''and compile the '''tex''' file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:59&lt;br /&gt;
| Observe the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:08&lt;br /&gt;
| To summarise, we have learnt&lt;br /&gt;
&lt;br /&gt;
'''newenvironment''',  '''newenvironment''' with '''parameters''',  '''renewenvironment'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:21&lt;br /&gt;
| Create an environment '''itemizecolor, ''' which takes the color (red, blue, yellow, green) as input &lt;br /&gt;
&lt;br /&gt;
and creates a list in that color.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:38&lt;br /&gt;
| The video at the following link summarises the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please watch it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:46&lt;br /&gt;
| The Spoken Tutorial Project Team :&lt;br /&gt;
&lt;br /&gt;
Conducts workshops using spoken tutorials and Gives certificates to those who pass an online test&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:56&lt;br /&gt;
| For more details, please write to us.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:00&lt;br /&gt;
| Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.&lt;br /&gt;
&lt;br /&gt;
More information on this Mission is available at this link.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:11&lt;br /&gt;
| This is Ambika Vanchinathan signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	</feed>