Monday, August 25, 2025

more latex table -- footnote tables

Link: https://texfaq.org/FAQ-footintab : explanatory

LaTeX headaches have no end. Footnote text in tables don't appear using \footnote. The footnote number appears where its placed in the table, but *no* number at the bottom of the page, nor its associated text. The text just disappears.

What worked: the footnotehyper package. It saves footnote texts in an environment and emits them at the end. Tabular usage might be...

\begin{savenotes}
\begin{tabular}

The footnotes appear after the enclosed environment ends, in this case after the table.

The simplest setup is supposedly the tablefootnote package. Maybe. Although it properly compiled and assigned a number, no footnote text was generated.

Thursday, August 7, 2025

STT - 2025

My last attempt at STT was in 2022. Limited success. Really could only do it from the mic, not to a file. Recently, I was looking at this blog, and realized there might be some updates that make it possible.

Thursday, July 17, 2025

2025 file issues

Attempting to backup the various media filetypes has become a nightmare, just the way WIPO-friendly attorneys want it. Even in 2025, lawsuits make it tedious AF to produce a format which plays across devices. For audio, Ye Olde MP3 is still king. For video, MP4's now contain so many different codecs that sometimes they will play, other times they do not. Typically an H264 encoding with AAC audio will still go on nearly anything.

First get a list of the installed applications, to see if any apps are necessary.

$ pacman -Qet

sample WEBM with OPUS audio

Suppose a standard download in 720p, no particular audio spec.

$ yt-dlp -S res:720 "https:foo"

So we now have this file "foo.webm", which is in a WEBM container, not an MP4 container, but we only want the audio. First we check it.

$ ffmpeg -i foo.webm
Input #0, matroska,webm, from 'foo.webm':
Metadata:
COMPATIBLE_BRANDS: iso6av01mp41
MAJOR_BRAND : dash
MINOR_VERSION : 0
ENCODER : Lavf61.7.100
Duration: 01:20:00.87, start: 0.000000, bitrate: 910 kb/s
Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bt709), 1280x720, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 1k tbn (default)
Metadata:
HANDLER_NAME : ISO Media file produced by Google Inc.
VENDOR_ID : [0][0][0][0]
DURATION : 01:20:00.834000000
Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
Metadata:
DURATION : 01:20:00.868000000

So the OPUS filetype is the audio. Thus, to avoid re-encoding unintentionally, we should just pull it out as an OPUS file without additional actions.

$ ffmpeg -i foo.webm -vn -acodec copy fooaudio.opus

We'd like to leave it an OPUS, but OPUS won't play on anything rolling. So, let's say 256Kb or 320Kb MP3 should do it. That's re-encode 1. We can use, eg Ocenaudio to edit the OPUS to whatever we need and save it as an MP3. I might want to touch it up further to change the speed with sox, which makes a second encode. I might turn up the volume a touch to make sure it overcomes that. Note the "C" is a capital.

$ sox -v 1.1 fooaudio.mp3 -C 320 fooaudio90.mp3 speed 0.90

Sunday, January 12, 2025

pdftk - some usefulness

Some people like to receive PDF's encrypted, so I had to find a way to do it. I think it's stupid, since it can be cracked anyway, but whatever. It's a PITA. pdftk has some options that helped. Out of the box, Evince stalled attempting to open pdftk encrypted files, whereas an Adobe Acrobat encrypted file would not.

works

The simplest usage seems to do the best. Basically an input, output (if I want to rename), and a password. Opens in Evince and on receivers' Adobe Acrobat.

# pacman -S pdftk
$ pdftk somefile.pdf output renamed.pdf userpw foo
Warning: Using a password on the command line interface can be insecure.
Use the keyword PROMPT to supply a password via standard input instead.