Posts

Showing posts from 2026

Claude helped me make a long division worksheet generator using LuaLaTex

 I spent about 45 minutes with Claude and some manual editing and ended up with the following file that can be compiled with LuaLaTex to produce 10 pages of long division fact problems.  There are variables at the top of the page to allow you to specify the fact ranges you want. % ============================================================ %  Long Division Worksheet — 10 Random Pages %  Compile with: lualatex long_division_random.tex % ============================================================ \documentclass[10pt]{article} \usepackage[margin=0.5in, top=0.55in, bottom=0.5in]{geometry} \usepackage{longdivision} \usepackage{array} \usepackage{pgfmath} \usepackage{pgffor}    % provides \foreach % ============================================================ %  USER SETTINGS — edit these four values % ============================================================ \newcommand{\MinQuotient}{2}    % smallest possible dividend \newcommand{\MaxQuotient...