{"id":13699623,"url":"https://github.com/wg030/jlcode","last_synced_at":"2025-06-29T06:07:32.278Z","repository":{"id":43773230,"uuid":"118927542","full_name":"wg030/jlcode","owner":"wg030","description":"A latex package for displaying Julia code using the listings package. The package supports pdftex, luatex and xetex for compilation.","archived":false,"fork":false,"pushed_at":"2023-07-20T08:34:33.000Z","size":12924,"stargazers_count":240,"open_issues_count":8,"forks_count":40,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-20T12:08:14.940Z","etag":null,"topics":["julia","latex","latex-package","listings","luatex","pdftex","xetex"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lppl-1.3c","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wg030.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-25T15:03:00.000Z","updated_at":"2025-03-25T19:00:06.000Z","dependencies_parsed_at":"2024-01-12T20:11:13.248Z","dependency_job_id":"a914e2f1-c5df-45fe-a29d-923d61a1280f","html_url":"https://github.com/wg030/jlcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wg030/jlcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wg030%2Fjlcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wg030%2Fjlcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wg030%2Fjlcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wg030%2Fjlcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wg030","download_url":"https://codeload.github.com/wg030/jlcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wg030%2Fjlcode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262545037,"owners_count":23326660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["julia","latex","latex-package","listings","luatex","pdftex","xetex"],"created_at":"2024-08-02T20:00:38.388Z","updated_at":"2025-06-29T06:07:32.250Z","avatar_url":"https://github.com/wg030.png","language":"TeX","readme":"# jlcode.sty\r\n\r\n\r\n\r\n## License\r\n_jlcode.sty_\r\nCopyright 2018 Willi Gerbig\r\n\r\nThis work may be distributed and/or modified under the conditions of the LaTeX Project  \r\nPublic License, either version 1.3 of this license or (at your option) any later version.  \r\nThe latest version of this license is in [http://www.latex-project.org/lppl.txt](http://www.latex-project.org/lppl.txt)  \r\nand version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.\r\n\r\nThis work has the LPPL maintenance status 'maintained'.\r\n\r\nThe Current Maintainer of this work is Willi Gerbig.\r\n\r\nThis work consists of the files  \r\n_jlcode.sty_, _createkwlists.jl_, _createucclist.jl_, _testfile.jl_,  \r\n_testfile2.jl_ and _manual.pdf_.\r\n\r\n\r\n## Short Package Description\r\nThe _jlcode.sty_ is a latex package, which contains a Julia language definition  \r\nfor the listings package as well as a style definitions with different themes.  \r\nSince version 6.0 it cannot only be used with pdftex, but also with luatex and xetex.  \r\nCheck out the manual (_manual.pdf_), which explains all package options and   \r\nalso shows how the Julia code from _testfile.jl_ and _testfile2.jl_ looks when displayed.\r\n\r\n\r\n## Current State\r\n**Current version** of the jlcode package: **6.1.4**.  \r\nDate of creation: 2018/01/25  \r\nDate of last modification: 2023/07/20\r\n\r\n### Keywords\r\nThe lists for the keywords, literals, built-ins, macros, functions and string types for  \r\nthis language definition were created with the julia script _createkwlists.jl_, which  \r\nwas strongly inspired by the approach of the following script:  \r\n[https://github.com/isagalaev/highlight.js/blob/master/src/languages/julia.js](https://github.com/isagalaev/highlight.js/blob/master/src/languages/julia.js).\r\n\r\n### Colors\r\nAll colors for the default theme of this package were taken from the file  \r\n[https://docs.julialang.org/en/v1/assets/themes/documenter-light.css](https://docs.julialang.org/en/v1/assets/themes/documenter-light.css)  \r\nand  all colors for the darkbeamer theme of this package were taken from the file  \r\n[https://github.com/dietercastel/jlcode/blob/darktheme/jlcode.sty](https://github.com/dietercastel/jlcode/blob/darktheme/jlcode.sty), which  \r\ncontains a contribution from \"dietercastel\" who put toegther this great theme,  \r\nwhich is designed to be ideally suited for the dark-beamer-theme.  \r\n\r\n### Special Unicode Characters\r\nAll tab completion Unicode characters supported by Julia can be found under  \r\n[https://docs.julialang.org/en/v1.7/manual/unicode-input/](https://docs.julialang.org/en/v1.7/manual/unicode-input/).  \r\nWhen dealing with the luatex or xetex engine the jlcode package will by default  \r\nwork with the JuliaMono font, whose latest version can be found under  \r\n[https://github.com/cormullion/juliamono](https://github.com/cormullion/juliamono).  \r\nThis JuliaMono font approach was inspired by the following repository:  \r\n[https://github.com/mossr/julia-mono-listings](https://github.com/mossr/julia-mono-listings).\r\n\r\nAt the moment the jlcode package supports the follwoing Unicode characters,  \r\nwhen you compile your document with luatex or xetex:\r\n* Most common special characters that appear in latin languages.\r\n* All tab completion Unicode characters that the JuliaMono font supports.\r\n* Most of the characters which are used for drawing unicode boxes.\r\n\r\nAt the moment the jlcode package supports the follwoing Unicode characters,  \r\nwhen you compile your document with pdftex:\r\n* Most common special characters that appear in latin languages.\r\n* All greek small and capital letters.\r\n* All latin and greek letters with dot, double dot, tilde, hat or bar above.\r\n* All latin double-struck, script and fraktur capital letters.\r\n* All superscripts and subscripts (except for the latin small letter schwa).\r\n* Quite a few mathematical operators and symbols.\r\n* Most of the characters which are used for drawing unicode boxes.\r\n\r\n\r\n## What's New in Version 6.1?\r\n* A separate license file has been added.\r\n* All standard functions ending with `!` are now colored correctly.\r\n* The commands `\\addlitjlmacros` and `\\addlitjlfunctions` for manual  \r\n  fixing manageable issues with macros and functions have been added.\r\n* The listings key `breaklines=true` is now used automatically by default.\r\n* Keywords, literals, built-ins, macros, functions and string-prefixes  \r\n  have been refreshed according to Julia 1.7.2.\r\n* A few typing errors have been corrected.\r\n\r\n\r\n## How to Use the Package:\r\n\r\n### Standard Use\r\nCopy the _jlcode.sty_ file to the same folder like your latex file.  \r\nAddionally, if you want to use luatex or xetex for compiling your  \r\ndocument, also put all _JuliaMono-*.ttf_ files to the same folder  \r\nlike your latex file.  \r\nThen add the following line to your latex document header,  \r\nwhich will load the package with its default options:\r\n\r\n```latex\r\n\\usepackage{jlcode}\r\n```\r\n\r\nAfter doing so you can use the package as follows:\r\n\r\n```latex\r\n% listing of standalone files\r\n\\jlinputlisting{filename.jl}\r\n\r\n% displayed code\r\n\\begin{jllisting}\r\n# some julia code\r\nprintln( \"Here we go with Julia!\")\r\n\\end{jllisting}\r\n\r\n% code snippets\r\nJulia's standard library contains some useful macros like \\jlinl{@time}.\r\n```\r\n\r\n### Advanced Use\r\nCheck out the manual to learn more about the package options and  \r\nsome advanced techniques like handling manageable issues.\r\n\r\n\r\n## Feel Free to Contribute\r\nPlease feel free to contribute and report bugs!  \r\n\r\nIt would be especially appreciated if you helped me  \r\nadding support for more special unicode characters.\r\n","funding_links":[],"categories":["4.4 Polynomials"],"sub_categories":["\u003cspan id=\"head72\"\u003e4.3.2. Interpolations and Approximations\u003c/span\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwg030%2Fjlcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwg030%2Fjlcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwg030%2Fjlcode/lists"}