This project provides a tool for generating LaTeX presentations saved as PDF file from Markdown file or existing PDF document. It streamlines the process of creating professional presentations by leveraging the power of LaTeX and the simplicity of Markdown and power of OpenAI platform.
- Convert Markdown files to LaTeX presentations
- Merge existing PDF documents into a single presentation
- Customize templates for different presentation styles
- Easy-to-use command-line interface
Project dependencies:
- Python 12.4.0,
- Poetry (best to install using PipX),
To after installing python and poetry unzip the source files and use following commands in project main directory:
PS C:\pdf-to-slides> poetry shell
Spawning shell within C:\virtualenvs\pdf-to-slides-wM9OptYn-py3.12
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
(pdf-to-slides-py3.12) PS C:\pdf-to-slides> poetry install
Installing dependencies from lock file
No dependencies to install or update
Installing the current project: pdf-to-slides (0.1.0)
(pdf-to-slides-py3.12) PS C:\pdf-to-slides> pts <command>
Make sure that you have added your LaTex interpreter to the system PATH and you have installed all the required packages such as Polish - to ensure that pdf file can generate from LaTex document inside the solution.
To convert a Markdown file (raletive path) to a LaTeX presentation, use the following command:
pts convert markdown.md output.pdf
Presentation LaTex file will be saved as pdf in the project if you have LaTex interpreter added to PATH. You can change the location of the input and the output file by providing paths instead of file names.
Here are some example commands that are specified in the project:
Note that all commands should be executed in virtual environment (i.e. inside poetry shell)
- Convert PDF to Markdown::
pts md <path/article.pdf> <path/output.md>
- Convert Markdown to JSON::
pts json <path/markdown.md> <path/output.json>
- Convert JSON to LaTeX::
pts latex <path/markdown.md> <path/output.json>
- Convert LaTeX to PDF::
pts pdf <path/markdown.md> <path/output.json>
This project is licensed under the MIT License. See the LICENSE file for details.