LaTeX: Opret indholdsfortegnelse og struktur - hvordan det fungerer
Vil du oprette en indholdsfortegnelse og en oversigt til en LaTeX? I dette praktiske tip viser vi dig, hvordan du går frem:
Sådan får du indholdsfortegnelsen og strukturen i LaTeX
Hvis du vil oprette en indholdsfortegnelse og en oversigt i TeX-softwarepakken LaTeX, skal du kende et par kommandoer til de forskellige dokumentklasser. Følg disse trin for at strukturere dine tekstdokumenter om klasseartiklen (scrartcl), bog (scrbook) eller rapport (scrreprt) i LaTeX editor Texmaker:
- Start dit LaTeX-dokument som sædvanligt.
- Brug kommandoen \ tableofcontents i begyndelsen af tekstdokumentet til at oprette en indholdsfortegnelse.
- Kommandoen \ kapitel {*} er tilgængelig for dokumentklassen bog og rapport. Med dette opretter du en ny side i rapporten, med bog oprettes denne på den næste gratis højre side. \ Chapter {*} er det øverste niveau for disse to dokumentklasser.
- Under dette niveau er niveauet \ sektion {*} - du kan bruge dette til at oprette overskrifter. I artikeldokumentklassen er dette det højeste niveau af struktur. Brug \ underafsnit {*} til at oprette underoverskrifter og \ underafsnit {*} til at oprette underoverskrifter.
- Med kommandoerne \ afsnit {*} og \ afsnit {*} kan du opdele dine afsnit i afsnit og afsnit.
- Nu har du alle kommandoer til at strukturere dit LaTeX-dokument og oprette en indholdsfortegnelse.