Umlauts v LaTeXu - kako deluje
Umlavtov v LaTeX ne morete vnašati tako enostavno, kot boste hitro opazili pri pisanju besedila v nemščini. Ta praktični nasvet vam pokaže, kako so umlauti po prevajanju še vedno prikazani kot taki.
Umlauts posredno uporabljajte v LaTeX-u
Če v LaTeX posredno vnesete umlaute, lahko dokument enostavno uredite v različnih operacijskih sistemih. Za to ne potrebujete nobenih paketov. Majhen "ö" je vedno oblikovan v tem besedilu. Analogno lahko oblikujete tudi druge umlaute. Na primer, za velikost "Ä" nadomestite "o" z "A".
- "Ö" posredno oblikujete z \ "o (poševnica, narekovaji, o).
- Prejšnjo različico postavite v kodraste naramnice, če ne deluje: {\ "o}.
- Če ste vključili paket "nemščina" ali paket "ngerman", lahko majhno ö oblikujete tudi z "o (narekovaji o).
V paket Lapux vključite umlaute v paket inputenc
Če vključite paket inputenc, lahko umlaute vpišete neposredno v svoj dokument in vam jih ni treba znova zapisovati s kodo. Ker različni operacijski sistemi uporabljajo različna kodiranje, tukaj potrebujete različne ukaze LaTeX, ki jih kopirate pred svojim \ begin {document}.
- V operacijskem sistemu Windows običajno uporabljate kodiranje "ansinew". Nato je ustrezna koda: \ usepackage [ansinew] {inputenc}.
- Običajno se uporablja kodiranje Linuxa "latin1". Koda, ki jo morate postaviti pred \ start {document}, je: \ usepackage [latin1] {inputenc}.
- Kodiranje "AppleMac" je treba uporabiti na vašem Macu. Nato morate kopirati kodo \ usepackage [applemac] {inputenc} pred \ start {dokument}.
- Če ustrezno kodiranje ne deluje ali če želite uporabiti svoj dokument LaTeX v različnih sistemih, poskusite z UTF-8. To kodiranje integrirate s kodo \ usepackage [utf8] {inputenc}. Vendar se prepričajte, da je vaš dokument LaTeX dejansko dejansko kodiran v UTF-8.
Umlauti v matematičnih okoljih
Prav tako bi morali imeti težave z umlauti v matematičnem okolju LaTeX. S preprostim trikom pa lahko tudi te odstranimo iz sveta.
- Z ukazom \ textrm {željenega besedila} umlauti v običajnem matematičnem okolju niso več zaskrbljujoči.
- Uporabite paket "amsmath", želeno besedilo postavite med kodraste oklepere ukaza \ text {želeno besedilo}.
Na našem področju za prenos boste našli Texmaker, trden urejevalnik LaTeX-a. V drugem praktičnem nasvetu vam bomo pokazali, kako uporabljati LaTeX za ustvarjanje različnih vrst narekovajev.