This blog was supposed to contain different tutorial on Fityk. However, being lazy, I decided to post here practical tips and tricks I know.
This fine evening I would like to share some skills on editing Fullprof .PCR files .
As many of Fullprof users already know, this package, thanks to enormous contribution of its authors allow us, simple users to work with x-ray and neutron powder diffraction, fairly easy. And this amazing piece of software is one of the best if you want to calculate magnetic contributions. Of course, I am a fan GSAS, as many other people do, for its intuitive interface. But current way of calculating magnetic structure in it, the command line way to enter parameters of the magnetic structure and constrains depresses me a lot. In this sense, I like Fullprof more - if you know how to write .PCR file, you get result faster.
Yes, one must really know what to write and how to write into .PCR file of Fullprof. The EdPcr program helps sometimes, but I think most people still stick to Notepad editing. Today, I would like to introduce Notepad++ and explain how, this software eases my life.
The magic work is highlighting! Yes it does highlighting. And there are other beautiful features. What I like most is the automatic check for changes made to open file from outside. With Fullprof creating .NEW files or overwriting .PCR files, the help of this feature is hard to overestimate. It is just brilliant!:)
But back to highlighting. Take a look at this picture.
You don't have to worry know about the parameter you changed, where it was, green highlighting also helps a lot in navigating.
The questing now is how to make it. First I will tell you about the highlighting, because I simply love it!
- Download Notepad++
- Install Notepad++.
- Open any Fullprof file, but clicking with right mouse button on a file and selecting 'Open with Notepad++'
- From Notepad++ program Menu select
View->User Define Dialog... and start to change things.
- First - let us save 'New Language' - new setting - please press button Save As.. as 'User', for example.
- After that select our new settings in the combobox shown.
- Go to the tab Comment & Number
- Change background color
- Select the checkbox Treat keyword as symbol and add '!' - the exclamation mark to the field below.
- Just close the dialog, go to Notepad++ Menu Language->User and Here and Now you have your highlighting which make it easier for me to navigate through the file.
- Put pattern \s*[1-2-]*[0-9][1]\.[0]+[^1-9][\s]* into the edit box. This pattern will show you first 29 simple CODEWORDS.If CODEWORDS are not simple, then \s[1-2]*[0-9][0]\.[1-9][0-9]+\s should do the trick.
- Select the check boxes Mark Line and Style found token
- Select the radio button Regular Expression
- And finally press Find all button
To find all the patterns above it is better to start searching as close to the beginning of file as possible, or starting from 'Number of refined parameters' Fullprof setting.