Typst, LaTeX
# show-and-tell
h
used a super cool tool called typst to write write out a bunch of papers today! it is a markup lanuguage format with a focus on reports and formatting. highly recommend for anything formal if you have the itch https://typst.app/docs/tutorial
j
Whoa, this looks amazing. Doing a cursory skim of the docs, the syntax doesn't seem too bad. Would be curious how difficult it was to pick up and if you have any experience with LaTeX how it compares?
f
This looks so much better than LaTeX when it comes to succinct syntax. I am not a fan of how LaTeX does things, but the amount of inertia has kept my writings almost exclusively in either that, google docs, or obsidian.
it seems great for college essays
j
The above linked documentation seem really good compared to LaTeX, too.
f
oh did they make it in typst as well?
j
Oh, no idea -- just meaning the documentation is a lot easier to digest.
LaTeX is not very beginner friendly in its language 😂
f
yeah like what the fuck is this
Copy code
latex

\newenvironment{job}[3]{
    \vspace{5pt}
    \begin{infoboxinvert}[]
        \begin{tabularx}{1\textwidth} {
            @{}>{\hsize=1\hsize\linewidth=\hsize\raggedright\arraybackslash}X@{}
            @{}>{\hsize=1\hsize\linewidth=\hsize\raggedleft\arraybackslash}X@{}
        }
            \textbf{\large #1} & \MakeUppercase{\textbf{#3}} \\ 
            \textit{#2}
        \end{tabularx}
    \end{infoboxinvert}
    \vspace{-5pt}
}{}
why are positional parameters just a bunch of
func{foo}{bar}{baz}{biz}{boz}{buz}
j
h
latex is awful
f
it is
but I can't argue with the results
I have a lot of issues with it, but if there's one thing they have it's inertia and community buy-in with an audience that tends to be very slow to adopt
h
that is so real, but I think typst removed some of the friction from getting stuff done, which latex has NOT done (for me at least)
I also used typst to make some presentation slides and I’ve seen some folks use it for thumbnails which is pretty neat
j
Ooo, looks like Pandoc supports Typst: https://pandoc.org/typst-property-output.html I currently write my resume in markdown and convert it to LaTeX using a template via Pandoc (thanks @faint-potato-99326 for that inspiration). So basically, I can edit my resume in a normal text editor (i.e.
vim
or
hx
) and then use pandoc to render a beautiful document. Definitely gonna have to look into switching to Typst.
Here's my resume as a Nix derivation 😂
Copy code
resumeDrv = let
          buildResume = pkgs.writeShellScript "resume.sh" ''
            ${pkgs.pandoc}/bin/pandoc ${self}/docs/resume.md --template ${self}/docs/styles/chmduquesne.tex -s --pdf-engine ${pkgs.texlive.combined.scheme-context}/bin/context --to context --variable papersize=A4 -o resume.pdf
            ${pkgs.coreutils}/bin/cp resume.pdf "$1"
          '';
        in pkgs.stdenv.mkDerivation {
          name = "resume";
          builder = pkgs.bash;
          args = [ "-c" "${buildResume} $out" ];
        };
But, allows me to
nix build .#resume
without having to play with LaTeX dependencies (another horrible painpoint of LaTeX)
h
that’s pretty sick ngl
I have multiple individual docs of resumes I’ve written over the years floating around
j
Yes, before the above, I used to use Google Docs' resume template. Which, is fine. But markdown for resume writing is so much better 😂
I have a private
me
repo on GitHub where I store my rendered and non-rendered resume among other things.
f
it's been a few years since I've done any resume writing, but I'm still pleased with my work looking at it now
j
That looks so good. Pleased to meet you John Johnersen
f
lmaooo
h
that’s so sweet what the hell
j