TeXSynHL—poster and samples

TeXSynHL

% vim: tw=99 sw=2: 
% License: CC-BY-NC-ND 
\documentclass[xcolor={svgnames,dvipsnames},aspectratio=169]{beamer} 
\hypersetup{colorlinks} 
\usetheme{moloch} 
\setbeamertemplate{frame footer}{\insertshortauthor~|~\textsc{tug2025}} 
\setbeamerfont{block title}{series=\itshape} 
\setbeamercolor{enumerate item}{fg=teal} 
\setbeamercolor{itemize item}{fg=teal} 
 
\usepackage[svgnames,dvipsnames]{xcolor} 
\usepackage{array} 
\usepackage{xltxtra} 
\usepackage{fontspec} 
\setsansfont[Scale=1.2,LetterSpace=-4.0,BoldFont=Ysabeau]{Ysabeau Light} 
%\setsansfont[Scale=1.0,Numbers=OldStyle,BoldFont=Fira Sans Condensed] 
%   {Fira Sans Condensed Light} 
%\setsansfont[Ligatures=TeX,Numbers=OldStyle]{GandhiSans-Regular} 
\newfontfamily\mlfont[Script=Malayalam]{RIT Rachana} 
\setmonofont[Scale=0.9,Path=../master_otf/]{TeXSynHL-Regular} 
\newfontfamily\lstfont[Scale=.9,Color={black!40},Path=../master_otf/] 
    {TeXSynHL-Regular} 
 
\colorlet{redbrown}{blue!24!red} 
\colorlet{lightpurple}{Violet!40!blue!55} 
 
\usepackage{tikz} 
\usetikzlibrary{positioning} 
\usepackage{dirtree}  % for directory tree 
\DTsetlength 
    {0.2em} % offset 
    {1em}   % width 
    {0.2em} % sep 
    {0.4pt} % rule 
    {0.4pt} % dot size 
 
\title{\opentype\ font with built-in \TeX\ syntax highlighting} 
\date{TUG2025, Kerala\\July 18--20, 2025} 
\author[{\sc kvr} \and {\sc cvr}]{K.V. Rajeesh \and C.V. Radhakrishnan\\} 
\institute{Rachana Institute of Typography} 
 
\def\LuaHBTeX{Lua\textsc{hb}\TeX} 
\def\opentype{OpenType} 
\def\escchar{\texttt{\textbackslash}} 
\def\opentype{OpenType} 
\def\gsub{\textsc{gsub}} 
\def\gpos{\textsc{gpos}} 
\def\colr{\textsc{colr}} 
\def\colrvzero{\textsc{colr}v0} 
\def\colrvone{\textsc{colr}v1} 
\def\cpal{\textsc{cpal}} 
\def\ufo{\textsc{ufo}} 
\def\calt{\texttt{calt}} 
\def\fontmake{\texttt{fontmake}} 
 
\def\redbrown#1{\textcolor{redbrown}{#1}} 
\def\brown#1{\textcolor{Brown}{#1}} 
 
\begin{document} 
  \maketitle 
 
  %%% Introduction %%% 
  \section{Syntax highlighting} 
 
  \begin{frame}{Colours, colours everywhere} 
    \begin{columns} 
    \begin{column}{0.53\textwidth} 
    \begin{itemize}%[itemsep=0pt] 
    \item Syntax highlighting of programming languages are very common 
    \item Almost all code editors, \textsc{ide}s and websites enable 
          it by default 
    \end{itemize} 
    \pause \vskip 3ex 
    \alert{\textit{Requirement}} \quad syntax colouring of \TeX\ code 
      snippets in a wiki/webpage used by authors \& editors. \pause 
    \end{column} 
    \begin{column}{0.55\textwidth} 
    \hspace*{-0.5em} 
    \includegraphics[width=0.51\paperwidth]{vim-syntax-highlight.png} 
    {\scriptsize \LaTeX\ document syntax highliting in Vim.} 
    \end{column} 
    \end{columns} 
  \end{frame} 
  ... ... ... 
  ... ... ... 
  ... ... ... 
\end{document}

DetailsDownloadSpecimen ⦾ Development: Rajeesh KV