private static void printClass(ClassDoc cd) {
		String type;
		if (cd.isInterface()) {
			type = "interface";
		} else if (cd.isEnum()) { 
			type = "enum";
		} else {
			type = "class";
		}

		os.println("\\begin{texdocclass}{" + type + "}{"
				+ HTMLToTex.convert(cd.name()) + "}");

		os.println("\\label{texdoclet:" + cd.containingPackage().name() + "." + cd.name() + "}");
		os.println("\\begin{texdocclassintro}");
		printComment(cd);
		os.println("\\end{texdocclassintro}");

		printSees(cd);

		FieldDoc[] fields = cd.fields();
		if (fields.length > 0) {
			os.println("\\begin{texdocclassfields}");
			printFields(cd, fields);
			os.println("\\end{texdocclassfields}");
		}

		ConstructorDoc[] constructors = cd.constructors();
		if (constructors.length > 0) {
			os.println("\\begin{texdocclassconstructors}");
			printExecutableMembers(cd, constructors, "constructor");
			os.println("\\end{texdocclassconstructors}");
		}
		
		FieldDoc[] enums = cd.enumConstants();
		if (enums.length > 0) {
			os.println("\\begin{texdocenums}");
			printEnums(cd, enums);
			os.println("\\end{texdocenums}");
		}

		MethodDoc[] methods = cd.methods();
		if (methods.length > 0) {
			os.println("\\begin{texdocclassmethods}");
			printExecutableMembers(cd, methods, "method");
			os.println("\\end{texdocclassmethods}");
		}

		os.println("\\end{texdocclass}");
		os.println("");
		os.println("");
	}