Skip to content

Commit 859330d

Browse files
committed
Improve PDF output
1 parent e85c417 commit 859330d

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

tools/main.tex

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
${\rm Lambda8cc} =$
1717
\input{lambda-8cc.tex}
1818
\begin{thebibliography}{A99}
19-
\bibitem[1]{1} GitHub repository for lambda-8cc: https://github.com/woodrush/lambda-8cc
20-
\bibitem[2]{2} 8cc, by Rui Ueyama: https://github.com/rui314/8cc
21-
\bibitem[3]{3} ELVM, by Shinichiro Hamaji: https://github.com/shinh/elvm
19+
\bibitem[1]{1} Hikaru Ikuta, lambda-8cc, https://github.com/woodrush/lambda-8cc
20+
\bibitem[2]{2} Rui Ueyama, 8cc, https://github.com/rui314/8cc
21+
\bibitem[3]{3} Shinichiro Hamaji, ELVM, https://github.com/shinh/elvm
2222
\end{thebibliography}
2323
\end{document}

tools/make-latex.sh

+11-10
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ set -e
33

44
cat lambda-8cc.lam \
55
| tr "\n" "@" \
6-
| LC_ALL=C sed 's/f@/f/g' \
7-
| LC_ALL=C sed 's/@/\n/g' \
8-
| LC_ALL=C sed -e "s/^/@_ $/g" \
9-
| LC_ALL=C sed -e "s/$/$ @/g" \
10-
| LC_ALL=C sed -e "s/\\\\/@\\\\allowbreak \\\\lambda /g" \
11-
| LC_ALL=C sed -e "s/(/@\\\\allowbreak (/g" \
12-
| LC_ALL=C sed -e "s/)/@) \\\\allowbreak /g" \
13-
| LC_ALL=C sed -e "s/\./.\\\\allowbreak /g" \
14-
| LC_ALL=C tr "@" "\n" \
15-
| LC_ALL=C sed -e "s/_/\\\\noindent/g" \
6+
| sed 's/f@/f/g' \
7+
| sed 's/@/\n/g' \
8+
| sed -e "s/^/@_ $/g" \
9+
| sed -e "s/$/$ @/g" \
10+
| sed -e "s/\\\\/@\\\\allowbreak \\\\lambda /g" \
11+
| sed -e "s/(/@\\\\allowbreak (/g" \
12+
| sed -e "s/)/@) \\\\allowbreak /g" \
13+
| sed -e "s/\./.\\\\allowbreak /g" \
14+
| sed -e '0,/@_/ s/@_//' \
15+
| tr "@" "\n" \
16+
| sed -e "s/_/\\\\noindent/g" \
1617
> lambda-8cc.tex

0 commit comments

Comments
 (0)