This is my personal home page. If you are looking for the Cracklock utility go to this section. You can download other freewares that I have developed on this page, and if you want to know about my PhD research then go to this page.
A few years ago I spent some time looking for the best text editor for Windows. After testing pretty much all the editors available at the time (Notepad2, Notepad++, UltraEdit, UltraPad, TextPad …) I finally reckoned that the most powerful and versatile one was Notepad++. I have been using it since then and I regularly recommend it to other people.
I could not convince my father to ditch TextPad though because of its superior text sorting feature. It's true that the standard sorting plugin shipping with Notepad++ is pretty basic. It only lets you sort the file at a given column and by lexicographical order only.
TextPad on the other hand lets you define a sort criterion based on up to three user-defined columns. Also for each column the comparison can be either numerical or lexicographical.
The thing is that I am very stubborn: Notepad++ *is* the best editor for Windows, and so to prove it to my father there were no way round it: I had to implement the missing sorting features for Notepad++!
Because Notepad++ is open-source I was able to start from existing code. It thus took less than a day to implement the missing feature as a plugin! Of course it had to be superior than TextPad's implementation. Hence it lets you define an unlimited number of columns, unlike TexPad which is limited to only three.
I figured out that my father may not be the only one interested by the plugin so here you go: You can download the plugin including sources at
To install it just copy the plugin DLL (under 'Unicode Release' in the zip file) to the Notepad++ plugin directory (%ProgramFiles(x86)%\Notepad++\plugins if your Windows is 64bit; %ProgramFiles%\Notepad++\plugins if your Windows is 32bit).
I take the opportunity to wish you a great year 2011 and hope that all your problems will be sorted in whichever order you prefer be it lexicographical or numerical!
[ 24 comments ] ( 8722 views ) | permalink | ( 3 / 4285 )
The script takes a list of folders as parameters. For every TeX file found it calls texcount.pl to counts the number of words in the document. The total number of words is then saved to a CSV file and two graphs are plotted: one using GNU plot and the other one using the Google Visualization API.
I did not have this script at the time of my studies, but since I have been using Subversion to backup and manage revisions of my writings throughout my studies I was able to retrieve past revisions of my work and generate a few word count measurements. The graph below, generated using the PowerShell script, shows the evolution of word count in my D.Phil thesis.
The graph reveals few facts to the reader. For instance that I was not very productive during the first year... But it also shows that I started writing up early on (thanks to my supervisor's advice). Some doctoral students prefer to postpone writing up till the last few months. I am glad I did not adopt this strategy; it made the whole writing process very smooth and eliminate a lot of stress towards the end.
The graph also shows two particularly productive periods corresponding to two important milestones in the D.Phil process at Oxford: the transfer and the confirmation. The thesis reached a plateau on October 5th 2008, the date when I submitted the thesis to the examiners. There were subsequent minor modifications requested by the examiners after the viva, as well as some cosmetic changes for the camera-ready version sent to the Bodleian.
Here is the script in case you are interested: twc.ps1. I suggest you to use it to monitor your progress on your writings by setting it as a daily job under the Windows Task Scheduler.
The usage syntax is
For example the command
creates a datapoint named 'first_version' at the specified date whose value is the total number of words in TeX documents under directory c:\thesis; the CSV file and graphs are stored under c:\report.
For more examples just run the command without argument.
[ add comment ] ( 27 views ) | permalink | ( 3 / 4365 )
This command produces a file name 'mybook.synctex' which can then be used to perform PDF<->TEX synchronization. The file can be large so you can instead produce a compressed version (mybook.synctex.gz) with:
- The SyncTeX patch that I've developed is now maintained in the main development branch of SumatraPDF; it is part of the latest official release (version 0.9.3).
I will still continue to publish my own builds of SumatraPDF to my website (the executable is updated regularly even though I am not posting about it): at the moment the only difference with the official release is the presence of a dialog box to let the user configure the inverse-search command. (In the official release this is done by passing command line parameters to SumatraPDF.exe.)
- I wrote a short documentation to help you configure your favourite editors for synchronization with SumatraPDF.
- Editors configuration
- My own build of SumatraPDF
- SumatraPDF official build
- MikTeX and TeXLive
[ 13 comments ] ( 6221 views ) | permalink | ( 3 / 1482 )
pdfsync TeX package, Jérôme Laurens, has developed a new technology called SyncTex that will eventually replace pdfsync. SyncTex is directly integrated in pdftex. This has many benefits: there is no need to load a special package in your .tex document, there is no more incompatibilities with latex packages, and the synchronization is more precise. One disadvantage is that the generated synchronization file can be huge, and for that reason it has an option to zip it.
SyncTex is not yet released in current TeX distributions (TeXLive 2007), but you can install it by following these steps:
1- install the TexLive distribution
2- replace the following three files:
by pdftex.dll, pdftex.exe, and kpathsea356.dll.
3- Regenerate the format files using the setup program from the TexLive CD
Now to generate .synctex files you just need to specify the --synctex command-line argument to pdftex as follows:
Synchronizing with SumatraPDF
The author has provided a reference parser implementation for synchronization files generated by SyncTex. I have integrated it in SumatraPDF. If people are interested to test it, a binary version is available here.
I plan to commit my changes to the Sumatra code base in the coming days if I see that it works well with me.
[ 13 comments ] ( 42416 views ) | permalink | related link | ( 3.1 / 5828 )
This is the dual of the previous post: I have now implemented forward-search in SumatraPDF, i.e. the ability to go from the source .tex file to the corresponding location in the PDF. The communication between the TeX editor and SumatraPDF relies on the DDE protocol. (Most TeX editors such as WinEdt and TeXnicCenter support it.)
If you want to give it a try, the updated binary can be downloaded here.
Configuring with WinEdt
For WinEdt, I have created a macro file to do all the stuff automatically. To install it, proceed as follows:
1- Download the macro file Sumatra-Find.edt.
2- Save it in the folder:
3- Edit the file: goto line 22 and replace the string 'd:\Tools\SumatraPDF-sync.exe' by the path to your local copy of Sumatra.
4- Go to the menu 'Option\Menu setup'. Create a new macro menu somewhere (under 'Accessories' for instance) and fill the options as follows:
Requires File Filter:
That's it! Now you can just press F8 anywhere in your .tex sources files and it will automatically locate the corresponding position in the PDF.
Configuring with TeXnicCenter
To setup forward-search with TeXnicCenter proceed as follows:
1- Menu 'Build\Define output profiles...'
2- Select the profile "Latex=>PDF"
3- Select the tab 'Viewer'
4- Fill the options as follows:
Path of executable:
Forward search: select
Configuring with ntEmacs
1- Download the script file sumatra-forward.el and load it from your init.el file.
2- Make sure that you have the ddeclient tools. (It is bundled with ntemacs)
3- Press F8 in the TeX document to trigger a forward-search
Synchronization in action
Enjoy! And feel free to post a comment to let me know how it works for you.
[ 15 comments ] ( 42301 views ) | permalink | ( 2.9 / 2401 )