Display source code in LaTeX - source code listing

Опубликовано: 28 Сентябрь 2024
на канале: Federico Tartarini
28,918
446

In this video, I will show you how to display source code in your LaTeX document using the powerful packages "listing" and "verbatim". I will demonstrate how to import code from a file, add captions and reference code in the text, and customize code style and color. Additionally, I will show you how to highlight specific lines of code and change the caption name to fit your needs. Whether you need to showcase your programming skills or add snippets of code to your document, this tutorial will help you achieve it with ease.

Keywords: LaTeX, code, source code, programming, listings, verbatim, highlighting, customization, caption, reference.

Hashtags: #LaTeX #code #sourcecode #programming #listings #verbatim #highlighting #customization #caption #reference.

✅ Subscribe for more videos like this one
🔔 Click on the bell icon to be notified when I release a new video
👍 Please like my video!

⚠️ Join my channel to get access to perks:    / @federicotartarini  
🙏 Support my channel on Patreon at   / federicotartarini  
☕ Support my channel by buying me a coffee - https://www.buymeacoffee.com/FedericoT

✅ Let's connect:
🌍 My website - https://federicotartarini.github.io/
💻 GitHub - https://github.com/FedericoTartarini
Twitter -   / federicotartar1  
LinkedIn –   / federico-tartarini  

📝 Useful notes:
How to reformat your Python code using Black:    • Automate Python code formatting with ...  

👨‍💻 Source code:
https://gist.github.com/FedericoTarta...

🎥 Content of this video:
00:00 - What you will learn
00:15 - Verbatim environment
01:22 - The listing package
02:00 - Specifying options
03:30 - Change code style and color
05:50 - Import code from an external file
07:35 - List of listings

🔣 Keywords:
#LaTeX #LaTeXCourse #CodeListing #Listing #SourceCode