Raku / book

Using Raku – an unfinished book about Raku
https://perl6book.com/
284 stars 49 forks source link

Unable to build book #1

Closed coke closed 14 years ago

coke commented 14 years ago

... Can't attach files to issues? Here's the build failure inlined:

Script started on Fri Apr 30 19:51:18 2010 coke@slurpee ~/sandbox/perl6-book (git:master) $ make perl bin/book-to-latex src/preface.pod src/basics.pod src/operators.pod src/subs-n-sigs.pod src/multi-dispatch.pod src/classes-and-objects.pod src/regexes.pod src/grammars.pod > build/book.tex Use of uninitialized value in concatenation (.) or string at /Users/coke/usr/lib/perl5/site_perl/5.12.0/Pod/PseudoPod/LaTeX.pm line 200. inkscape --export-pdf=build/mmd-table.pdf -D src/mmd-table.svg cd build && pdflatex book.tex && pdflatex book.tex This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) entering extended mode (./book.tex LaTeX2e <2003/12/01> Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (/opt/local/share/texmf-dist/tex/latex/base/report.cls Document Class: report 2004/02/16 v1.4f Standard LaTeX document class (/opt/local/share/texmf-dist/tex/latex/base/size11.clo)) (/opt/local/share/texmf-dist/tex/latex/graphics/graphics.sty (/opt/local/share/texmf-dist/tex/latex/graphics/trig.sty) (/opt/local/share/texmf-dist/tex/latex/graphics/graphics.cfg) (/opt/local/share/texmf-dist/tex/latex/graphics/pdftex.def)) (/opt/local/share/texmf-dist/tex/latex/graphics/graphicx.sty (/opt/local/share/texmf-dist/tex/latex/graphics/keyval.sty)) (/opt/local/share/texmf-dist/tex/latex/carlisle/colortbl.sty (/opt/local/share/texmf-dist/tex/latex/tools/array.sty) (/opt/local/share/texmf-dist/tex/latex/graphics/color.sty (/opt/local/share/texmf-dist/tex/latex/graphics/color.cfg))) (/opt/local/share/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty Style option: `fancyvrb' v2.6, with DG/SPQR fixes <1998/07/17> (tvz) No file fancyvrb.cfg. )

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

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

Enter file name: (/opt/local/share/texmf-dist/tex/latex/base/inputenc.sty (/opt/local/share/texmf-dist/tex/latex/base/utf8.def (/opt/local/share/texmf-dist/tex/latex/base/t1enc.dfu) (/opt/local/share/texmf-dist/tex/latex/base/ot1enc.dfu) (/opt/local/share/texmf-dist/tex/latex/base/omsenc.dfu))) No file book.aux. (/opt/local/share/texmf-dist/tex/context/base/supp-pdf.tex (/opt/local/share/texmf-dist/tex/context/base/supp-mis.tex loading : Context Support Macros / Miscellaneous (2004.10.26) ) loading : Context Support Macros / PDF (2004.03.26) ) Chapter 1. [1{/opt/local/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] Overfull \hbox (2.24872pt too wide) in paragraph at lines 39--40 \OT1/cmr/m/n/10.95 win-dows is avail-able from \OT1/cmr/m/it/10.95 http://sourc eforge.net/projects/parrotwin32/f[]iles/\OT1/cmr/m/n/10.95 . [2] [3] Chapter 2.

LaTeX Font Warning: Font shape OMS/cmtt/m/n' undefined (Font) usingOMS/cmsy/m/n' instead (Font) for symbol `textbraceleft' on input line 117.

[4] [5]

LaTeX Warning: !h' float specifier changed to!ht'.

[6] [7] [8]

LaTeX Font Warning: Font shape OMS/cmtt/bx/n' undefined (Font) usingOMS/cmtt/m/n' instead (Font) for symbol `textbraceleft' on input line 395.

[9] Chapter 3.

! LaTeX Error: Command \guillemotright unavailable in encoding OT1.

See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...

l.432 ...-width = 1 + [max] @scores».key».chars;

?

! LaTeX Error: Command \guillemotright unavailable in encoding OT1.

See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...

l.432 ...-width = 1 + [max] @scores».key».chars;

? X </opt/local/share/texmf-dist/fonts/type1/bluesky/cm/cmbx10.pfb></opt/local/shar e/texmf-dist/fonts/type1/bluesky/cm/cmssbx10.pfb></opt/local/share/texmf-dist/f onts/type1/bluesky/cm/cmsl10.pfb></opt/local/share/texmf-dist/fonts/type1/blues ky/cm/cmsy10.pfb></opt/local/share/texmf-dist/fonts/type1/bluesky/cm/cmsy8.pfb> </opt/local/share/texmf-dist/fonts/type1/bluesky/cm/cmtt8.pfb></opt/local/share /texmf-dist/fonts/type1/bluesky/cm/cmtt10.pfb></opt/local/share/texmf-dist/font s/type1/bluesky/cm/cmti10.pfb></opt/local/share/texmf-dist/fonts/type1/bluesky/ cm/cmr10.pfb></opt/local/share/texmf-dist/fonts/type1/bluesky/cm/cmbx12.pfb> Output written on book.pdf (9 pages, 99040 bytes). Transcript written on book.log. make: *\ [build/book.pdf] Error 1 coke@slurpee ~/sandbox/perl6-book (git:master) $ vi screxit

Script done on Fri Apr 30 19:53:59 2010

moritz commented 14 years ago
 ! LaTeX Error: File `bera.sty' not found.

You need to install the 'bera' font package for LaTeX

 ! LaTeX Error: Command \guillemotright unavailable in encoding OT1.

Could you please add the line

 \usepackage[T1]{fontenc}

to the file build/book.tex, and then run pdflatex build/book.tex and see if that fixes this error?

coke commented 14 years ago

The usepackage line defnitely helped - was able to just enter through the missing font error and eventually got a book.pdf.

I was able to find bera font at http://www.ctan.org/tex-archive/fonts/bera/ but am having trouble with installation. Is the font required for the generated book or just nice to have?

moritz commented 14 years ago

Fixed in SHA1:1b7c0ce277cede8b7d3cf94b3f164efc10217465

Bera is not a hard requirement; It is mainly used because Computer Modern, the default font, does not support bold monospace, so B<...> markings get lost in the output.

You can certainly build with that line commented out, or by using another font.

coke commented 14 years ago

Not sure if this is related, but output in =begin screen isn't showing up in the book.