File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,23 +31,29 @@ COPY . .
3131
3232RUN npm run build
3333
34- # Stage 3: Final image
34+ # Stage 3: Final image with LaTeX and pandoc
3535FROM public.ecr.aws/lambda/nodejs:${NODE_VERSION}
3636
37+ # Set working directory
3738WORKDIR ${LAMBDA_TASK_ROOT}
3839
39- # Install Latex environment and dependencies
40+ # Install LaTeX environment and dependencies
4041RUN dnf install -y \
4142 texlive-collection-latexrecommended.noarch \
42- texlive-iftex.noarch
43+ texlive-iftex.noarch \
44+ texlive-braket.noarch \
45+ texlive-cancel.noarch
4346
4447# Copy the LaTeX template
4548COPY ./src/template.latex template.latex
4649
47- # Copy built files from previous stage
50+ # Copy built files from the previous stage
4851COPY --from=builder /app/dist/* ./
52+
53+ # Copy pandoc from the first stage
4954COPY --from=pandoc /usr/bin/pandoc /usr/bin/pandoc
5055
56+ # Set environment variables
5157ENV TEXMFHOME /tmp/texmf
5258ENV TEXMFCONFIG /tmp/texmf-config
5359ENV TEXMFVAR /tmp/texmf-var
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ $if(linestretch)$
88\usepackage{setspace}
99\setstretch{$linestretch$}
1010$endif$
11+ \usepackage{cancel}
1112\usepackage{amssymb,amsmath}
1213\usepackage{ifxetex,ifluatex}
1314\usepackage{fixltx2e} % provides \textsubscript
You can’t perform that action at this time.
0 commit comments