Skip to content

Commit bf5c901

Browse files
committed
Config l3build script build.lua.
1 parent 1ad21b5 commit bf5c901

File tree

15 files changed

+62
-19
lines changed

15 files changed

+62
-19
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ preamble.dtx
66
# macOS DS
77
.DS_Store
88

9+
# l3build
10+
/build
11+
912
# LaTeX aux files
1013
*.aux
1114
*.bbl
1.27 MB
Binary file not shown.

main.tex renamed to CMT.tex

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
\tableofcontents
2121
\mainmatter
2222

23-
\input{./chapter/0_Preparation.tex}
24-
\input{./chapter/1_.tex}
25-
\input{./chapter/2_.tex}
26-
\input{./chapter/3_.tex}
27-
\input{./chapter/4_.tex}
28-
\input{./chapter/5_.tex}
29-
\input{./chapter/6_.tex}
30-
\input{./chapter/7_TBC.tex}
31-
\input{./chapter/9_semiconductors.tex}
23+
\include{./chapter/0_Preparation.tex}
24+
\include{./chapter/1_.tex}
25+
\include{./chapter/2_.tex}
26+
\include{./chapter/3_.tex}
27+
\include{./chapter/4_.tex}
28+
\include{./chapter/5_.tex}
29+
\include{./chapter/6_.tex}
30+
\include{./chapter/7_TBC.tex}
31+
\include{./chapter/9_semiconductors.tex}
3232

3333
\newcommand \sectionname {Lecture \#}
3434
\appendix
@@ -40,16 +40,16 @@
4040
\renewcommand *\thesection{\sectionname \arabic{section}}
4141
\renewcommand*\familydefault {\sfdefault}
4242
\newweek
43-
\input{./homework/assignment1.tex}
43+
\include{./chapter/assignment1.tex}
4444
\newweek
45-
\input{./homework/assignment2.tex}
45+
\include{./chapter/assignment2.tex}
4646
\newweek
47-
\input{./homework/assignment3.tex}
47+
\include{./chapter/assignment3.tex}
4848
\newweek
49-
\input{./homework/assignment4.tex}
49+
\include{./chapter/assignment4.tex}
5050
\newweek
51-
\input{./homework/assignment5.tex}
51+
\include{./chapter/assignment5.tex}
5252
\newweek
53-
\input{./homework/assignment6.tex}
53+
\include{./chapter/assignment6.tex}
5454

5555
\end{document}

build.lua

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
--[==========================================[--
2+
L3BUILD FILE FOR "[PHY4804]CMT"
3+
--]==========================================]--
4+
5+
module = "CMT"
6+
version = "2025-11-16"
7+
ctanzip = module
8+
excludefiles = {"*~"}
9+
suppdirs = {"chapter", "media"}
10+
unpacksuppfiles = {"*.bib"}
11+
textfiles = {"*.md", "LICENSE", "*.lua"}
12+
typesetexe = "latexmk"
13+
typesetfiles = {module .. ".tex"}
14+
typesetopts = "-pdf -interaction=nonstopmode"
15+
16+
function docinit_hook()
17+
for _,supp in pairs(suppdirs) do
18+
run(currentdir, "cp -r " .. supp .. " " .. typesetdir)
19+
end
20+
return 0
21+
end
22+
function tex(file,dir,cmd)
23+
dir = dir or "."
24+
cmd = cmd or typesetexe .. " " .. typesetopts
25+
return run(dir, cmd .. file)
26+
end
27+
function copyctan()
28+
local pkgdir = ctandir .. "/" .. ctanpkg
29+
mkdir(pkgdir)
30+
for _,main in ipairs({typesetsuppfiles, pdffiles}) do
31+
for _,glob in pairs(main) do
32+
cp(glob, typesetdir, pkgdir)
33+
end
34+
end
35+
local pkgsuppdir = ctandir .. "/" .. ctanpkg .. "/" .. supportdir
36+
mkdir(pkgsuppdir)
37+
for _,supptab in pairs(typesetsuppfiles) do
38+
cp(supptab, supportdir, pkgsuppdir)
39+
end
40+
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ \section{Phonon}
158158
\]
159159
The plotted figure of atoms is attached as follows (Just show the relative position for reference).
160160
\begin{center}
161-
\includegraphics[width = .5\linewidth]{./homework/hw2_fig.pdf}
161+
\includegraphics[width = .5\linewidth]{./media/hw2_fig.pdf}
162162
\end{center}
163163
\end{enumext}
164164
\end{solution}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@ \section{Nearly free electron model}
116116
\begin{center}
117117
\begin{minipage}{.42\linewidth}
118118
\centering
119-
\includegraphics[height = .16\paperwidth]{homework/hw5-1.png}
119+
\includegraphics[height = .16\paperwidth]{media/hw5-1.png}
120120
\end{minipage}
121121
\hspace*\fill
122122
\begin{minipage}{.27\linewidth}
123123
\centering
124-
\includegraphics[height = .16\paperwidth]{homework/hw5-2.png}
124+
\includegraphics[height = .16\paperwidth]{media/hw5-2.png}
125125
\end{minipage}
126126
\hspace*\fill
127127
\begin{minipage}{.27\linewidth}
128128
\centering
129-
\includegraphics[height = .16\paperwidth]{homework/hw5-3.png}
129+
\includegraphics[height = .16\paperwidth]{media/hw5-3.png}
130130
\end{minipage}
131131
\end{center}
132132
The perturbation couples these states with matrix element

0 commit comments

Comments
 (0)