Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gucio321/matematyka
Technical Physics course notes (1st and 2nd term).
https://github.com/gucio321/matematyka
Last synced: 7 days ago
JSON representation
Technical Physics course notes (1st and 2nd term).
- Host: GitHub
- URL: https://github.com/gucio321/matematyka
- Owner: gucio321
- License: other
- Created: 2023-10-09T12:47:38.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-23T16:49:37.000Z (23 days ago)
- Last Synced: 2024-10-25T09:50:37.193Z (21 days ago)
- Language: Python
- Homepage: https://gucio321.github.io/matematyka/
- Size: 21.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Matematyka
Przed Państwem kod źródłowy mojej strony z notatkami z matematyki.
Zapraszam do oglądania i komentowania!## Instalacja
Część plików nie jestd dodawana do git'a. Generują się same po użyciu dowolnej komendy z Makefile'a.
```sh
python3 -m pip install -m virtualenv # if no virtualenv package already installed
python3 -m virtualenv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
# to build html
make html
```## Building PDF
On rpm-based linux distros install the following:
```sh
dnf install -y latexmk texlive-cmap texlive-collection-fontsrecommended texlive-fncychap texlive-wrapfig texlive-capt-of texlive-framed texlive-upquote texlive-needspace texlive-tabulary texlive-parskip texlive-oberdiek texlive-cancel
```on apt-based:
on arch:
- extra/texlive-binextra
- texlive-core
- texlive-bin
- extra/texlive-latex
- extra/texlive-latexextra
- extra/texlive-plaingeneric
- extra/texlive-langpolish
- extra/texlive-mathscience## Thing about PDF customization
Start here later
ChatGPT
To customize the title page generated by Sphinx when creating a PDF via make latexpdf, you can modify the LaTeX template used for the title page. Sphinx allows you to override the default LaTeX templates by providing your own custom template.Follow these steps to customize the title page:
Step 1: Locate Sphinx's LaTeX Template Files
Find the sphinx directory in your Python installation. You can usually locate it within the site-packages directory of your Python environment.Inside the sphinx directory, navigate to texinputs.
Step 2: Copy Default Template
Locate the sphinxmanual.cls or sphinxhowto.cls file (depending on the type of document you're generating).Copy this file to your Sphinx documentation project directory. Name the copied file something like custom_sphinxmanual.cls to avoid confusion.
Step 3: Modify the Title Page in the Copied Template
Open the copied file (custom_sphinxmanual.cls) in a text editor and find the section related to the title page. It might look something like this:latex
Copy code
\renewcommand{\maketitle}{
% Title page contents...
}
Modify the contents within the \maketitle command to customize the title page. You can change the layout, add or remove elements, or alter formatting as needed.Step 4: Use the Custom Template
In your conf.py file in the Sphinx project directory, add or modify the latex_elements variable to specify the use of the custom template:python
Copy code
latex_elements = {
'papersize': 'letterpaper',
'pointsize': '10pt',
'classoptions': ',openany',
'babel': '\\usepackage[english]{babel}',
'preamble': '\\input{preamble.tex}',
'sphinxsetup': 'VerbatimBorderColor={rgb}{1,1,1}',
'maketitle': '\\input{custom_sphinxmanual.cls}', # Use the custom template
}
Replace 'custom_sphinxmanual.cls' with the name of your custom template file.Step 5: Generate the PDF
Regenerate the documentation using make clean followed by make latexpdf. This will use the modified template to generate the PDF, including the customized title page.Ensure to adjust the LaTeX commands in the copied file (custom_sphinxmanual.cls) as per your requirements. This method allows you to have full control over the title page layout and contents in your Sphinx-generated PDF.