https://github.com/alexhkurz/introduction-to-coalgebraic-logic
https://github.com/alexhkurz/introduction-to-coalgebraic-logic
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.0%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: alexhkurz
- Language: TeX
- Default Branch: main
- Size: 4.38 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
coalgebraic-logic-jupyter
(under construction)
coalgebraic logic
This is the repo in which I keep my notes on coalgebraic logic.
I wanted to turn them into something that looks more like a book and I tried various frameworks (gitbook, mdbook, bookdown, honkit) but they all had problems, in particular when it came to combining markdown with latex.
So far, jupyter-book seems to work well [^slow] and the next section contains a summary of how I set it up (but the available documentation works almost out of the box anyway).
[^slow]: Maybe building is a bit slow. On the other hand, once the files are cached, compiling the book in the terminal with jb build . ; open _build/html/index.html does not take longer than doing it directly in TeX.
how to create a jupyter book
Starting from Create your first book the following steps were taken.
basics
After creating this repo, cloning it (assume it is called root locally), I run the following from the commandline in the folder containing root.
pip install -U jupyter-book
jupyter-book create book
mv book/* root
cd root
jupyter-book build .
The book can now be opened in a browser by opening the file _build/html/index.html. On a mac, simply run open _build/html/index.html
Following Math and equations add to _config.yml
parse:
myst_enable_extensions:
# don't forget to list any other extensions you want enabled,
# including those that are enabled by default!
- amsmath
- dollarmath
Adapt _config.yml and _toc.yml. Add your own files. Go through several iterations of
jupyter-book build .
open _build/html/index.html
Before committing and pushing to git, I downloaded a .gitignore:
curl https://raw.githubusercontent.com/executablebooks/jupyter-book/master/.gitignore > .gitignore
One question I have is how to adjust the size of screenshots and other images.
publish on the web
Following Publish your book online install ghp-import with
pip install ghp-import and then publish the book by running
ghp-import -n -p -f _build/html
This makes the book available online. It also keeps the source files in the main-branch separate from the html-files in _build in the gh-pages branch.
create a pdf
Following Build a PDF, I first run pip install pyppeteer to use with jb build . --builder pdfhtml but this produced the error pyppeteer.errors.TimeoutError: Navigation Timeout Exceeded: 30000 ms exceeded. The following did produce a pdf.
jb build . --builder pdflatex
This would need some work by hand to have a nice layout. Maybe worth the effort once a book reaches a state where a book can be considered more or less finished ...
important commands
If, for example, the table of contents in the left-hand pane behaves in a strange way, clean out _build:
jupyter-book build .
open _build/html/index.html
ghp-import -n -p -f _build/html
jupyter-book clean .
Owner
- Name: Alexander Kurz
- Login: alexhkurz
- Kind: user
- Website: alexhkurz.github.io
- Repositories: 41
- Profile: https://github.com/alexhkurz
PhD Ludwig-Maximilians University Munich 2000; CWI Amsterdam and Masaryk University Brno 2000-2002; University of Leicester 2002-2018; Chapman University 2018-
GitHub Events
Total
- Push event: 7
Last Year
- Push event: 7