First stable release of taggy for easy slides, showcasing contextual abstraction

The title says it all :slight_smile: Less than 300 lines of code. Easy-to-use thanks to Scala givenusing.

More info here: taggy/README.md at main · bjornregnell/taggy · GitHub
Feedback, contributions, issues welcome!

(It’s supposed to be Lean Scala…)

EDIT: Hotfix v1.0.1 is already out:

4 Likes

Starred! Looks very useful.

1 Like

Starred! Looks very useful.

Thanks! :heart:
Trying to make it easy to get going with Scala and also help teachers show its beauty.

Just

curl -fL https://github.com/bjornregnell/taggy/releases/download/v1.0.0/init-slides.sh | bash
code slides.scala

and you are good to go :slight_smile:

And it also demonstrates that you don’t need to understand what’s under the hood (recursion, contextual abstraction) in order to use the api. So Scala enables you to use advanced concepts that won’t hit the user with unnecessary complexity.

1 Like

Ran into a small issue

Latexmk: First line of .log file 'out.log' is not in standard format.
Latexmk: Error on first line of 'out.log'.
  This is apparently not a TeX log file.    The first line is:
Rc files read:
Latexmk: Sometimes, the -f option can be used to get latexmk
  to try to force complete processing.
  But normally, you will need to correct the file(s) that caused the
  error, and then rerun latexmk.
  In some cases, it is best to clean out generated files before rerunning
  latexmk after you've corrected the files.
Latex ERROR in target/out.log
Opening pdf-file in target
gio: file:///home/spam/Downloads/target/out.pdf: Error when getting information for file “/home/spam/Downloads/target/out.pdf”: No such file or directory

A bit more details, I believe you are Swedish right?

! Package babel Error: Unknown option 'swedish'. Either you misspelled it
(babel)                or the language definition file swedish.ldf
(babel)                was not found.
(babel)                There is a locale ini file for this language.
(babel)                If it’s the main language, try adding `provide=*'
(babel)                to the babel package options.

Looks like I needed apt install texlive-lang-european (because I didn’t have texlive-full).

If you need to figure out which package has the file you need, install the apt-file tool and update its database

apt install apt-file
apt-file update

Then search

❯ apt-file search swedish.ldf
texlive-lang-european: /usr/share/texlive/texmf-dist/tex/generic/babel-swedish/swedish.ldf
texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/datetime2-swedish/datetime2-swedish.ldf
texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/doclicense/doclicense-swedish.ldf
texlive-latex-recommended: /usr/share/texlive/texmf-dist/tex/latex/polyglossia/gloss-swedish.ldf

May be helpful to others…

1 Like

Aha. Many thanks. Issue welcome.

I do recommend sudo apt install texlive-full in the readme but this is an unnecessary hurdle: I should just remove those tricky dots in my name… :slight_smile:

3 Likes

:sweat_smile: Yeah, I try to avoid texlive-full since it’s upwards of 10 GB.
MikTeX can on-the-fly install missing packages but that’s not common / default on Ubuntu systems.

Anyway I opened a (different) issue.

1 Like

Aha. I’ll update the readme asap with your package install help! (Before I remove all swdish stuff and add a Setting that will opt in for babel swedish etc etc)

1 Like

Quick-fix live now here:

I should remove all Swedish stuff and add a Setting Lang → “swedish” that opts in to Babel Swedish for my own local use in this cold country up north :slight_smile:

Many thanks again @spamegg1

2 Likes