hmemcpy / milewski-ctfp-pdf

Bartosz Milewski's 'Category Theory for Programmers' unofficial PDF and LaTeX source
https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/
Other
11.02k stars 596 forks source link

make fails with Inconsolata bold #193

Open PhilLAL opened 5 years ago

PhilLAL commented 5 years ago

Hi Igal, thank you for sharing this source code. Following your README, I installed pygments (through conda) and then I tried to build. However, make fails with following error:

/bin/echo -n '\newcommand{\OPTversion}{' > version.tex
git describe --tags --always --long | tr -d '\n' >> version.tex
/bin/echo -n '}' >> version.tex
if which latexmk > /dev/null 2>&1 ;\
then latexmk -shell-escape -interaction=nonstopmode -halt-on-error -norc -pdflatex="xelatex %O %S" -pdf ctfp-reader.tex ;\
else echo "Error: unable to find latexmk. Is it installed?" ;\
fi
Latexmk: This is Latexmk, John Collins, 1 January 2015, version: 4.41.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Non-existent destination files:
      'ctfp-reader.pdf'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'xelatex  -shell-escape -interaction=nonstopmode -halt-on-error -recorder  "ctfp-reader.tex"'
------------
This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/Debian) (preloaded format=xelatex)
 \write18 enabled.
entering extended mode
(./ctfp-reader.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 3 language(s) loaded.
(./opt-reader-10in.tex) (./preamble.tex
(/usr/share/texlive/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/bk11.clo))
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmr.fd))
(/usr/share/texlive/texmf-dist/tex/xelatex/xunicode/xunicode.sty
(/usr/share/texmf/tex/latex/tipa/t3enc.def
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmss.fd))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/xelatex/xetex-def/xetex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/share/texlive/texmf-dist/tex/latex/libertine/libertine.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))
(/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def))
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Numbers=Monospaced,Lining' (+tnum) not available for font
* 'LinLibertine_RZI' with script 'Latin' and language 'Default'.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Numbers=Monospaced,Lining' (+tnum) not available for font
* 'LinLibertine_RZI' with script 'Latin' and language 'Default'.
*************************************************
(/usr/share/texlive/texmf-dist/tex/latex/libertine/LinLibertine_R.tex)
(/usr/share/texlive/texmf-dist/tex/latex/libertine/LinBiolinum_R.tex)
(/usr/share/texlive/texmf-dist/tex/latex/libertine/LinBiolinum_K.tex)
(/usr/share/texlive/texmf-dist/tex/latex/libertine/LinLibertine_I.tex)
(/usr/share/texlive/texmf-dist/tex/latex/libertine/LKey.tex))kpathsea:make_tex: Invalid fontname `Inconsolata LGC', contains ' '

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "Inconsolata LGC" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

l.22 ...t={Inconsolata LGC Bold}]{Inconsolata LGC}
                                                   %  ("typographic")
No pages of output.
Transcript written on ctfp-reader.log.
Latexmk: Log file says no output from latex
Latexmk: For rule 'pdflatex', no output was made
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 256
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.
Makefile:40 : la recette pour la cible « ctfp-reader.pdf » a échouée
make: *** [ctfp-reader.pdf] Erreur 12

While looking for Inconsolata font, I found

/usr/share/texlive/texmf-dist/fonts/opentype/public/inconsolata/Inconsolatazi4-Bold.otf
/usr/share/texlive/texmf-dist/fonts/opentype/public/inconsolata/Inconsolatazi4-Regular.otf

I replaced "Inconsolato LCG Bold" and "Inconsolato LCG" by "Inconsolata" in preamble.tex to check if it works and it did. However, I then got a similar issue with "Libertinus Math" font, even if texlive-fonts-extra apt package is already installed Moreover, I needed to replace a bold by a non bold font (Inconsolata) so this is not a correct way to solve my issue.

Building this on an ubuntu 16.04, perhaps some fonts are required to build the book? Do you have a list of requirements and if they are not into package where I can find them? Regards

cristianvasquez commented 4 years ago

Hi, any solution for this problem?

cristianvasquez commented 4 years ago

I managed to compile downloading the following fonts:

https://github.com/samposm/Inconsolata-LGC https://github.com/alif-type/libertinus

And adding them to ~/.fonts/Library

... There are other problems when building in Linux, for example, the file: content/0.0/preface.tex is not found, since it's referenced as: content/0.0/Preface.tex

'! LaTeX Error: File `content/0.0/Preface.tex' not found.'