<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ask Your Question &#187; miktext</title>
	<atom:link href="http://askbahar.com/tag/miktext/feed/" rel="self" type="application/rss+xml" />
	<link>http://askbahar.com</link>
	<description>Lets Talk</description>
	<lastBuildDate>Sun, 11 Mar 2012 09:50:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to setup latex environment in Windows</title>
		<link>http://askbahar.com/2008/10/14/setup-latex-environment-in-windows/</link>
		<comments>http://askbahar.com/2008/10/14/setup-latex-environment-in-windows/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 15:52:39 +0000</pubDate>
		<dc:creator>Habib Ullah Bahar</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[miktext]]></category>
		<category><![CDATA[thesis writing]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://askbahar.wordpress.com/?p=36</guid>
		<description><![CDATA[<p>Must read notice: Geekish Post&#8230;.Only for geeks </p> <p>Do you need to write your first thesis paper or do you want your publication published in a famous journal?</p> <p>So <a title="LaTeX – A document preparation system " href="http://www.latex-project.org/" target="_blank">LaTeX</a> is for you. LaTeX is a document preparation system for high-quality typesetting based on Donald E. [...]]]></description>
			<content:encoded><![CDATA[<p>Must read notice: Geekish Post&#8230;.Only for geeks <img src='http://askbahar.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Do you need to write your first thesis paper or do you want your publication published in a famous journal?</p>
<p>So <a title="LaTeX – A document preparation system " href="http://www.latex-project.org/" target="_blank">LaTeX</a> is for you. LaTeX is a document preparation system for high-quality typesetting based on Donald E. Knuth&#8217;s <em>TeX</em> typesetting language or      certain extensions. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.</p>
<p>Well, definitely *NIX systems have built-in latex support, but in windows you need to set it up for yourself. As few monthes ago I have started writting my first thesis paper using latex and for some reason I have used windows system, I need to setup latex environment in windows. Definitely a annoying, time consuming task, So I have decided to share it <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I am going to describe it step by step, please follow these steps as described, its important. I am assuming you have <a title="Windows XP" href="http://www.microsoft.com/windows/windows-xp/" target="_blank">Windows XP</a> or later versions and you have administrative privilege.</p>
<p><span id="more-36"></span></p>
<p>Step 1:: Setting Up Environment</p>
<blockquote>
<ul>
<li>Right-click on the &#8220;My computer&#8221;       icon and choose Properties. Select the &#8220;Advanced&#8221; tab.Then click on &#8220;Environment Variables&#8221;.</li>
<li>Create a &#8220;user variable&#8221; called &#8220;<strong>DICTDIR</strong>&#8221; with value &#8220;<strong>c:\usr\local\lib</strong>&#8220;. [ To create a new user variable, just hit "New" under "User variables for &lt;System User Name&gt; or to edit an existing one just hit Edit ]</li>
<li>Create a &#8220;user variable&#8221; called &#8220;<strong>HOME</strong>&#8221; with value &#8220;<strong>c:\</strong>&#8220;</li>
<li>Create a &#8220;System variable&#8221; under &#8220;System variables&#8221; called &#8220;<strong>Path</strong>&#8221; with the value <strong>c:\program files\emacs\bin;c:\program files\MiKTeX 2.7\miktex\bin;c:\program files\ghostgum\ghostview\gsview\;c:\usr\local\bin;c:\program files\ghostgum\gs\gs8.51\lib;c:\program files\ghostgum\gs\gs8.51\bin</strong> [<em>There is a huge possibility that this variable is already there. In that case, just append the value</em>]</li>
<li>A restart of your system may be required.</li>
<li>Run command prompt and type &#8220;<strong>set</strong>&#8221; to check if all these variables with their required values are set.</li>
</ul>
</blockquote>
<p>Step 2:: Required Software</p>
<blockquote>
<ul>
<li>Download latest version of <a href="http://www.gnu.org/software/emacs/" target="_blank"><strong>Emacs</strong></a>from <a title="Emacs for Windows download" href="http://http://ftp.gnu.org/pub/gnu/emacs/windows" target="_blank">here</a>. Direct link: <a href="http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-22.3-bin-i386.zip" target="_self">emacs-22.3-bin-i386.zip</a></li>
<li>Download latest version of <a href="http://www.miktex.org" target="_blank"><strong>MikTeX</strong></a>from <a title="MikTeX for Windows download" href="http://www.miktex.org/2.7/Setup.aspx" target="_blank">here</a>. Direct link: <a href="http://mirror.lums.edu.pk/ctan/systems/win32/miktex/setup/basic-miktex-2.7.3164.exe" target="_self">basic-miktex-2.7.3164.exe</a></li>
<li>Download latest version of <a href="http://pages.cs.wisc.edu/~ghost/" target="_blank">Ghostscript</a> from <a title="Ghostscript for Windows download" href="http://sourceforge.net/project/showfiles.php?group_id=1897&amp;package_id=108733&amp;release_id=617197" target="_blank">here</a>. Direct link: <a href="http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-22.3-bin-i386.zip" target="_self">gs863w32.exe</a></li>
<li>Download latest version of <a href="http://pages.cs.wisc.edu/~ghost/" target="_blank">GSview</a> from <a title="GSview for Windows download" href="http://pages.cs.wisc.edu/~ghost/gsview/get49.htm" target="_blank">here</a>. Direct link: <a href="http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsv49w32.exe" target="_self">gsv49w32.exe</a></li>
<li>Download latest version of <a href="http://www.gnu.org/software/auctex/" target="_blank">AUCTeX</a> from <a title="AUCTeX for Windows download" href="http://www.gnu.org/software/auctex/download-for-windows.html" target="_blank">here</a>. Direct link: <a href="http://ftp.gnu.org/pub/gnu/auctex/auctex-11.85-e22.3-msw.zip" target="_self">auctex-11.85-e22.3-msw.zip</a></li>
<li>Download <strong>.emacs</strong> from <a title=".emacs - unzip it after download" href="http://www.box.net/shared/q11me3u57v" target="_blank">here</a></li>
</ul>
</blockquote>
<p>Step 3::Installation</p>
<blockquote>
<ul>
<li>Put the .emacs file [you will get it after unzipping emacs.zip file] in <strong>C:</strong> [or your predefined HOME]</li>
<li>As Local TexMF Tree, create a directory named &#8220;<strong>Local TeX Files</strong>&#8221; in <strong>C:</strong> [or your predefined HOME]</li>
<li>Unzip emacs-22.3-bin-i386.zip to <strong>c:\program files\ </strong>. Rename the       <strong>c:\program files\emacs-22.3</strong> directory to <strong>c:\program files\emac</strong>. Run the file <strong> c:\program files\emacs\bin\addpm.exe</strong>.</li>
<li>Unzip auctex-11.85-e22.3-msw.zip to <strong>c:\program files\emacs\site-lisp</strong>.  Rename <strong>c:\program files\emacs\site-lisp\auctex-11.85-e22</strong> to       <strong>c:\program files\emacs\site-lisp\auctex</strong>.</li>
<li>Run gs863w32.exe. Choose <strong>c:\program files\ghostgum\gs</strong> as installation directory. Accept everything else.</li>
<li>Run gsv49w32.exe. Choose <strong>c:\program files\ghostgum\ghostview</strong> as installation directory. Accept everything else.</li>
<li>Run basic-miktex-2.7.3164.exe. When prompted for &#8220;Path to installation folder&#8221;, choose <strong>c:\Program Files\MiKTeX 2.7</strong>. When prompted for &#8220;Create local TEXMF tree&#8221;, choose <strong>c:\Local TeX       Files</strong> as &#8220;Path to root folder&#8221;. Accept everything else.</li>
</ul>
</blockquote>
<p>Step 4:: Opening Emacs in Latex Mode</p>
<blockquote>
<ul>
<li>Type <strong>M-x latex-mode</strong>. As soon as you hit &#8220;<strong>Enter</strong>&#8221; after writing the command, you will notice &#8220;Command&#8221; and &#8220;LaTeX&#8221; menus.</li>
</ul>
</blockquote>
<p>Step 5:: Compiling Latex Files in Emacs</p>
<blockquote>
<ul>
<li>Press C-c C-c       &lt;Return&gt;  to run latex.</li>
<li>Press C-c C-l to view       results of the compilation</li>
<li>Press C-c C-c &lt;Return&gt;       to run latex again</li>
<li>Press C-c C-c &lt;Return&gt;       to run latex again, again</li>
<li>Press C-c C-c &lt;Return&gt;       to run View. It will take a while to create fonts etc. the first time.</li>
<li>Press C-c C-c FILE       &lt;Return&gt; &lt;Return&gt; to run dvips (Note that the command is FILE       and not Dvips as one might expect)</li>
<li>Press C-c C-c Print       &lt;Return&gt; &lt;Return&gt; to run GSview (Also somewhat       misleading name)</li>
<li>If you want to print the document, do it from GSview.</li>
</ul>
</blockquote>
<p>A million dollar secret, when you asked to do the following, use your brain <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li>C-c C-c = Hold CTRL while pressing c twice</li>
<li>C-c C-l = Hold CTRL while pressing c, release c, While holding CTRL, press l (&#8220;ell&#8221;), release both</li>
<li>M-x = Hold ALT while pressing x</li>
<li></li>
</ul>
<p>And last but not the least, download <a href="http://askbahar.files.wordpress.com/2008/10/learntex.pdf">Basic Latex Commands</a>. This pdf file will help you to learn basic latex commands.</p>
<p>So start writting your thesis <img src='http://askbahar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://askbahar.com/2008/10/14/setup-latex-environment-in-windows/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

