Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile LaTeX documents on the client-side using SwiftLaTeX #227

Merged
merged 7 commits into from
Dec 18, 2023
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
47 changes: 3 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,9 @@
![resumake-logo](https://i.imgur.com/Y4JmhrV.png)

---

# Important note

Resumake is currently undergoing a major v3 rewrite. For any thing related to the current app, please see [v2-(old)](https://github.com/saadq/resumake.io/tree/v2-(old)).

---
> [!NOTE]
> Resumake is currently undergoing a major v3 rewrite. For any thing related to the current app, please see [v2-(old)](https://github.com/saadq/resumake.io/tree/v2-(old)).

# resumake.io

> A website for automatically generating elegant LaTeX resumes without the need to write any TeX code yourself.

<a href="https://discord.gg/UYygFCF">
<img src="https://img.shields.io/badge/chat-discord-blue?style=flat&logo=discord" alt="discord chat">
</a>
<a href="https://opencollective.com/resumake/donate">
<img src="https://img.shields.io/badge/donate-$-ff69b4.svg?maxAge=2592000">
</a>
<a href="#backers">
<img src="https://opencollective.com/resumake/backers/badge.svg">
</a>
<a href="#sponsors">
<img src="https://opencollective.com/resumake/sponsors/badge.svg">
</a>
A website for automatically generating elegant LaTeX resumes without the need to write any TeX code yourself.

![resumake](https://i.imgur.com/QUoFVmG.png)

Expand All @@ -43,26 +23,5 @@ Thanks very much to the creators of the LaTeX templates used in this website.
* [Daniil Belyakov](https://github.com/dnl-blkv)
* [Frits Wenneker](https://www.overleaf.com/latex/templates/your-new-cv/xqzhcmqkqrtw)

## Running resumake.io locally

Ensure you have the following installed:
- Node v16 or greater
- LaTeX (TinyTeX Recommended)
```sh
$ curl -sL "https://yihui.org/tinytex/install-bin-unix.sh" | sh
$ tlmgr install preprint enumitem ragged2e fancyhdr xifthen \
ifmtarg setspace parskip tocloft titlesec textpos babel-english \
isodate substr xltxtra realscripts hyphenat microtype koma-script \
moderncv colortbl pgf multirow arydshln tabu changepage sectsty
```

Next, clone this repo and run the following inside the root folder:
```
$ npm install
$ npm run dev
```

This will start the app on http://localhost:3000

## License
MIT © Saad Quadri
157 changes: 19 additions & 138 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"private": true,
"name": "resumake.io",
"version": "3.0.0",
"engines": {
"node" : ">=20"
},
"scripts": {
"dev": "next dev",
"start": "next start",
Expand All @@ -16,7 +19,6 @@
"fs-extra": "^10.1.0",
"jotai": "^1.7.0",
"next": "^13.5.4",
"node-latex": "^3.1.0",
"polished": "^4.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -25,7 +27,8 @@
"react-pdf": "^5.7.2",
"react-tooltip": "^4.2.21",
"styled-components": "^5.3.3",
"styled-reset": "^4.4.1"
"styled-reset": "^4.4.1",
"swiftlatex": "https://github.com/ducaale/SwiftLaTeX/releases/download/v1.0.0-experimental-9902734/swiftlatex-1.0.0-experimental-9902734.tgz"
},
"devDependencies": {
"@types/archiver": "^5.3.1",
Expand Down Expand Up @@ -91,4 +94,4 @@
"@typescript-eslint/no-inferrable-types": "off"
}
}
}
}
6 changes: 6 additions & 0 deletions public/swiftlatexdvipdfm.js

Large diffs are not rendered by default.

Binary file added public/swiftlatexdvipdfm.wasm
Binary file not shown.
6 changes: 6 additions & 0 deletions public/swiftlatexpdftex.js

Large diffs are not rendered by default.

Binary file added public/swiftlatexpdftex.wasm
Binary file not shown.
6 changes: 6 additions & 0 deletions public/swiftlatexxetex.js

Large diffs are not rendered by default.

Binary file added public/swiftlatexxetex.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@

% Set main fonts
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Color=primary, Path = fonts/raleway/]{Raleway-ExtraLight}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text, Path = fonts/raleway/]{Raleway-ExtraLight}
\newcommand{\custombold}[1]{\color{subheadings}\fontspec[Path = fonts/raleway/]{Raleway-Regular}\selectfont #1 \normalfont}
\setmainfont[Color=primary, Path = fonts/]{Raleway-ExtraLight}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text, Path = fonts/]{Raleway-ExtraLight}
\newcommand{\custombold}[1]{\color{subheadings}\fontspec[Path = fonts/]{Raleway-Regular}\selectfont #1 \normalfont}

% Date command
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{1mm}
\textblockorigin{0mm}{5mm} % start everyth
\newcommand{\lastupdated}{\begin{textblock}{60}(165,0)
\color{date}\fontspec[Path = fonts/raleway/]{Raleway-ExtraLight}\fontsize{8pt}{10pt}\selectfont
\color{date}\fontspec[Path = fonts/]{Raleway-ExtraLight}\fontsize{8pt}{10pt}\selectfont
Last Updated on
\today
\end{textblock}}
Expand All @@ -45,33 +45,33 @@ Last Updated on
\newcommand{\namesection}[3]{
\centering{
\sffamily
\fontspec[Path = fonts/raleway/]{Raleway-ExtraLight}\fontsize{40pt}{10cm}\selectfont #1
\fontspec[Path = fonts/raleway/]{Raleway-ExtraLight}\selectfont #2
\fontspec[Path = fonts/]{Raleway-ExtraLight}\fontsize{40pt}{10cm}\selectfont #1
\fontspec[Path = fonts/]{Raleway-ExtraLight}\selectfont #2
} \\
\vspace{5pt}
\centering{ \color{headings}\fontspec[Path = fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{14pt}\selectfont #3}
\centering{ \color{headings}\fontspec[Path = fonts/]{Raleway-Medium}\fontsize{11pt}{14pt}\selectfont #3}
\noindent\makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}
\vspace{-15pt}
}
\titlespacing{\section}{0pt}{0pt}{0pt}

% Headings command
\titleformat{\section}{\color{headings}
\scshape\fontspec[Path = fonts/raleway/]{Raleway-Medium}\fontsize{16pt}{24pt}\selectfont \raggedright\uppercase}{} {0em}{}
\scshape\fontspec[Path = fonts/]{Raleway-Medium}\fontsize{16pt}{24pt}\selectfont \raggedright\uppercase}{} {0em}{}

% Subeadings command
\titleformat{\subsection}{\color{subheadings}
\fontspec[Path = fonts/raleway/]{Raleway-Medium}\fontsize{12pt}{12pt}\selectfont\bfseries\uppercase}{}{0em}{}
\fontspec[Path = fonts/]{Raleway-Medium}\fontsize{12pt}{12pt}\selectfont\bfseries\uppercase}{}{0em}{}
\titlespacing{\subsection}{0pt}{\parskip}{-\parskip}
\titlespacing{\subsubsection}{0pt}{\parskip}{-\parskip}
\newcommand{\runsubsection}[1]{\color{subheadings}
\fontspec[Path = fonts/raleway/]{Raleway-Medium}\fontsize{12pt}{12pt}\selectfont\bfseries\uppercase {#1} \normalfont}
\fontspec[Path = fonts/]{Raleway-Medium}\fontsize{12pt}{12pt}\selectfont\bfseries\uppercase {#1} \normalfont}

% Descriptors command
\newcommand{\descript}[1]{\color{subheadings}\raggedright\scshape\fontspec[Path = fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1} \normalfont}
\newcommand{\descript}[1]{\color{subheadings}\raggedright\scshape\fontspec[Path = fonts/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1} \normalfont}

% Location command
\newcommand{\location}[1]{\color{headings}\raggedright\fontspec[Path = fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1} \normalfont}
\newcommand{\location}[1]{\color{headings}\raggedright\fontspec[Path = fonts/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1} \normalfont}

% Section seperators command
\newcommand{\sectionsep}[0]{\vspace{8pt}}
Expand Down
7 changes: 7 additions & 0 deletions public/templates/template6/minimal-resume-config.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
%sty file

\usepackage{minimal-resume}

% custom command and packages

\input{custom-command}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\ProvidesPackage{config/minimal-resume}
\ProvidesPackage{minimal-resume}

% margin
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
Expand Down
Loading
Loading