LaTeX: buat jadual kandungan dan struktur - bagaimana ia berfungsi
Adakah anda ingin mencipta jadual kandungan dan garis besar untuk LaTeX? Dalam petua praktikal ini, kami menunjukkan kepada anda cara untuk meneruskan:
Bagaimana untuk mendapatkan jadual kandungan dan struktur dalam LaTeX
Jika anda ingin mencipta jadual kandungan dan garis besar dalam pakej perisian TeX LaTeX, anda perlu mengetahui beberapa arahan untuk kelas dokumen yang berlainan. Ikuti langkah-langkah ini untuk menyusun dokumen teks artikel kelas (scrartcl), buku (buku teks) atau laporan (scrinterprt) dalam editor LaTeX Texmaker:
- Mulakan dokumen LaTeX anda seperti biasa.
- Gunakan perintah \ tableofcontents pada permulaan dokumen teks untuk mencipta jadual kandungan.
- Perintah \ bab {*} tersedia untuk buku dan laporan kelas dokumen. Dengan ini, anda membuat halaman baru dalam laporan, dengan buku ini dicipta pada halaman kanan percuma seterusnya. \ chapter {*} adalah tahap tertinggi untuk kedua-dua kelas dokumen ini.
- Di bawah paras ini ialah paras \ seksyen {*} - anda boleh menggunakannya untuk membuat tajuk. Dalam kelas dokumen artikel, ini adalah struktur tertinggi. Gunakan \ subsection {*} untuk mencipta subheadings dan \ subsubsection {*} untuk membuat sub judul.
- Dengan perintah \ perenggan {*} dan \ subperenggan {*} anda boleh membahagikan perenggan anda menjadi perenggan dan subperenggan.
- Sekarang anda mempunyai semua perintah untuk menyusun dokumen LaTeX anda dan membuat jadual kandungan.