Editing Problems
All of the information below comes from experience with the new editing system
under Windows NT Workstation.
email: patsymc@tstar.net
email: patsymc@physics.utexas.edu
Getting Into the Editor
- You may have to download and install an Xterminal emulator like
EWAN.
For connection the "network address or host name" is
hwedit.ph.utexas.edu and the "service port"
is Telnet.
- Download and install Adobe Acrobat's
Reader or Alladin's
GhostView/GhostScript as plugins if you choose to view the
output on the WWW. Adobe Reader is simpler to download and
install.
- Once the telnet connection to hwedit.ph.utexas.edu is
made, log in to the Unix prompt with "Edit."
- Once into the Problem Editor,
- Log in with your unique number and password.
- Identify your "erase" key (i.e., the "Backspace" or
"Delete" key).
- You should probably use the WWW for viewing results.
(Output is identical to other pdf/ps viewing in
the homework service.) The viewing plugins are
necessary here.
- Choose your editor.
- Select the type of editing you want to do and
have fun.
- Editing is done in a temporary file. You can edit a current
problem without fear of messing it up. When you finish
editing a problem, you have the option of saving your
changes in the bank or of quiting the editor without any
changes being written to the permanent bank.
The Problem File Itself
The question(s) and explanation(s) are contained in a comment
at the top of the program, and the algorithm (automatically
generated in the compilation process) in a comment at the
bottom of the program.
There are two sections we write in the problem file, each with
specific requirements:
- Question and Explanation areas (TeX coding)
- To print the value of r (and its unit of measure),
use @r
- To print the variable r, use $r$
- To print the variable pi, use $\pi$
- To print the value of pi, use $@pi$
- Other details.
To print the limit of a function, use
$\lim_{x \to 3}{f(x)}$
- To print the integral from a to be of a function
f(x), use $\int_a^b{f(x)}\,dx$. The \, is a spacing
command which separates the dx slightly from the
integrand.
Answer section (C coding)
Comments cannot be inserted here.
The correct unit of measure should be appended to the
end of the correct answer designation in a comment.
You cannot define the same variable twice.
Hints and more details.
To raise a value to a power, use pow(base,exponent).
Integers may not be used--just real numbers--24.0.
Using the vi (Unix Line) Editor
- First recommendation--a good manual like Linda Lamb's Learning the vi
Editor from O'Reilly.
- Commands and details.
Fixes For the vi Editor
- Problem: The lines sometimes garble together as you scroll down the
page.
Fix (not really a fix, but it works):
- Click on Terminal
- Choose Preferences
- Reduce the buffer size by 1 (24 lines worked for me)
Last update: 6/10/99