Skip to content

Instantly share code, notes, and snippets.

\documentclass{book}
\usepackage{fontspec}
\setmainfont{Coelacanth}
\usepackage{luacode}
\begin{luacode*}
-- table with mappings from unicode to char codes
unicode_chars = {}
% tex {nameofthefile.tex}
%
% Copyright (C) 2018 TeX Users Group
\input tex4ht.sty
\Preamble{xhtml,th4,sections+}
\EndPreamble
\input ProTex.sty
%\AlProTex{c,<<<>>>,`,title,list,ClearCode,_^}
\AlProTex{c,<<<>>>,`,title,list,`,ClearCode,_^}
% tex {nameofthefile.tex}
%
% Copyright (C) 2018 TeX Users Group
\input tex4ht.sty
\Preamble{xhtml,th4,sections+}
\EndPreamble
\input ProTex.sty
%\AlProTex{c,<<<>>>,`,title,list,ClearCode,_^}
\AlProTex{c,<<<>>>,`,title,list,`,ClearCode,_^}
#!/bin/bash
# Anh Nguyen <anh.ng8@gmail.com>
# 2016-04-30
# MIT License
# This script takes in images from a folder and make a crossfade video from the images using ffmpeg.
# Make sure you have ffmpeg installed before running.
# The output command looks something like the below, but for as many images as you have in the folder.
% ooffice.4ht (2019-03-19-17:14), generated from tex4ht-ooffice.tex
% Copyright 2009-2019 TeX Users Group
% Copyright 2001-2009 Maarten Wisse, James Naughton, Eitan M. Gurari
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
@michal-h21
michal-h21 / sample.tex
Last active October 9, 2019 18:55
tex4ht configuraton file for xskak.sty. compile with `make4ht sample.tex svg`
\documentclass[12pt]{article}
\ifdefined\HCode
\def\pgfsysdriver{pgfsys-dvisvgm4ht.def}
\fi
\usepackage{xskak}
\begin{document}
\newchessgame[id=main]
\chessboard
\end{document}
@michal-h21
michal-h21 / graphics.4ht
Last active October 13, 2019 11:35
error with image inclusion
% graphics.4ht (2019-09-12-14:02), generated from tex4ht-4ht.tex
% Copyright 1997-2009 Eitan M. Gurari
% Copyright 2009-2019 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
% mathml.4ht (2020-08-19-17:51), generated from tex4ht-mathml.tex
% Copyright 2009-2020 TeX Users Group
% Copyright 1999-2009 Eitan M. Gurari
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
@michal-h21
michal-h21 / fourier.tex
Created August 28, 2020 21:04
Compile with etex fourier.tex to generate HTF files
% tex {nameofthefile.tex}
%
% Copyright (C) 2018 TeX Users Group
\input tex4ht.sty
\Preamble{xhtml,th4,sections+}
\EndPreamble
\input ProTex.sty
%\AlProTex{c,<<<>>>,`,title,list,ClearCode,_^}
\AlProTex{c,<<<>>>,`,title,list,`,ClearCode,_^}
@michal-h21
michal-h21 / biblatex.4ht
Created January 19, 2021 20:39
biblatex.4ht
% biblatex.4ht (2020-10-05-15:22), generated from tex4ht-4ht.tex
% Copyright 2007-2009 Eitan M. Gurari
% Copyright 2009-2020 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions