plot = {
const box = new Textbox({
font: '14px/18px sans-serif',
width: w,
parser: Textbox.latexparser
});
const lines = box.linebreak(await FileAttachment("latex.tex").text());
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttribute('width', w);
svg.setAttribute('height', lines.height + 20);
svg.appendChild(lines.svg());
return svg;
}