README for matplotlib fonts problemns
This commit is contained in:
parent
2eaddbf90b
commit
bfad4ac339
3
Makefile
3
Makefile
@ -36,6 +36,9 @@ watchpdf :
|
||||
watchscript :
|
||||
while true; do ! make -s -q script && make script; sleep 0.5; done
|
||||
|
||||
cleanplots:
|
||||
for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture cleanplots; done
|
||||
|
||||
cleantex:
|
||||
rm -f *~ $(BASENAME).aux $(BASENAME).log $(BASENAME).out $(BASENAME)-solutions.tex $(BASENAME).toc $(BASENAME).lo? $(BASENAME).idx $(BASENAME)-term.i* $(BASENAME)-enterm.i* $(BASENAME)-code.i*
|
||||
for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture cleantex; done
|
||||
|
23
README.fonts
Normal file
23
README.fonts
Normal file
@ -0,0 +1,23 @@
|
||||
Fonts for matplotlib
|
||||
--------------------
|
||||
|
||||
Make sure the right fonts are installed:
|
||||
```
|
||||
sudo apt-get install ttf-lyx2.0
|
||||
```
|
||||
There is some conflict with `lyx` fonts, so we first remove them
|
||||
and remove the matplotlib font cache:
|
||||
```
|
||||
sudo dpkg --remove --force-depends fonts-lyx
|
||||
rm ~/.cache/matplotlib/fontList.cache
|
||||
# rm ~/.matplotlib/fontList.cache # older ubuntus
|
||||
```
|
||||
Then we need to plot something to recreate the matplotlib font cache:
|
||||
```
|
||||
make cleanplots
|
||||
make plots
|
||||
```
|
||||
To give back the fonts to lyx we reinstall them
|
||||
```
|
||||
sudo apt-get install fonts-lyx
|
||||
```
|
@ -47,8 +47,9 @@ cleantex:
|
||||
rm -f $(BASENAME).aux $(BASENAME).log
|
||||
rm -f $(BASENAME)-chapter.aux $(BASENAME)-chapter.log $(BASENAME)-chapter.out $(BASENAME)-chapter.idx $(BASENAME)-solutions.tex $(BASENAME)-solutions.tex
|
||||
|
||||
cleanplots: cleanpythonplots cleangnuplots
|
||||
|
||||
cleanchapter : cleanpythonplots cleangnuplots cleantex
|
||||
cleanchapter : cleanplots cleantex
|
||||
|
||||
|
||||
cleanallchapter : cleanchapter
|
||||
|
@ -1,7 +1,7 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: pointprocessscetchA.tex
|
||||
%%Creator: gnuplot 4.6 patchlevel 4
|
||||
%%CreationDate: Mon Dec 2 10:40:01 2019
|
||||
%%CreationDate: Mon Dec 2 13:03:15 2019
|
||||
%%DocumentFonts:
|
||||
%%BoundingBox: 50 50 373 135
|
||||
%%EndComments
|
||||
@ -433,7 +433,7 @@ SDict begin [
|
||||
/Author (benda)
|
||||
% /Producer (gnuplot)
|
||||
% /Keywords ()
|
||||
/CreationDate (Mon Dec 2 10:40:01 2019)
|
||||
/CreationDate (Mon Dec 2 13:03:15 2019)
|
||||
/DOCINFO pdfmark
|
||||
end
|
||||
} ifelse
|
||||
|
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Title: pointprocessscetchB.tex
|
||||
%%Creator: gnuplot 4.6 patchlevel 4
|
||||
%%CreationDate: Mon Dec 2 10:40:01 2019
|
||||
%%CreationDate: Mon Dec 2 13:03:15 2019
|
||||
%%DocumentFonts:
|
||||
%%BoundingBox: 50 50 373 237
|
||||
%%EndComments
|
||||
@ -433,7 +433,7 @@ SDict begin [
|
||||
/Author (benda)
|
||||
% /Producer (gnuplot)
|
||||
% /Keywords ()
|
||||
/CreationDate (Mon Dec 2 10:40:01 2019)
|
||||
/CreationDate (Mon Dec 2 13:03:15 2019)
|
||||
/DOCINFO pdfmark
|
||||
end
|
||||
} ifelse
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user