Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM pandoc/latex:3.3.0
FROM pandoc/typst:3.7.0

ARG ENVIRONMENT=production

Expand Down
5 changes: 1 addition & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ async def convert(self):
match self.doc_type:
case "pdf":
cmd = f"pandoc --from markdown --to pdf --standalone --embed-resources --no-highlight \
-V 'mainfont:DejaVuSerif' \
-V 'sansfont:DejaVuSans' \
-V 'monofont:DejaVuSansMono' \
--pdf-engine=lualatex {MD_FILE_NAME} -o {output_file_name}"
--pdf-engine=typst {MD_FILE_NAME} -o {output_file_name}"
case "tex":
cmd = f"pandoc --from markdown --to latex --standalone --embed-resources --no-highlight {MD_FILE_NAME} -o {output_file_name}"
case _:
Expand Down
Binary file modified tests/output_reference.docx
Binary file not shown.
Binary file modified tests/output_reference.pdf
Binary file not shown.
5 changes: 2 additions & 3 deletions tests/output_reference.tex
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
]{article}
\usepackage{xcolor}
\usepackage{amsmath,amssymb}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
Expand Down Expand Up @@ -35,11 +36,9 @@
}{% if KOMA class
\KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{bookmark}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same}
Expand Down
Binary file modified tests/output_reference_0.docx
Binary file not shown.
Binary file modified tests/output_reference_1.docx
Binary file not shown.
Binary file modified tests/output_reference_10.docx
Binary file not shown.
Binary file modified tests/output_reference_11.docx
Binary file not shown.
Binary file modified tests/output_reference_12.docx
Binary file not shown.
Binary file modified tests/output_reference_13.docx
Binary file not shown.
Binary file modified tests/output_reference_14.docx
Binary file not shown.
Binary file modified tests/output_reference_15.docx
Binary file not shown.
Binary file modified tests/output_reference_16.docx
Binary file not shown.
Binary file modified tests/output_reference_17.docx
Binary file not shown.
Binary file modified tests/output_reference_18.docx
Binary file not shown.
Binary file modified tests/output_reference_19.docx
Binary file not shown.
Binary file modified tests/output_reference_2.docx
Binary file not shown.
Binary file modified tests/output_reference_3.docx
Binary file not shown.
Binary file modified tests/output_reference_4.docx
Binary file not shown.
Binary file modified tests/output_reference_5.docx
Binary file not shown.
Binary file modified tests/output_reference_6.docx
Binary file not shown.
Binary file modified tests/output_reference_7.docx
Binary file not shown.
Binary file modified tests/output_reference_8.docx
Binary file not shown.
Binary file modified tests/output_reference_9.docx
Binary file not shown.