<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2392903331459266840</id><updated>2012-01-30T01:32:23.546-08:00</updated><category term='tools'/><category term='git'/><category term='pgf'/><category term='tikz'/><category term='latex'/><title type='text'>Midtiby notes</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2392903331459266840.post-545343207074771031</id><published>2011-04-14T03:52:00.000-07:00</published><updated>2011-04-14T03:55:30.997-07:00</updated><title type='text'>Handle file permissions in shared git repository</title><content type='html'>When several people share their work on the same git repository, it is required to handle file permissions properly.&lt;br /&gt;This is an ugly solution, but it seems to work&lt;br /&gt;&lt;br /&gt;mkdir sharedrepo&lt;br /&gt;cd sharedrepo&lt;br /&gt;git init --bare&lt;br /&gt;echo "chmod -f -R a+rw ." &amp;gt;&amp;gt; hooks/post-receive&lt;br /&gt;chmod a+x hooks/post-receive&lt;br /&gt;cd ..&lt;br /&gt;chmod -R a+rw sharedrepo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2392903331459266840-545343207074771031?l=midtiby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/545343207074771031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2392903331459266840&amp;postID=545343207074771031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/545343207074771031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/545343207074771031'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/2011/04/handle-file-permissions-in-shared-git.html' title='Handle file permissions in shared git repository'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2392903331459266840.post-4205315716561354063</id><published>2009-11-09T01:56:00.000-08:00</published><updated>2010-01-18T01:21:23.876-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='git'/><title type='text'>Tools for version control</title><content type='html'>As a professional coder I use several tools. One of the most important of these tools is the version control system. &lt;br /&gt;&lt;br /&gt;I use version control for keeping track of the source code of my programming projects. It makes it easy to mark when the code works, and track down changes when I notice that something is broken.&lt;br /&gt;For several years I have used the version control system Subversion with satisfying results. Earlier this year I heard about another version control system named Git. &lt;br /&gt;The main advantage of Git is that it is a decentralized version control system. This means that a network connection to the central repository is not required (which is the case for subversion). &lt;br /&gt;&lt;br /&gt;To learn more about Git take a look at the references below.&lt;br /&gt;&lt;br /&gt;Introduction to Git by Randal Schwartz, Youtube video (&lt;a href="http://www.youtube.com/watch?v=8dhZ9BXQgc4"&gt;http://www.youtube.com/watch?v=8dhZ9BXQgc4&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;Video podcasts about how to use git. Gitcasts (&lt;a href="http://gitcasts.com/"&gt;http://gitcasts.com/&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Homepage of Git (&lt;a href="http://git-scm.com/"&gt;http://git-scm.com/&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Windows client for Git: gitextensions (&lt;a href="http://gitextensions.sourceforge.net/"&gt;http://gitextensions.sourceforge.net/&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;A gentle git introduction&lt;br /&gt;&lt;a href="https://we.riseup.net/debian/git-development-howto"&gt;https://we.riseup.net/debian/git-development-howto&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Using git without feeling stupid (part 1)&lt;br /&gt;&lt;a href="http://smalltalk.gnu.org/blog/bonzinip/using-git-without-feeling-stupid-part-1"&gt;http://smalltalk.gnu.org/blog/bonzinip/using-git-without-feeling-stupid-part-1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Using git without feeling stupid (part 2)&lt;br /&gt;&lt;a href="http://smalltalk.gnu.org/blog/bonzinip/using-git-without-feeling-stupid-part-2"&gt;http://smalltalk.gnu.org/blog/bonzinip/using-git-without-feeling-stupid-part-2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Good luck with your version control!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2392903331459266840-4205315716561354063?l=midtiby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/4205315716561354063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2392903331459266840&amp;postID=4205315716561354063' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/4205315716561354063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/4205315716561354063'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/2009/11/tools-for-version-control.html' title='Tools for version control'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2392903331459266840.post-4676153884467517870</id><published>2009-02-05T03:05:00.000-08:00</published><updated>2009-02-05T03:13:48.194-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tikz'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='pgf'/><title type='text'>Todonotes</title><content type='html'>In July the first version of the todonotes package were uploaded to the CTAN network [1]. After that I have received several requests for improvements, some have already been addressed and others are waiting to get time for implementing. To secure the source of the package I have started to use the github.com service, which allow open source projects to get free source code version control using the git software. The repository can be found at [2].&lt;br /&gt;&lt;br /&gt;Best&lt;br /&gt;Henrik&lt;br /&gt;&lt;br /&gt;[1] http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/todonotes.html&lt;br /&gt;[2] http://github.com/henrikmidtiby/todonotes/tree/master&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2392903331459266840-4676153884467517870?l=midtiby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/4676153884467517870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2392903331459266840&amp;postID=4676153884467517870' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/4676153884467517870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/4676153884467517870'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/2009/02/todonotes.html' title='Todonotes'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2392903331459266840.post-2716807687830905822</id><published>2008-07-28T03:57:00.000-07:00</published><updated>2008-12-12T00:38:28.348-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tikz'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='pgf'/><title type='text'>Todonotes version 2008-07-28</title><content type='html'>The todonotes package has now hit CTAN (the Comprehensive TeX Archive Network) and can be found at &lt;a href="http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/todonotes.html"&gt;http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/todonotes.html&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_N_XJPWiIQ2M/SI2tztHQs-I/AAAAAAAAAAk/xA503qD1vVE/s1600-h/doc.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://2.bp.blogspot.com/_N_XJPWiIQ2M/SI2tztHQs-I/AAAAAAAAAAk/xA503qD1vVE/s320/doc.png" alt="" id="BLOGGER_PHOTO_ID_5228025846241997794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Recently I have received some ideas for improvements (thanks a lot!!!) of my todonotes package for latex. This has lead to a new version of the todonotes package with an improved handling of options (now for both the package and the individual todo command.)&lt;br /&gt;&lt;br /&gt;The todonotes package lets you insert small notes in your latex document by the \todo{} command.&lt;br /&gt;&lt;br /&gt;Options to the package:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;disable&lt;/li&gt;Make it possible to disable the functionality of the package. If this option is given, the&lt;br /&gt;commands \todo{} and \listoftodos are defined as commands with no effect. (But you can still&lt;br /&gt;compile you document with these commands).&lt;br /&gt;&lt;br /&gt;&lt;li&gt;colorinlistoftodos&lt;/li&gt;Show small boxes in the list of todos with the color of the inserted todonotes.&lt;br /&gt;&lt;br /&gt;&lt;li&gt;dvistyle&lt;/li&gt;The default style behaves bad when compiled with latex (some text placement problems). The dvistyle option, changes the visual behavior to avoid this text placement problem.&lt;br /&gt;&lt;br /&gt;&lt;li&gt;color&lt;/li&gt;Sets the default background color of the todonotes&lt;br /&gt;&lt;br /&gt;&lt;li&gt;bordercolor&lt;/li&gt;Sets the border color of the todonotes&lt;br /&gt;&lt;br /&gt;&lt;li&gt;textwidth&lt;/li&gt;Sets the width of the todonotes&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;Options to the todo command:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;color&lt;/li&gt;Sets the background color of the todonote&lt;br /&gt;&lt;br /&gt;&lt;li&gt;size&lt;/li&gt;Changes the relative size of the todonote&lt;br /&gt;&lt;br /&gt;&lt;li&gt;list / nolist (default: list)&lt;/li&gt;Toggles whether the todo item is shown in the list of todos&lt;br /&gt;&lt;br /&gt;&lt;li&gt;inline / noinline (default: noinline)&lt;/li&gt;Toggles inline view of the todonote&lt;br /&gt;&lt;br /&gt;&lt;li&gt;line / noline (default: line)&lt;/li&gt;Toggles a line that connects the insertion point of the todonote with the note in the margin&lt;/ul&gt;&lt;br /&gt;Known issues:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Rendering differences between pdflatex and latex for items in the list of todos (latex do not break long lines, pdflatex does)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Source code and examples&lt;br /&gt;todonotes.sty : &lt;a href="http://pastebin.com/f749c073f"&gt;http://pastebin.com/f749c073f (updated file)&lt;/a&gt; &lt;a href="http://pastebin.com/f6a477b17"&gt;http://pastebin.com/f6a477b17 (original posted file)&lt;/a&gt;&lt;br /&gt;exampledocument.tex : &lt;a href="http://pastebin.com/f56db437a"&gt;http://pastebin.com/f56db437a&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2392903331459266840-2716807687830905822?l=midtiby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/2716807687830905822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2392903331459266840&amp;postID=2716807687830905822' title='47 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/2716807687830905822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/2716807687830905822'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/2008/07/todonotes-version-2008-07-28.html' title='Todonotes version 2008-07-28'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_N_XJPWiIQ2M/SI2tztHQs-I/AAAAAAAAAAk/xA503qD1vVE/s72-c/doc.png' height='72' width='72'/><thr:total>47</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2392903331459266840.post-948592098202954960</id><published>2008-05-15T11:57:00.000-07:00</published><updated>2008-12-12T00:38:28.484-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tikz'/><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='pgf'/><title type='text'>Updated todonotes package</title><content type='html'>The package has been updated, find the new version at &lt;a href="http://midtiby.blogspot.com/2008/07/todonotes-version-2008-07-28.html"&gt;http://midtiby.blogspot.com/2008/07/todonotes-version-2008-07-28.html&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_N_XJPWiIQ2M/SCyRHAniPUI/AAAAAAAAAAc/a55kmBRVlaw/s1600-h/20080515todonotes.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://1.bp.blogspot.com/_N_XJPWiIQ2M/SCyRHAniPUI/AAAAAAAAAAc/a55kmBRVlaw/s320/20080515todonotes.png" alt="" id="BLOGGER_PHOTO_ID_5200691219317013826" border="0" /&gt;&lt;/a&gt;In response to a request for making an option for the text width of the todonote, I have updated the todonotes package, including defining some additional options.&lt;br /&gt;&lt;br /&gt;The package makes the following commands available&lt;ul&gt;&lt;li&gt;\todo{}&lt;/li&gt;&lt;li&gt;\listoftodos&lt;/li&gt;&lt;/ul&gt;The options the package understands are the following:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;disable, if given the available commands have no effect&lt;/li&gt;&lt;li&gt;dvistyle, another layout of the todonotes which properly places the todo notes text when the document is compiled with latex and not pdflatex&lt;/li&gt;&lt;li&gt;color=value, sets the background color of the notes to value. Value is a color defined using the xcolor package&lt;/li&gt;&lt;li&gt;bordercolor=value, sets the border color of the notes to value&lt;/li&gt;&lt;li&gt;textwidth=value, sets the total width of the todonote to value. Value is a length.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;I hope you'll find this useful. If you notice some rough edges / bugs let me hear, I might be able to get rid of them then.&lt;br /&gt;&lt;br /&gt;Best&lt;br /&gt;Henrik&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The source code of the package is given below, and below of that the code for the sample document (the image at the top) is given.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;% todonotes.sty&lt;br /&gt;% ====================&lt;br /&gt;% Part: Identification&lt;br /&gt;% ====================&lt;br /&gt;\ProvidesPackage{todonotes}[2008/05/15]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;% ==============================&lt;br /&gt;% Part: The package loading part&lt;br /&gt;% ==============================&lt;br /&gt;% Loads the packages that todonotes depends on.&lt;br /&gt;\RequirePackage{ifthen}&lt;br /&gt;\RequirePackage{xkeyval}&lt;br /&gt;\RequirePackage{hyperref}&lt;br /&gt;\RequirePackage{tikz}&lt;br /&gt;\RequirePackage{calc}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;% ==================&lt;br /&gt;% Part: Initial code&lt;br /&gt;% ==================&lt;br /&gt;% Here the default values are set&lt;br /&gt;\newcommand{\@backgroundcolor}{orange}&lt;br /&gt;\newcommand{\@bordercolor}{black}&lt;br /&gt;\newcommand{\@textwidth}{3cm}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;% ================================&lt;br /&gt;% Part: The declaration of options&lt;br /&gt;% ================================&lt;br /&gt;% In this part the various options for&lt;br /&gt;% the package are defined.&lt;br /&gt;&lt;br /&gt;% Make it possible to disable the functionality&lt;br /&gt;% of the package. If this option is given, the&lt;br /&gt;% commands \todo{} and \listoftodos are defined&lt;br /&gt;% as commands with no effect. (But you can still&lt;br /&gt;% compile you document with these commands).&lt;br /&gt;\newif{\ifdisabled}&lt;br /&gt;\DeclareOptionX{disable}{\disabledtrue}&lt;br /&gt;&lt;br /&gt;% The default style behaves bad when compiled&lt;br /&gt;% with latex (some text placement problems).&lt;br /&gt;% The dvistyle option, changes the visual behavior&lt;br /&gt;% to avoid this text placement problem.&lt;br /&gt;\newif{\ifdviStyle}&lt;br /&gt;\DeclareOptionX{dvistyle}{\dviStyletrue}&lt;br /&gt;&lt;br /&gt;% Make the background color of the notes as&lt;br /&gt;% an option.&lt;br /&gt;\define@key{todonotes.sty}%&lt;br /&gt;{color}{\renewcommand{\@backgroundcolor}{#1}}&lt;br /&gt;&lt;br /&gt;% Make the color of the notes box color as&lt;br /&gt;% an option.&lt;br /&gt;\define@key{todonotes.sty}%&lt;br /&gt;{bordercolor}{\renewcommand{\@bordercolor}{#1}}&lt;br /&gt;&lt;br /&gt;% Make the text width as an option.&lt;br /&gt;\define@key{todonotes.sty}%&lt;br /&gt;{textwidth}{\renewcommand{\@textwidth}{#1}}&lt;br /&gt;&lt;br /&gt;% Finally process the given options.&lt;br /&gt;\ProcessOptionsX&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;% ========================&lt;br /&gt;% Part: The main code part&lt;br /&gt;% ========================&lt;br /&gt;\ifdisabled&lt;br /&gt;% If the option "disable" was passed to the package&lt;br /&gt;% define two empty commands.&lt;br /&gt;\newcommand{\listoftodos}{}&lt;br /&gt;\newcommand{\todo}{}&lt;br /&gt;\else&lt;br /&gt;% Define the list of todos command&lt;br /&gt;\newcommand{\listoftodos}&lt;br /&gt;{\section*{Todo list} \@starttoc{tdo}}&lt;br /&gt;\newcommand{\l@todo}&lt;br /&gt;{\@dottedtocline{1}{0em}{2.3em}}&lt;br /&gt;&lt;br /&gt;% Define styles used by the todo command&lt;br /&gt;\tikzstyle{notestyle} = [&lt;br /&gt;draw=\@bordercolor,&lt;br /&gt;line width=0.5pt,&lt;br /&gt; fill=\@backgroundcolor,&lt;br /&gt;text width = \@textwidth - 1.6 ex - 1pt,&lt;br /&gt;inner sep = 0.8 ex]&lt;br /&gt;\tikzstyle{notestyleleft} = [notestyle]&lt;br /&gt;\tikzstyle{connectstyle} = [&lt;br /&gt;draw = \@backgroundcolor,&lt;br /&gt;thick]&lt;br /&gt;&lt;br /&gt;% Define the todo command&lt;br /&gt;\newcommand{\todo}[1]{%&lt;br /&gt;% Add to todo list&lt;br /&gt;\addcontentsline{tdo}{todo}{\protect{#1}}%&lt;br /&gt;%&lt;br /&gt;% Remember where we are&lt;br /&gt;\begin{tikzpicture}[remember picture, baseline=-0.75ex]%&lt;br /&gt;\node [coordinate] (inText) {};%&lt;br /&gt;\end{tikzpicture}%&lt;br /&gt;%&lt;br /&gt;% Make the margin par&lt;br /&gt;\marginpar {% Draw note in right margin&lt;br /&gt;\ifdviStyle%&lt;br /&gt;% Using dviStyle&lt;br /&gt;\tikz[remember picture] \draw node[notestyle] {}; \\ %&lt;br /&gt;\begin{minipage}{\@textwidth}%&lt;br /&gt;#1%&lt;br /&gt;\end{minipage} \\%&lt;br /&gt;\tikz[remember picture] \draw node[notestyle] (inNote) {};%&lt;br /&gt;\begin{tikzpicture}[remember picture, overlay]%&lt;br /&gt;\draw[connectstyle]%&lt;br /&gt; ([yshift=-0.2cm] inText)%&lt;br /&gt;  -| ([xshift=-0.2cm] inNote.west)%&lt;br /&gt;  -| (inNote.west);%&lt;br /&gt;\end{tikzpicture}%&lt;br /&gt;\else%&lt;br /&gt;% Using normal style (non dviStyle)&lt;br /&gt;\tikz[remember picture] \draw node[notestyle] (inNote) {#1};%&lt;br /&gt;\begin{tikzpicture}[remember picture, overlay]%&lt;br /&gt;\draw[connectstyle]%&lt;br /&gt; ([yshift=-0.2cm] inText)%&lt;br /&gt;  -| ([xshift=-0.2cm] inNote.west)%&lt;br /&gt;  -| (inNote.west);%&lt;br /&gt;\end{tikzpicture}%&lt;br /&gt;\fi % Ending \ifdviStyle&lt;br /&gt;}%&lt;br /&gt;}%&lt;br /&gt;\fi % Ending \ifdisabled&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And the code for the sample document&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;\documentclass{article}&lt;br /&gt;\usepackage[colorlinks]{hyperref}&lt;br /&gt;\usepackage{todonotes}&lt;br /&gt;&lt;br /&gt;\begin{document}&lt;br /&gt;&lt;br /&gt;\listoftodos&lt;br /&gt;&lt;br /&gt;\section{The text}&lt;br /&gt;&lt;br /&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam quam&lt;br /&gt;quam, sodales vel, iaculis at, varius fringilla, urna. Cras urna.&lt;br /&gt;\todo{A simple ting to do.}%&lt;br /&gt;Morbi lorem eros, ullam\-corper id, egestas ac, interdum eu, nunc. Nam&lt;br /&gt;enim eros, sodales at, dapibus eget, semper nec, augue. Morbi orci&lt;br /&gt;\todo{Something much more difficult to explain. So it takes several&lt;br /&gt;lines in the todo note and in the list of to do's.}%&lt;br /&gt;orci, tincidunt ac, pellentesque vel, facilisis et, dolor. Nunc nec&lt;br /&gt;mauris eu felis fringilla dictum. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Donec ornare, mauris in posuere&lt;br /&gt;faucibus, lacus enim luctus nibh, vitae vestibulum sapien purus id&lt;br /&gt;nisl. Morbi non dolor non odio ornare faucibus. Proin in purus.&lt;br /&gt;\todo{There is still something to update in this document.}%&lt;br /&gt;Vivamus nulla sem, eleifend ac, lacinia suscipit, facilisis a, est.&lt;br /&gt;Mauris vitae purus. Donec ullamcorper, magna vitae sodales semper,&lt;br /&gt;elit diam adipiscing neque, quis mattis ante orci a orci. Mauris eu&lt;br /&gt;mauris non arcu pharetra euismod. Duis non elit. Etiam faucibus,&lt;br /&gt;mauris quis mollis lobortis, mauris sem feugiat dolor, sit amet&lt;br /&gt;porta libero lectus non erat. Donec cursus pede in tellus. Fusce&lt;br /&gt;egestas. Aenean ut nisl.&lt;br /&gt;&lt;br /&gt;Fusce eu arcu. Aliquam ultrices, turpis in facilisis lobortis, enim&lt;br /&gt;massa bibendum ante, id blandit purus sapien non eros. Aenean&lt;br /&gt;sodales ante eu magna. Proin vestibulum dolor auctor erat. Maecenas&lt;br /&gt;at neque. Fusce ante odio, sollicitudin eget, cursus condimentum,&lt;br /&gt;egestas in, urna. &lt;br /&gt;&lt;br /&gt;Suspendisse rutrum eros. Phasellus suscipit velit&lt;br /&gt;non nunc. Donec sollicitudin erat non dui. Aenean nec turpis. Aenean&lt;br /&gt;pellentesque porta ipsum. Mauris eget nulla eu nunc pellentesque&lt;br /&gt;sollicitudin. Pellentesque lacus. Fusce vehicula orci quis libero.&lt;br /&gt;Vivamus consequat. Cum sociis natoque penatibus et magnis dis&lt;br /&gt;parturient montes, nascetur ridiculus mus. Cras hendrerit elit. In&lt;br /&gt;hac habitasse platea dictumst. Phasellus rhoncus massa non ipsum.&lt;br /&gt;\end{document}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2392903331459266840-948592098202954960?l=midtiby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/948592098202954960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2392903331459266840&amp;postID=948592098202954960' title='39 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/948592098202954960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/948592098202954960'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/2008/05/updated-todonotes-package.html' title='Updated todonotes package'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_N_XJPWiIQ2M/SCyRHAniPUI/AAAAAAAAAAc/a55kmBRVlaw/s72-c/20080515todonotes.png' height='72' width='72'/><thr:total>39</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2392903331459266840.post-2574995880213954101</id><published>2008-04-24T04:36:00.000-07:00</published><updated>2008-04-30T01:49:03.585-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><title type='text'>Introduktionkursus til LaTeX</title><content type='html'>Den 30. april skal jeg afholde et introduktions kursus i latex for IDA på Ingeniør Højskolen i København. Her på denne side vil jeg samle henvisninger til de materialer der skal benyttes under kurset.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Forskellige ressourcer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Latex skabeloner&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Min nuværende latex skabelon, hent den &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/latexSkabelon.zip"&gt;her&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;En ældre skabelon, hent den &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/latin1template.zip"&gt;her&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;En ældre skabelon til MAC, hent den &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/latin1templateMAC.zip"&gt;her&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Latex referencer&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The not so short introduction to latex, &lt;a href="http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf"&gt;link&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Short math guide for latex, &lt;a href="ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf"&gt;link&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The comprehensive latex symbol list, &lt;a href="http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf"&gt;link&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Slides til introduktionskurset&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Slides benyttet til kurset, hent det &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/latexIntroCourse.pdf"&gt;her&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Kildekoden til de benyttede slides, hent det &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/latexIntroCourse.zip"&gt;her&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Forskellige mindre latex opgaver&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Skrivning af matematik, hent det &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/opg01.pdf"&gt;her&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Overskrifter og indholdsfortegnelse, hent det &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/opg02.pdf"&gt;her&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Referencer og litteraturliste, hent det &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/opg03.pdf"&gt;her&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Lister i latex, hent det &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/opg04.pdf"&gt;her&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Spalter og figurer inde i teksten, hent det &lt;a href="http://imada.sdu.dk/%7Emidtiby/latex/opg05.pdf"&gt;her&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Windows&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installing latex on windows&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download MikTeX from &lt;a href="http://miktex.org/2.7/Setup.aspx"&gt;here&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Run the installer.&lt;/li&gt;&lt;li&gt;Start -&gt; All programs -&gt; MikTeX -&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Installing a latex editor on windows&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This requires that latex (eg. MikTeX) has been installed.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download TexnicCenter from: &lt;a href="http://www.toolscenter.org/downloads.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Run the installer.&lt;/li&gt;&lt;li&gt;Set path to your MikTeX installation (something like "C:\Programmer\MiKTeX 2.6\miktex\bin\")&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select output profile: "LaTeX =&gt; PDF"&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Extract my template document and open the file doc\project.tex in TexnicCenter and try to compile it with pdflatex.&lt;/li&gt;&lt;li&gt;During the compilation miktex will ask for permission to install some required packages (fancyhdr, listings, caption, subfig, pgf, xcolor, xkeyval)&lt;/li&gt;&lt;li&gt;In case of trouble install the missing packages via: Start -&gt; All program -&gt; MikTeX 2.6 -&gt; Browse packages&lt;/li&gt;&lt;li&gt;Your document should now have been compiled, examine the generated .pdf file.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installing latex on linux (ubuntu)&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt; Install the packages: texlive&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Installing a latex editor on linux (ubuntu)&lt;br /&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;Install kile&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2392903331459266840-2574995880213954101?l=midtiby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/2574995880213954101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2392903331459266840&amp;postID=2574995880213954101' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/2574995880213954101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/2574995880213954101'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/2008/04/introduktionkursus-til-latex.html' title='Introduktionkursus til LaTeX'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2392903331459266840.post-6042671667255248360</id><published>2008-04-17T07:49:00.000-07:00</published><updated>2008-07-28T04:55:33.465-07:00</updated><title type='text'>Todo notes in Latex as a package</title><content type='html'>The package has been updated, find the new version at &lt;a href="http://midtiby.blogspot.com/2008/07/todonotes-version-2008-07-28.html"&gt;http://midtiby.blogspot.com/2008/07/todonotes-version-2008-07-28.html&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I have transformed the previously described script into a latex package (pheww, this is my first package, so there may exists some rough edges ...). The source for the package is given below.&lt;br /&gt;&lt;br /&gt;The package currently takes three arguments&lt;br /&gt;* disable = [true, false] if false the package will only define empty commands, so no output from the embedded todo commands are generated, but you document will compile&lt;br /&gt;* color = [color values accepted by pgf] Defines the background color of the todonotes and the line connecting the todo note with the place it was inserted in the test.&lt;br /&gt;* bordercolor = [color values accepted by pgf] Defines the border color of the todonotes.&lt;br /&gt;&lt;br /&gt;I use the following line to import the package to a document.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;\usepackage[&lt;br /&gt;disable=false,&lt;br /&gt;color=orange!80,&lt;br /&gt;bordercolor=black]&lt;br /&gt;{todonotes}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I hope that someone will find this usefull.&lt;br /&gt;&lt;br /&gt;Henrik&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;======= begin: todonotes.sty ========&lt;br /&gt;% Part: Identification&lt;br /&gt;\ProvidesPackage{todonotes}&lt;br /&gt;&lt;br /&gt;% Part: The package loading part&lt;br /&gt;\RequirePackage{xkeyval}&lt;br /&gt;\RequirePackage{hyperref}&lt;br /&gt;\RequirePackage{tikz}&lt;br /&gt;&lt;br /&gt;% Part: Initial code&lt;br /&gt;\newcommand{\@backgroundcolor}{orange}&lt;br /&gt;\newcommand{\@bordercolor}{black}&lt;br /&gt;&lt;br /&gt;% Part: The declaration of options&lt;br /&gt;\define@boolkey{todonotes.sty}%&lt;br /&gt; [todo]{disable}{}&lt;br /&gt;\define@key{todonotes.sty}%&lt;br /&gt; {color}{\renewcommand{\@backgroundcolor}{#1}}&lt;br /&gt;\define@key{todonotes.sty}%&lt;br /&gt; {bordercolor}{\renewcommand{\@bordercolor}{#1}}&lt;br /&gt;\ProcessOptionsX&lt;br /&gt;&lt;br /&gt;% Part: The main code part&lt;br /&gt;\iftododisable&lt;br /&gt;\newcommand{\listoftodos}{}&lt;br /&gt;\newcommand{\todo}{}&lt;br /&gt;\else&lt;br /&gt;\newcommand{\listoftodos}&lt;br /&gt; {\section*{Todo list} \@starttoc{tdo}}&lt;br /&gt;\newcommand{\l@todo}&lt;br /&gt; {\@dottedtocline{1}{0em}{2.3em}}&lt;br /&gt;&lt;br /&gt;\tikzstyle{notestyle} = [draw=\@bordercolor,&lt;br /&gt;   fill=\@backgroundcolor, text width = 3cm]&lt;br /&gt;\tikzstyle{notestyleleft} = [notestyle]&lt;br /&gt;\tikzstyle{connectstyle} = [draw = \@backgroundcolor, thick]&lt;br /&gt;&lt;br /&gt;\newcommand{\todo}[1]{%&lt;br /&gt;% Add to todo list&lt;br /&gt;\addcontentsline{tdo}{todo}{\protect{#1}}%&lt;br /&gt;%&lt;br /&gt;% Remember where we are&lt;br /&gt;\begin{tikzpicture}[remember picture, baseline=-0.75ex]%&lt;br /&gt; \node [coordinate] (inText) {};%&lt;br /&gt;\end{tikzpicture}%&lt;br /&gt;%&lt;br /&gt;% Make the margin par&lt;br /&gt;\marginpar {% Draw note in right margin&lt;br /&gt; \tikz[remember picture] \draw node[notestyle] (inNote) {#1};%&lt;br /&gt; \begin{tikzpicture}[remember picture, overlay]%&lt;br /&gt;  \draw[connectstyle]&lt;br /&gt;   ([yshift=-0.2cm] inText)&lt;br /&gt;    -| ([xshift=-0.2cm] inNote.west)&lt;br /&gt;    -| (inNote.west);&lt;br /&gt; \end{tikzpicture}%&lt;br /&gt;}%&lt;br /&gt;}%&lt;br /&gt;\fi&lt;br /&gt;======= end: todonotes.sty ========&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2392903331459266840-6042671667255248360?l=midtiby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/6042671667255248360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2392903331459266840&amp;postID=6042671667255248360' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/6042671667255248360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/6042671667255248360'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/2008/04/todo-notes-in-latex-as-package.html' title='Todo notes in Latex as a package'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2392903331459266840.post-4264730326428819176</id><published>2007-10-07T08:27:00.001-07:00</published><updated>2007-10-13T00:07:31.953-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><title type='text'>Introduction to LaTeX</title><content type='html'>Thursday october the 11th, I will be teaching at an introductory course in latex. The course will be held at University of Southern Denmark at the campus in Odense. This blogpost will be used to gather information which is relevant for this course.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Windows&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installing latex on windows&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download MikTeX from &lt;a href="http://miktex.org/2.6/Setup.aspx"&gt;here&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Run the installer.&lt;/li&gt;&lt;li&gt;Start -&gt; All programs -&gt; MikTeX -&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Installing a latex editor on windows&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This requires that latex (eg. MikTeX) has been installed.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download TexnicCenter from: &lt;a href="http://www.toolscenter.org/downloads.html"&gt;here&lt;/a&gt; (wrong link given during the course &lt;a href="http://www.xm1math.net/texmaker/download.html"&gt;here&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;Run the installer.&lt;/li&gt;&lt;li&gt;Set path to your MikTeX installation (something like "C:\Programmer\MiKTeX 2.6\miktex\bin\")&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select output profile: "LaTeX =&gt; PDF"&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Extract my template document and open the file doc\project.tex in Texmaker and try to compile it with pdflatex.&lt;/li&gt;&lt;li&gt;During the compilation miktex will ask for permission to install some required packages (fancyhdr, listings, caption, subfig, pgf, xcolor, xkeyval)&lt;/li&gt;&lt;li&gt;In case of trouble install the missing packages via: Start -&gt; All program -&gt; MikTeX 2.6 -&gt; Browse packages&lt;/li&gt;&lt;li&gt;Your document should now have been compiled, examine the generated .pdf file.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-size:180%;"&gt;Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installing latex on linux (ubuntu)&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt; Install the packages: texlive&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Installing a latex editor on linux (ubuntu)&lt;br /&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;Install kile&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-size:180%;"&gt;Other ressources&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Latex templates&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;My current latex template can be found &lt;a href="http://imada.sdu.dk/%7Emidtiby/latin1template.zip"&gt;here&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;A Mac edition of the template, grab it &lt;a href="http://imada.sdu.dk/%7Emidtiby/latin1templateMAC.zip"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Latex references&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The not so short introduction to latex, &lt;a href="http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf"&gt;link&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The comprehensive latex symbol list, &lt;a href="http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf"&gt;link&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Short math guide for latex, &lt;a href="ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf"&gt;link&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Introduction presentation&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;My introduction to LaTeX, grab it &lt;a href="http://imada.sdu.dk/%7Emidtiby/latexIntroCourse.pdf"&gt;here&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Source code for my introduction, &lt;a href="http://imada.sdu.dk/%7Emidtiby/latexIntroCourse.zip"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2392903331459266840-4264730326428819176?l=midtiby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/4264730326428819176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2392903331459266840&amp;postID=4264730326428819176' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/4264730326428819176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/4264730326428819176'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/2007/10/introduction-to-latex.html' title='Introduction to LaTeX'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2392903331459266840.post-2288986776766212610</id><published>2007-09-14T00:02:00.000-07:00</published><updated>2008-12-12T00:38:28.636-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='pgf'/><title type='text'>Todo notes in Latex</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_N_XJPWiIQ2M/RupLPI9XMMI/AAAAAAAAAAU/TWeffChCM6c/s1600-h/example2.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://4.bp.blogspot.com/_N_XJPWiIQ2M/RupLPI9XMMI/AAAAAAAAAAU/TWeffChCM6c/s320/example2.png" alt="" id="BLOGGER_PHOTO_ID_5109979450680225986" border="0" /&gt;&lt;/a&gt;An updated version of the code below can be found at &lt;a href="http://midtiby.blogspot.com/2008/05/updated-todonotes-package.html"&gt;http://midtiby.blogspot.com/2008/05/updated-todonotes-package.html&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This is a description of how to place todo notes in your latex document, and how to collect the content of these in a structure like a table of contents (eg. a list of things todo)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A year and a half ago, when I wrote my bachelor report, I had a need to mark needed changes in the margin of a latex document. I wanted to place a note in the margin with a command like&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  \todo{Something that has to be done}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The solution was to use the marginpar command, in the definition below&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  \newcommand{\todo}[1]{\marginpar{#1}}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Later this approach was improved by generating a list of these todo items. The behavior of \todo was now to print something in the margin and add an item in the todolist.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  \newcommand{\todo}[1]{&lt;br /&gt;    \addcontentsline{tdo}{todo}{\protect{#1}}&lt;br /&gt;    \marginpar{#1}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Additionally I defined a command to generate the list of todos.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  \makeatletter \newcommand \listoftodos{\section*{Todo list} \@starttoc{tdo}}&lt;br /&gt;  \newcommand\l@todo[2]&lt;br /&gt;    {\par\noindent \textit{#2}, \parbox{10cm}{#1}\par} \makeatother&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now the list of todo's could be inserted by using the command&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  \listoftodos&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;For some time ago, I began reading about the portable graphics format (PGF) and wanted to tinker a bit with it. PGF is a great tool for generating graphics for latex documents (you can find a lot of examples at &lt;a href="http://www.fauskes.net/pgftikzexamples/"&gt;www.fauskes.net/pgftikzexamples/&lt;/a&gt;.) Especially the possibility of overlaying your existing text with graphics were interesting.&lt;br /&gt;&lt;br /&gt;One of the results is this improved todo note code for latex.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  \newcommand{\todo}[1]{&lt;br /&gt;  % Add to todo list&lt;br /&gt;  \addcontentsline{tdo}{todo}{\protect{#1}}&lt;br /&gt;  %&lt;br /&gt;  \begin{tikzpicture}[remember picture, baseline=-0.75ex]&lt;br /&gt;      \node [coordinate] (inText) {};&lt;br /&gt;  \end{tikzpicture}&lt;br /&gt;  %&lt;br /&gt;  % Make the margin par&lt;br /&gt;  \marginpar{&lt;br /&gt;      \begin{tikzpicture}[remember picture]&lt;br /&gt;          \definecolor{orange}{rgb}{1,0.5,0}&lt;br /&gt;   &lt;br /&gt;          \draw node[draw=black, fill=orange, text width = 3cm] (inNote)&lt;br /&gt;                   {#1};&lt;br /&gt;      \end{tikzpicture}&lt;br /&gt;  }&lt;br /&gt;  %&lt;br /&gt;  \begin{tikzpicture}[remember picture, overlay]&lt;br /&gt;      \draw[draw = orange, thick]&lt;br /&gt;          ([yshift=-0.2cm] inText)&lt;br /&gt;              -| ([xshift=-0.2cm] inNote.west)&lt;br /&gt;              -| (inNote.west);&lt;br /&gt;  \end{tikzpicture}&lt;br /&gt;  %&lt;br /&gt;  }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Currently there are a minor glitch of the code, at the location of the \todo command latex inserts a large amount of space, which I would like to avoid.&lt;br /&gt;&lt;br /&gt;I use this piece of code myself, but if any of you would like to use it you should be welcome. Comments or ideas for improving the code are of cause welcome&lt;br /&gt;&lt;br /&gt;Henrik&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2392903331459266840-2288986776766212610?l=midtiby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://midtiby.blogspot.com/feeds/2288986776766212610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2392903331459266840&amp;postID=2288986776766212610' title='23 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/2288986776766212610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2392903331459266840/posts/default/2288986776766212610'/><link rel='alternate' type='text/html' href='http://midtiby.blogspot.com/2007/09/todo-notes-in-latex.html' title='Todo notes in Latex'/><author><name>Henrik Skov Midtiby</name><uri>http://www.blogger.com/profile/01510646454613322131</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_N_XJPWiIQ2M/RupLPI9XMMI/AAAAAAAAAAU/TWeffChCM6c/s72-c/example2.png' height='72' width='72'/><thr:total>23</thr:total></entry></feed>
