Vstavite grške črke v LaTeX - kako deluje
V LaTex lahko pišete posamezne grške črke, grške besedilne odseke in celo popolne dokumente v grški abecedi. Za spremenljivke v formulah, fizičnih enotah in besedilu besedila veljajo različne konvencije. Pokazali vam bomo, kako pisati grščino.
Grške črke napišite v LaTeX
Samo po sebi vstavljanje grških črk v dokumente LaTeX ni težko. Toda glede na kontekst je treba črke oblikovati drugače. Spremenljivke pišete v poševnem tisku in s presledkom med dvema spremenljivkama, enote so vedno ne ležeče, besedila v besedilu pa so poševna in z običajnim razmikom med znaki. Za vsak od teh primerov imamo rešitev:
- Posamezne grške črke lahko pišete v matematičnem načinu in v enačbah, tako da jih napišete s poševno črto:
- Zgornji dve vrstici na sliki sta videti takole: $ \ theta $ in $ \ vartheta $
- Znaki so običajno v matematičnih okoljih s poševnimi črkami. Velike grške črke so izjema.
- Vendar lahko s poševnimi črkami uporabite velike črke z uporabo \ \ mathit: $ \ mathit {\ Theta} $
- Ukaze za vse grške črke najdete na primer v Wikiknjigah.
- Vstavite paket Upgreek v preambulo dokumenta LaTeX z uporabo "\ usepackage {upgreek}".
- Zdaj lahko grške črke dodate "navadne", torej ne v poševnem tisku: $ \ uptheta $, $ \ upvartheta $
- Če želite napisati celotne odseke besedila z grškimi črkami, naložite paket "Betababel" s pomočjo "\ usepackage [ngerman] {betababel}". Zdaj lahko v grško območje napišete "\ bcode {}".
- Na sliki lahko vidite, kaj paket počne s kodo "\ bcode {CHIP Spletni praktični nasveti}".
- Če želite, da je celoten dokument napisan v grški abecedi, uporabite paket "\ usepackage {betababel}" brez možnosti "[ngerman]". Do zdaj je celoten dokument napisan v grščini.
V nadaljnjih spletnih praktičnih nasvetih CHIP bomo razložili, kako nadalje oblikovati besedilo v LaTexu, na primer spreminjanje velikosti pisave, vstavljanje umlautov ali spreminjanje pisave.