Skip to content

Commit

Permalink
feat: latex export
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreminger committed Jan 20, 2024
1 parent 65ed189 commit 730cf5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,7 @@ Please include a link to this sheet in the email to assist in debugging the prob
return markdown;
}
async function getDocument(docType: "docx" | "pdf" | "md", getShareableLink = false) {
async function getDocument(docType: "docx" | "pdf" | "md" | "tex", getShareableLink = false) {
const markDown = "<!-- Created with EngineeringPaper.xyz -->\n" + await getMarkdown(getShareableLink);
const upload_blob = new Blob([markDown], {type: "text/markdown"});
Expand Down
7 changes: 4 additions & 3 deletions src/DownloadDocumentModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
export let open = true;
const dispatch = createEventDispatcher<{
downloadDocument: {docType: "docx" | "pdf" | "md", getShareableLink: boolean};
downloadDocument: {docType: "docx" | "pdf" | "md" | "tex", getShareableLink: boolean};
downloadSheet: null;
}>();
let docType: "epxyz" | "docx" | "pdf" | "md" = "epxyz";
let docType: "epxyz" | "docx" | "pdf" | "md" | "tex" = "epxyz";
let getShareableLink = false;
async function handleSave() {
Expand Down Expand Up @@ -56,11 +56,12 @@
<RadioButton labelText="Markdown File (no data leaves your computer)" value="md" />
<RadioButton labelText="Microsoft Word .docx File (processed on the EngineeringPaper.xyz server, no data is retained on the server)" value="docx" />
<RadioButton labelText="PDF File (processed on the EngineeringPaper.xyz server, no data is retained on the server)" value="pdf" />
<RadioButton labelText="LaTeX File (images and plots are not included, processed on the EngineeringPaper.xyz server, no data is retained on the server)" value="tex" />
</RadioButtonGroup>
<div>
<div class="bx--label">Shareable Link</div>
<Checkbox
labelText="Create a shareable link and add it to the generated document (only applies to md, docx, and pdf files, anyone with this private link will be able to view your original sheet)"
labelText="Create a shareable link and add it to the generated document (only applies to md, docx, pdf, and tex files, anyone with this private link will be able to view your original sheet)"
bind:checked={getShareableLink}
disabled={docType === "epxyz"}
/>
Expand Down

0 comments on commit 730cf5f

Please sign in to comment.