Magnetic field effect on graphite ribbons