Skip to content

Commit e4542fa

Browse files
authored
B375 correct tex combined solutions (#43)
1 parent 1413df7 commit e4542fa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export const handler = async function (
130130
const filenamePDF = `${eachRequestData.fileName}.pdf`;
131131
const localPathPDF = `/tmp/${filenamePDF}`;
132132
const generatePDFResult = await generateFile(
133-
["--pdf-engine=pdflatex", `--template=./template.latex`],
133+
["--pdf-engine=xelatex", `--template=./template.latex`],
134134
localPathPDF,
135135
markdown
136136
);
@@ -145,7 +145,6 @@ export const handler = async function (
145145
case "TEX":
146146
const filenameTEX = `${eachRequestData.fileName}.tex`;
147147
const localPathTEX = `/tmp/${filenameTEX}`;
148-
149148
await generateFile(
150149
[`--template=./template.latex`],
151150
localPathTEX,

src/template.latex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ $endif$
212212
\renewcommand{\rule}[2]{
213213
\OldRule{\linewidth}{#2}}% Emile Touber's horizontal rule
214214

215+
\usepackage{xcolor}
215216
\newcommand{\lambdalabel}[1]{}
217+
\newcommand{\lambdastep}{\\\textcolor[rgb]{0.9, 0.9, 0.9}{\rule{\linewidth}{0.5mm}}\\}
216218

217219
% Conditional inclusion of pifont package
218220
\IfFileExists{pifont.sty}{%

0 commit comments

Comments
 (0)