Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

e-gleba/course-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LuaTeX Project Setup and Compilation Guide

This document provides a comprehensive guide to setting up a LaTeX environment using LuaTeX for efficient document editing and typesetting. We will explore two popular editor options: Emacs with AUCTeX and Kile.

1. Installing a TeX Distribution

Choose a TeX distribution that aligns with your operating system:

Linux:

  • TeX Live (Recommended): Offers an extensive package collection and regular updates.
    sudo dnf install texlive-babel-russian  # Russian language support 
  • Other Distributions: Explore options like TeXstudio or proTeXt based on your preferences.

Windows:

macOS:

2. Essential LaTeX Packages

The list of required packages is listed in LaTeX document, also you can use make to get erros about required packages. Install packages using your TeX distribution's package manager (e.g., tlmgr for TeX Live).

To search for some missing packages use:

tlmgr search --file mathrsfs.sty --global

To install on fedora just add prefix texlive-:

sudo dnf install texlive-some-example-package

3. Editor Configuration

Doom Emacs:

  1. Install LaTeX: Refer to the Emacs package manager or official instructions (https://docs.doomemacs.org/v21.12/modules/lang/latex/).
  2. (Optional) Install pdf-tools: Enhance PDF interaction within Emacs.

Kile:

  1. Install Kile: Use your system's package manager or download from https://kile.org/.
  2. Kile Features: Enjoy a user-friendly interface with project management, syntax highlighting, code completion, and integrated PDF viewing.

4. Compilation and Workflow

  • Compile: Use the appropriate command or keybinding (e.g., lualatex for LuaLaTeX output).
  • Automate: Configure your editor to automatically build and view the generated PDF.
  • Optimize: Utilize editor features and installed packages to streamline your LaTeX workflow.

5. Additional Resources

6. Running

Just use:

sudo dnf install $(sed 's/^/texlive-/' pkg.txt)
cd src
biber main
lualatex main.tex

7. Advanced Techniques with Latexmk

Latexmk is a powerful tool for automating LaTeX compilation. It can watch for changes in your files and automatically recompile your document, ensuring that the PDF output is always up-to-date. Here's how to use it:

  1. Installation: Install latexmk using your system's package manager.
  2. Basic Usage: Navigate to your LaTeX project directory in the terminal and run latexmk -pdf yourfile.tex. This will compile your document and generate a PDF file.
  3. Customization: Create a .latexmkrc file in your project directory to customize latexmk's behavior. You can specify options like the compiler to use, the output format, and the number of compilation runs.
  4. Continuous Compilation: Use the -pvc option to enable continuous compilation. Latexmk will watch for changes in your files and automatically recompile your document.

Here are some additional advanced techniques you can use with latexmk:

  • Specifying Dependencies: Use the $dependency variable to specify dependencies between files.
  • Running External Tools: Use the $postprocess variable to run external tools after compilation, such as BibTeX or MakeIndex.
  • Using Custom Build Rules: Define custom build rules to handle specific file types or compilation steps.

By mastering latexmk, you can significantly improve your LaTeX workflow and make the compilation process more efficient.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published