paolobrasolin / krater

Template to effortlessly build math-rich websites
39 stars 0 forks source link

Installing `bbm` doesn't seem to work #6

Closed jaycech3n closed 2 years ago

jaycech3n commented 2 years ago

Is there an existing issue for this?

Original goal

I want to use the bbm package in antex.

Current impasse

Added bbm it to texlive.packages, but the GitHub action fails. Setting selected_scheme scheme-medium in texlive.profile also doesn't help.

Lacking resources

No response

Additional context

Error message:

! LaTeX Error: File `bbm.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.3 ...mathtools,stmaryrd,tikz-cd,bbm} \\newcommand
                                                  {\\Ix}{\\mathcal{I}_{\\prec x...

No pages of output.
Transcript written on .antex-cache/a3c32dc5748e5a64901f2af86cff4b1a.log.
Latexmk: Examining '.antex-cache/a3c32dc5748e5a64901f2af86cff4b1a.log'
=== TeX engine is 'pdfTeX'
Latexmk: Errors, so I did not complete making targets

Stderr:
Rc files read:
  NONE
Latexmk: This is Latexmk, John Collins, 20 November 2021, version: 4.76.
Rule 'latex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      '.antex-cache/a3c32dc5748e5a64901f2af86cff4b1a.tex'
------------
Run number 1 of rule 'latex'
------------
------------
Running 'latex  -recorder -output-directory=".antex-cache"  ".antex-cache/a3c32dc5748e5a64901f2af86cff4b1a.tex"'
------------
Latexmk: Missing input file 'bbm.sty' (or dependence on it) from following:
  '! LaTeX Error: File `bbm.sty' not found.'
Latexmk: Log file says no output from latex
Latexmk: For rule 'latex', no output was made
Collected error summary (may duplicate other messages):
  latex: Command for 'latex' gave return code 1
      Refer to '.antex-cache/a3c32dc5748e5a64901f2af86cff4b1a.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
jaycech3n commented 2 years ago

Managed to get this to work by adding both bbm-macros and bbm to texlive.packages

paolobrasolin commented 2 years ago

Nice job @jaycech3n!

For future readers: if you're using TeXLive locally, kpsewich is pretty useful to figure out this stuff. If you query it for bbm.sty (seen in the error log) it finds it in bbm-macros:

$ kpsewhich bbm.sty
/usr/local/texlive/2021/texmf-dist/tex/latex/bbm-macros/bbm.sty

In hairy situations it's also useful to use \listfiles at the beginning of your document and then grep the log to find all files the engine is using.

Anyways, there's definitely much value in writing a simple checklist to follow for figuring out this kind of stuff -- opened #7!