Skip to content

Instantly share code, notes, and snippets.

@KKozlowski
Created November 3, 2016 10:23
Show Gist options
  • Save KKozlowski/bd2c2267ea68fd5f92c30ac5ebeb2f16 to your computer and use it in GitHub Desktop.
Save KKozlowski/bd2c2267ea68fd5f92c30ac5ebeb2f16 to your computer and use it in GitHub Desktop.
Polish letters literation for LaTeX Listings package.
\usepackage{listings}
\lstset{
literate={ą}{{\k a}}1
{Ą}{{\k A}}1
{ż}{{\. z}}1
{Ż}{{\. Z}}1
{ź}{{\' z}}1
{Ź}{{\' Z}}1
{ć}{{\' c}}1
{Ć}{{\' C}}1
{ę}{{\k e}}1
{Ę}{{\k E}}1
{ó}{{\' o}}1
{Ó}{{\' O}}1
{ń}{{\' n}}1
{Ń}{{\' N}}1
{ś}{{\' s}}1
{Ś}{{\' S}}1
{ł}{{\l}}1
{Ł}{{\L}}1
}
@wmboguta
Copy link

Thanks a lot!

@piotroo11
Copy link

Thanks m8

@filesmuggler
Copy link

cool! thanks!

@PiotrBalik
Copy link

Thanks buddy!

@yuvolkotrub
Copy link

dzięki :)

@KGrzeg
Copy link

KGrzeg commented Dec 10, 2021

Great job!

@Delin-Ouyang
Copy link

cool!!!

@retzerjj
Copy link

retzerjj commented Sep 8, 2023

This is great. Just one question, are the special characters in the code a problem for LaTeX? I'm assuming not but I don't know the header required to compile this. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment