Umlaut di LaTeX - cara kerjanya
Anda tidak dapat mengetik umlauts di LaTeX semudah Anda akan segera melihat ketika menulis teks Jerman. Tip praktis ini menunjukkan kepada Anda bagaimana umlaut masih ditampilkan setelah kompilasi.
Gunakan umlauts secara tidak langsung di LaTeX
Jika Anda memasukkan umlauts secara tidak langsung di LaTeX, Anda dapat dengan mudah mengedit dokumen Anda pada sistem operasi yang berbeda. Anda tidak memerlukan paket apa pun untuk ini. "Ö" kecil selalu terbentuk dalam teks ini. Anda dapat membentuk umlaut lain secara analog. Misalnya, untuk huruf kapital "Ä", ganti "o" dengan "A".
- Anda membentuk "ö" secara tidak langsung dengan \ "o (garis miring terbalik, tanda kutip, o).
- Masukkan varian sebelumnya dalam kurung kurawal jika tidak berhasil: {\ "o}.
- Jika Anda telah memasukkan paket "jerman" atau paket "ngerman", Anda juga dapat membentuk ö kecil dengan "o (tanda kutip o).
Sertakan umlaut dalam input paket di LaTeX
Jika Anda memasukkan inputenc paket, Anda dapat memasukkan umlaut langsung dalam dokumen Anda dan tidak harus menulis ulang dengan kode. Karena sistem operasi yang berbeda menggunakan penyandian yang berbeda, Anda memerlukan perintah LaTeX yang berbeda di sini, yang Anda salin di depan \ begin {document} Anda.
- Di Windows, Anda biasanya menggunakan kode "ansinew". Kode yang sesuai adalah: \ usepackage [ansinew] {inputenc}.
- Pengkodean "latin1" Linux biasanya digunakan. Kode yang harus Anda masukkan sebelum \ begin {document} adalah: \ usepackage [latin1] {inputenc}.
- Pengodean "AppleMac" harus digunakan di Mac Anda. Anda kemudian harus menyalin kode \ usepackage [applemac] {inputenc} sebelum \ begin {document}.
- Jika pengkodean masing-masing tidak berfungsi atau jika Anda ingin menggunakan dokumen LaTeX Anda pada sistem yang berbeda, Anda harus mencoba UTF-8. Anda mengintegrasikan pengkodean ini dengan kode \ usepackage [utf8] {inputenc}. Namun, pastikan bahwa dokumen LaTeX Anda kemudian benar-benar dikodekan dalam UTF-8.
Umlaut di lingkungan matematika
Anda juga harus mengalami kesulitan dengan umlaut di lingkungan matematika LaTeX. Namun, dengan trik sederhana, ini juga dapat dihilangkan dari dunia.
- Dengan perintah \ textrm {teks yang diinginkan} umlaut di lingkungan matematika biasa tidak lagi menjadi masalah.
- Gunakan paket "amsmath", tempatkan teks yang Anda inginkan di antara kurung keriting dari perintah \ text {teks yang diinginkan}.
Di area unduhan kami, Anda akan menemukan Texmaker, editor LaTeX yang solid. Pada tip praktis lain, kami akan menunjukkan kepada Anda bagaimana menggunakan LaTeX untuk membuat berbagai jenis tanda kutip.