Wstaw litery greckie do LaTeX - jak to działa
W LaTex możesz pisać pojedyncze greckie litery, greckie sekcje tekstowe, a nawet kompletne dokumenty alfabetem greckim. Różne konwencje mają zastosowanie do zmiennych we wzorach, jednostkach fizycznych i tekście. Pokażemy ci, jak pisać po grecku.
Pisz greckie litery w LaTeX
Samo wstawianie greckich liter w dokumentach LaTeX nie jest trudne. Ale w zależności od kontekstu litery powinny być sformatowane inaczej. Zmienne pisane są kursywą, a pomiędzy dwiema zmiennymi jednostki są zawsze nie kursywą, a teksty podstawowe nie są kursywą i mają normalne odstępy między znakami. Mamy rozwiązanie dla każdego z tych przypadków:
- Możesz pisać pojedyncze greckie litery w trybie matematycznym i w równaniach, pisząc je odwrotnym ukośnikiem:
- Dwie górne linie na rysunku wyglądają tak: $ \ theta $ i $ \ vartheta $
- Zazwyczaj w środowisku matematycznym znaki są pisane kursywą. Duże litery greckie są wyjątkiem.
- Można jednak użyć kursywy, aby drukować duże litery greckie za pomocą „\ mathit”: $ \ mathit {\ Theta} $
- Komendy dla wszystkich greckich liter można znaleźć na przykład w Wikibooks.
- Włóż pakiet Upgreek do preambuły dokumentu LaTeX, używając „\ usepackage {upgreek}”.
- Teraz możesz wstawiać greckie litery „zwykłe”, tzn. Nie kursywą: $ \ uptheta $, $ \ upvartheta $
- Aby pisać całe sekcje tekstu literami greckimi, załaduj pakiet „Betababel” za pomocą „\ usepackage [ngerman] {betababel}”. Teraz możesz napisać „\ bcode {}” w greckim obszarze.
- Na zdjęciu widać, co robi paczka z kodem „\ bcode {Praktyczne wskazówki CHIP online}”.
- Jeśli chcesz, aby cały dokument był napisany alfabetem greckim, użyj pakietu „\ usepackage {betababel}” bez opcji „[ngerman]”. Obecnie cały dokument jest napisany w języku greckim.
Jak dalej formatować tekst w LaTex, na przykład zmieniając rozmiar czcionki, wstawiając umlauty lub zmieniając czcionkę, wyjaśniamy w dalszych praktycznych poradach CHIP online.