The fabrication of a KTP Pockels cell utilizing the effective EO coefficient of the crystal is reported. Compensation of the static birefringence of the switch was achieved by temperature turning. Then the device was successfully used to slice and shape the Q-switched laser pulses.