<?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>Makefile &#8211; Luxing Huang</title>
	<atom:link href="https://luxing.im/tag/makefile/feed/" rel="self" type="application/rss+xml" />
	<link>https://luxing.im</link>
	<description>Thoughs and things</description>
	<lastBuildDate>Wed, 08 Jan 2014 16:26:28 +0000</lastBuildDate>
	<language>en-CA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
<site xmlns="com-wordpress:feed-additions:1">58771605</site>	<item>
		<title>Small Makefile script for making daily course notes on LaTeX</title>
		<link>https://luxing.im/small-makefile-script-for-making-daily-course-notes-on-latex/</link>
					<comments>https://luxing.im/small-makefile-script-for-making-daily-course-notes-on-latex/#respond</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Wed, 08 Jan 2014 16:22:40 +0000</pubDate>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Makefile]]></category>
		<guid isPermaLink="false">http://blog.luxing.im/?p=258</guid>

					<description><![CDATA[I have a habit of making daily course notes using (Probably not the most suitable way for you readers). By using this Makefile script I can automatically generate date based file, and avoiding overriding the current date notes. Because I have an folder structure like this: ~/ study/ termX/ course1/ course2/ termY/ In this structure &#8230; <p class="link-more"><a href="https://luxing.im/small-makefile-script-for-making-daily-course-notes-on-latex/" class="more-link">Continue reading<span class="screen-reader-text"> "Small Makefile script for making daily course notes on LaTeX"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I have a habit of making daily course notes using <img decoding="async" src="https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" alt="&#92;LaTeX" class="latex" /> (Probably not the most suitable way for you readers). By using this Makefile script I can automatically generate date based <img decoding="async" src="https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" alt="&#92;LaTeX" class="latex" /> file, and avoiding overriding the current date notes.<br />
<span id="more-258"></span><br />
Because I have an folder structure like this:</p>
<pre>
  ~/
    study/
        termX/
            course1/
            course2/
        termY/
</pre>
<p>In this structure I can copy this Makefile to anywhere.</p>
<pre>
LC = pdflatex
NAME = $(shell date +%Y%m%d)
TEMPLATE = template.tex

all: make

make: $(NAME).tex
    pdflatex $(NAME).tex
    xdg-open $(NAME).pdf

create: $(TEMPLATE)
    if [ ! -e `date +%Y%m%d`.tex ]; \
    then \
        cp $(TEMPLATE) `date +%Y%m%d`.tex; \
    fi; 
    vim `date +%Y%m%d`.tex

clean:
    rm -f *.aux *.log *.out
</pre>
<p>The usage is very clear, the default is to compile a tex file to PDF.</p>
<p>You still need to write a tex template called template.tex for this to work.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/small-makefile-script-for-making-daily-course-notes-on-latex/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">258</post-id>	</item>
	</channel>
</rss>
