## How to prepare HTML files for the pool?

• The HTML files (questions+solutions) should be transfered by SFTP (you can download it here) to https://physweb.bgu.ac.il/COURSES/PHYSICS_ExercisesPool/CONTRIBUTIONS.
• Every file should contain ONE question or ONE solution and named according to the naming convention.
• Please, do not save Word files as HTML. The generated files in this cases are unreadable and contain a lot of garbage.
• NVU is a very good HTML editor...

### How to setup and use NVU?

• View -> ShowHide ->  CustomizeToolbars ->  FormatToolbar -> Add the change direction icon (for Hebrew)
• Tools -> Preferences -> General -> Uncheck "Use CSS styles instead of HTML elements and attributes"
• Tools -> Preferences -> General -> Select "Retain original source formatting"
• Tools -> Preferences -> General -> Uncheck "Save images and other associated files when saving pages"
• Tools -> Preferences -> Advanced -> Check "Don't encode '>' outside of attributes values"
• Tools -> Preferences -> Advanced -> Check "Don't encode special characters in attribute values"

### How to prepare questions?

• Look at the example.
• At the top of the question there should be a heading of the size 3 (<h3>).
• The text should be in the "Body Text" style, not "Paragraph", i.e. no '<p>' tags in the source.
• Use the jpg/gif format for pictures, but not bmp (it takes too much place...).
• The formulas should be entered using mimetex (it is very easy).
• Please, do not add extra blank lines after the heading and in the end of the file.
• Pay attention to the file naming convention.

### How to use mimetex?

You can easily have equations in your HTML file. Simply use the "insert > image" option of your HTML editor:

This will produce the following HTML tag    <img src="https://physweb.bgu.ac.il/cgi-bin/mimetex.cgi? F(a,b)=\frac{1}{b-a}\int_a^b f(x,\alpha) dx">

If you are online the browser will show       $\green F(a,b)=\frac{1}{b-a}\int_a^b f(x,\alpha) dx$
If you are offline the browser will show    F(a,b)=\frac{1}{b-a}\int_a^b f(x,\alpha) dx

Please do not forget to place a copy of your formula in the alternate text field. This helps in the case of re-editing!

Tips: You have typed the first formula. If you want to adjust its vertical positioning relative to the text goto "appearnace" in order to select the desired alignment ("in the center" looks the best). Now you have to insert a second formula. For this purpose copy the first formula; double click it; re-edit the "alternate text" field; paste what you have typed into the URL field; goto "dimensions" and click "actual size" to readjust the image size.

### How to prepare solutions?

• The solutions can be printed in the HTML format like the questions...
• Or you can scan the solution into a PDF file