I have occasionally sold a book on the basis of a synopsis, sometimes with sample chapters. Here a literary agent tells you how to go about writing the synopsis.