Umlauts в LaTeX - как работи
Не можете да пишете umlauts в LaTeX толкова лесно, колкото бързо ще забележите, когато пишете немски текст. Този практичен съвет ви показва как умулатите все още се показват като такива след компилация.
Използвайте umlauts индиректно в LaTeX
Ако въведете umlauts индиректно в LaTeX, можете лесно да редактирате документа си в различни операционни системи. За това не ви трябват никакви пакети. Малкият "ö" винаги се формира в този текст. Можете да формирате други умлаути аналогично. Например, за капитал "Ä" заменете "o" с "A".
- Формирате „ö“ индиректно с \ „o (задна черта, кавички, o).
- Поставете предишния вариант в къдрави скоби, ако не работи: {\ "o}.
- Ако сте включили пакета "немски" или пакета "ngerman", можете също да оформите малката ö с "o (кавички o).
Включете umlauts в пакета inputenc в LaTeX
Ако включите пакета inputenc, можете да въведете umlauts директно в документа си и не е необходимо да ги пренаписвате с код. Тъй като различните операционни системи използват различни кодировки, тук се нуждаете от различни команди LaTeX, които копирате пред вашия \ begin {document}.
- В Windows обикновено използвате кодирането "ansinew". Тогава съответният код е: \ usepackage [ansinew] {inputenc}.
- Обикновено се използва кодирането "latin1" на Linux. Кодът, който трябва да поставите преди \ begin {document} е: \ usepackage [latin1] {inputenc}.
- Кодирането "AppleMac" трябва да се използва на вашия Mac. След това трябва да копирате кода \ usepackage [applemac] {inputenc} преди \ започнете {документ}.
- Ако съответното кодиране не работи или искате да използвате вашия LaTeX документ на различни системи, трябва да опитате UTF-8. Интегрирате това кодиране с кода \ usepackage [utf8] {inputenc}. Уверете се обаче, че вашият LaTeX документ е действително кодиран в UTF-8.
Умлаут в математическа среда
Трябва да имате проблеми с умлаутите в математическата среда на LaTeX. С обикновен трик обаче те могат да бъдат елиминирани и от света.
- С командата \ textrm {желания текст} умлаутите в обикновената математическа среда вече не са проблем.
- Използвайте пакета "amsmath", поставете желания от вас текст между къдравите скоби на командата \ text {желан текст}.
В нашата област за изтегляне ще намерите Texmaker, солиден редактор на LaTeX. В друг практичен съвет ще ви покажем как да използвате LaTeX за създаване на различни видове кавички.