View Single Post
Old 02-19-2009, 07:09 PM   #12
tali3sin
Connoisseur
tali3sin began at the beginning.
 
Posts: 54
Karma: 38
Join Date: Feb 2009
Device: HTC Magic
SOLVED!

Alright, so I was missing a font. Pncr7t.tfm
For future reference to anyone who needs to know, it's found in the texlive-fonts-recommended package, in the Ubuntu repositories.

Script now appears to work perfectly, thank you again


The now solved problem, below:

Hurrum, so, I'm still a bit of a linux newbie when it comes to the inner workings.

But, I managed to get the script from "Not working at all." to "Generating a completely blank pdf"

Have installed latex, gawk, and the other things the script said were missing. And, I assume it's all there.

For simplicity's sake, I have my desired txt file in the same directory as the script.

However... am now running into this:

Quote:
blah@blah-laptop:/usr/local/bin$ sh format_book.sh book.txt
book.txt
"book"
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
kpathsea: Running mktextfm pncr7t
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input pncr7t
This is METAFONT, Version 2.71828 (Web2C 7.5.6)

kpathsea: Running mktexmf pncr7t
! I can't find file `pncr7t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input pncr7t

Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input pncr7t

Transcript written on mfput.log.
grep: pncr7t.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input pncr7t' failed to make pncr7t.tfm.

/tmp/book.dvi -> /tmp/book.pdf
[1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][22][23][24][25][26][27][28][29][30][31][32][33][34][35][36][37][38][39][40][41][42][43][44][45][46][47][48][49][50][51][52][53][54][55][56][57][58][59][60][61][62][63][64][65][66][67][68][69][70][71][72][73][74][75][76][77][78][79][80][81][82][83][84][85][86][87][88][89][90][91][92][93][94][95][96][97][98][99][100][101][102][103][104][105][106][107][108][109][110][111][112][113][114][115][116][117][118][119][120][121][122][123][124][125][126][127][128][129][130][131][132][133][134][135][136][137][138][139][140][141][142][143][144][145][146][147][148][149][150][151][152][153][154][155][156][157][158][159][160][161][162][163][164][165][166][167][168][169][170][171][172][173][174][175][176][177][178][179][180][181][182][183][184][185][186][187][188][189][190][191][192][193][194][195][196][197][198][199][200][201][202][203][204][205][206][207][208][209][210][211][212][213][214][215][216]
80387 bytes written
My guess is that this line: ! I can't find file `pncr7t'.
Is the problem, but I'm not sure what it means.
Pncr7t appears to be a font, I installed a tex package with a font of the same name installed - but to no avail, so maybe I'm wrong.

Tips? ;-)

Last edited by tali3sin; 02-19-2009 at 07:19 PM. Reason: Solved the problem
tali3sin is offline   Reply With Quote