#if os(iOS) import OrgCore import OrgPresentation import UIKit extension MobileEditor { // MARK: - LaTeX previews /// `org-latex-preview` over the whole buffer: fragments and environments show as typeset /// math, except on the caret's line. func toggleLatex() { showsLatex.toggle() restyleAll() if showsLatex { let count = LatexPreview.fragments(document.tree, in: 0..