This program provides a simple, user-friendly graphical interface for compiling a LaTeX-based CV (cv.tex
) using PowerShell and XeLaTeX. It automates the compilation process by executing a PowerShell script that generates a clean, formatted PDF from your LaTeX file.
Manually compiling LaTeX documents on Windows can be cumbersome, especially when involving multiple passes and file clean-up. This tool solves that by letting users:
- Select their LaTeX project folder.
- Automatically run a PowerShell script to compile the CV using
xelatex
. - Clean up unnecessary files afterward — all with the click of a button.
- No command-line knowledge needed.
- Clean and organized output: All non-PDF files are automatically removed.
- Error handling and logging included.
- Ideal for Windows users managing their CVs in LaTeX.
The following dependencies are required to run this program effectively:
- Exact Name: Python 3.x
- Description: Required to run the GUI-based script (
latex_cv_compiler.py
). - Installation:
Download and install Python from the official website:
👉 https://www.python.org/downloads/
- Exact Name:
tkinter
- Description: Used to create the graphical interface (GUI).
- Installation:
Usually included with standard Python installations. If missing, install using:sudo apt-get install python3-tk # (Linux)
- Exact Name: PowerShell (with administrator privileges)
- Description: Required to execute the
script.ps1
which performs the LaTeX compilation. - Installation:
PowerShell is included by default on most Windows systems.
To manually update: https://learn.microsoft.com/en-us/powershell/
- Exact Name:
xelatex
(included in full TeX distributions) - Description: Compiles the
cv.tex
file into a PDF. - Installation:
Install a full TeX distribution such as:
👉 MiKTeX (Windows)
👉 TeX Live (Cross-platform)
- Click the green "<> Code" button on the GitHub page.
- Select "Download ZIP".
- Extract the downloaded ZIP file to a convenient location.
-
Open Command Prompt:
- Press
Win + R
, typecmd
, and press Enter.
- Press
-
Navigate to the Extracted Directory: Use the
cd
command to change to the program folder:cd path\to\extracted\folder
-
Run the Python Script:
python latex_cv_compiler.py
🔒 Note: The PowerShell script requires administrator privileges to run correctly.
-
Click "Select Project Directory":
- Choose a folder that contains both:
cv.tex
— your LaTeX CV document.script.ps1
— the provided PowerShell compilation script.
- Choose a folder that contains both:
-
Click "Run Compilation Script":
- This will:
- Run
xelatex
twice to ensure proper references. - Move the output PDF to the
output
folder. - Delete all non-PDF files from
output
.
- Run
- This will:
-
View the Output:
- The final
cv.pdf
will be located in theoutput
subfolder within the selected directory.
- The final
- A directory containing:
cv.tex
(LaTeX CV file)script.ps1
(PowerShell script)
- A cleaned and compiled PDF version of your CV in:
[your-selected-folder]\output\cv.pdf
There are no configurable options exposed to the user. The tool is intentionally simple and minimal.
Scenario: You’ve just updated your CV in cv.tex
.
Action: Use this tool to quickly compile and generate the updated PDF.
Expected Output: output/cv.pdf
containing the latest version.
Scenario: You're submitting your CV for a job application and need a quick PDF with no clutter.
Action: Run the compiler to generate a clean PDF, free of log files and other build artifacts.
Expected Output: A polished cv.pdf
file ready to send.
Scenario: A designer or writer who doesn’t use the command line needs to generate a LaTeX CV.
Action: Launch the GUI, select the folder, and click one button.
Expected Output: A correctly compiled CV PDF without needing technical help.
- This repository and its contents may be updated at any time without notice.
- Future changes may render portions of this README obsolete.
- No guarantees are made regarding functionality, compatibility, or correctness.
- The program and all associated scripts are provided as-is.