Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
using_jedit [2017/06/02 03:28]
alancoelho
using_jedit [2017/06/03 02:54] (current)
alancoelho
Line 9: Line 9:
 jEdit macros allow communication between other programs and itself. For example a macro can be written to load the TOPAS technical reference. Another macro can be written to create a new TOPAS input file. After a few dozen macros the editing of INP files and the running of TOPAS becomes much easier. Here's a screen shot of jEdit with an INP file loaded. ​ jEdit macros allow communication between other programs and itself. For example a macro can be written to load the TOPAS technical reference. Another macro can be written to create a new TOPAS input file. After a few dozen macros the editing of INP files and the running of TOPAS becomes much easier. Here's a screen shot of jEdit with an INP file loaded. ​
    
-{{::j1.jpg?200|}} +{{::​j1.jpg}} ​
  
 Notice the three buttons on the top left of the screen (TA, TA-Arrow, New-INP); these are TOPAS specific buttons which has been added to jEdit; they communicate with TOPAS. First Timers should take a few minutes to go through the jEdit menus. On the left of the screen is the Plugin called XInsert. It's at present displaying an XML file that is TOPAS specific. Notice that text files read by TOPAS is shown under the Help tab. Clicking on these file names loads the file into jEdit. Example INP files can be loaded into jEdit by clicking on the example INP file name. There are over 100 examples referenced and each can be speedily run by clicking on the TA-arrow-icon,​ switching to TOPAS and then clicking in the TOPAS Run icon. Notice the three buttons on the top left of the screen (TA, TA-Arrow, New-INP); these are TOPAS specific buttons which has been added to jEdit; they communicate with TOPAS. First Timers should take a few minutes to go through the jEdit menus. On the left of the screen is the Plugin called XInsert. It's at present displaying an XML file that is TOPAS specific. Notice that text files read by TOPAS is shown under the Help tab. Clicking on these file names loads the file into jEdit. Example INP files can be loaded into jEdit by clicking on the example INP file name. There are over 100 examples referenced and each can be speedily run by clicking on the TA-arrow-icon,​ switching to TOPAS and then clicking in the TOPAS Run icon.
Line 49: Line 49:
 Key bindings can be easily changed from the menu option "​Utilities/​Global Options":​ Key bindings can be easily changed from the menu option "​Utilities/​Global Options":​
    
-{{:j9.jpg?200|}}+{{:j9.jpg}}
  
 The highlighted commands that begin with the text TA are macros written specifically for TOPAS. Suggested key bindings are: The highlighted commands that begin with the text TA are macros written specifically for TOPAS. Suggested key bindings are:
Line 76: Line 76:
 INP files can be swiftly composed using the XInsert hierarchical menus. Clicking on the items of the XInsert menus runs macros defined in the XInsert XML file (inp.insert.xml). For example, to insert an emission profile, place the cursor at the position where the emission profile is to be inserted and then click on the XInsert "​Emission profile(s)"​ entry; doing so displays the standard emission profiles as follows: INP files can be swiftly composed using the XInsert hierarchical menus. Clicking on the items of the XInsert menus runs macros defined in the XInsert XML file (inp.insert.xml). For example, to insert an emission profile, place the cursor at the position where the emission profile is to be inserted and then click on the XInsert "​Emission profile(s)"​ entry; doing so displays the standard emission profiles as follows:
    
-{{:j2.jpg?200|}}+{{:j2.jpg}}
  
 Selecting CuKa2 produces the following: Selecting CuKa2 produces the following:
  
-{{::j3.jpg?200|}} +{{::j3.jpg?1100|}} 
    
 Thus remembering the syntax of the emission profile as well as the keywords is not necessary. Thus remembering the syntax of the emission profile as well as the keywords is not necessary.
Line 90: Line 90:
 Panes are similar to windows but they do not overlap; they are very useful when viewing and working with more than one file at a time. For example, when writing an INP file, it's often useful to grab INP text from parts of other files. Here's a screen shot showing three panes with the left pane being then one that is worked on. Panes are similar to windows but they do not overlap; they are very useful when viewing and working with more than one file at a time. For example, when writing an INP file, it's often useful to grab INP text from parts of other files. Here's a screen shot showing three panes with the left pane being then one that is worked on.
  
-{{::j4.jpg?200|}} +{{::​j4.jpg}} ​
    
  
Line 98: Line 98:
 Keywords can be completed by pressing Ctrl-b. For example, typing '​vie'​ and then pressing Ctrl-b produces the following options: Keywords can be completed by pressing Ctrl-b. For example, typing '​vie'​ and then pressing Ctrl-b produces the following options:
  
-{{::j5.jpg?200|}} +{{::​j5.jpg}} ​
    
  
Line 116: Line 116:
 Note, when typing the '​cd'​ command, try pressing the tab key to complete the directory name; this saves a lot of typing. Note, it is important to learn the six DOS commands under the topic "​Command line commands to know". After '​dir'​ the screen should look like: Note, when typing the '​cd'​ command, try pressing the tab key to complete the directory name; this saves a lot of typing. Note, it is important to learn the six DOS commands under the topic "​Command line commands to know". After '​dir'​ the screen should look like:
    
-{{::j6.jpg?200|}} +{{::​j6.jpg}} ​
  
 Now create a new INP file by clicking on the New-INP icon and copy the file-lines from the Console to the new file. Column select the text to the left of the file names; ie. Now create a new INP file by clicking on the New-INP icon and copy the file-lines from the Console to the new file. Column select the text to the left of the file names; ie.
  
-{{::j7.jpg?200|}} +{{::​j7.jpg}} ​
    
 Press the delete key to have a list of file names only. Press the delete key to have a list of file names only.
Line 130: Line 130:
 Place jEdit and TOPAS side by side on a single screen; the following gives an idea: Place jEdit and TOPAS side by side on a single screen; the following gives an idea:
    
-{{::j8.jpg?200|}}+{{::​j8.jpg}}
  

Personal Tools