File: pybook.patch

package info (click to toggle)
pycode-browser 20120614%2Bgit%2Bb041dd2-7
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,236 kB
  • ctags: 1,194
  • sloc: python: 2,220; xml: 152; makefile: 39
file content (62 lines) | stat: -rw-r--r-- 1,188 bytes parent folder | download
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
--- a/pybooksrc/mapy.lyx
+++ b/pybooksrc/mapy.lyx
@@ -13260,7 +13260,7 @@
 \backslash
 includegraphics[width=0.2
 \backslash
-textwidth]{pics/arcs.eps} 
+textwidth]{pics/arcs.png}
 \end_layout
 
 \begin_layout Standard
@@ -13268,7 +13268,7 @@
 \backslash
 includegraphics[width=0.2
 \backslash
-textwidth]{pics/sawtooth.eps}
+textwidth]{pics/sawtooth.png}
 \end_layout
 
 \begin_layout Standard
@@ -13322,7 +13322,7 @@
 \backslash
 includegraphics[width=0.2
 \backslash
-textwidth]{pics/arcs.eps} 
+textwidth]{pics/arcs.png}
 \end_layout
 
 \begin_layout Standard
@@ -13331,7 +13331,7 @@
 \backslash
 includegraphics[width=0.2
 \backslash
-textwidth]{pics/sawtooth.eps}
+textwidth]{pics/sawtooth.png}
 \end_layout
 
 \begin_layout Standard
--- /dev/null
+++ b/pybooksrc/Makefile
@@ -0,0 +1,21 @@
+.SUFFIXES= .lyx .tex .pdf
+DESTDIR=
+
+all: mapy.pdf
+
+clean:
+	rm -f *~ *.tex *.aux *.log *.pdf *.toc pics/*.eps
+
+install:
+
+%.tex: %.lyx
+	tmpHome=$$(mktemp -d); \
+	HOME=$${tmpHome} lyx --export latex $<; \
+	rm -rf $${tmpHome}
+
+%.pdf: %.tex
+	pdflatex $<
+	logfile=$$(echo $< | sed 's/tex/log/'); \
+	while (grep  Warning $${logfile}| grep -iq run); do \
+	  pdflatex $<; \
+	done