equal
deleted
inserted
replaced
166 fun read scan syms = |
166 fun read scan syms = |
167 Scan.read Symbol_Pos.stopper (Scan.repeat scan) (map (rpair Position.none) syms); |
167 Scan.read Symbol_Pos.stopper (Scan.repeat scan) (map (rpair Position.none) syms); |
168 |
168 |
169 in |
169 in |
170 |
170 |
171 fun length_symbols syms = |
171 val length_symbols = |
172 fold Integer.add (these (read scan_latex_length syms)) 0; |
172 Integer.build o fold Integer.add o these o read scan_latex_length; |
173 |
173 |
174 fun output_symbols syms = |
174 fun output_symbols syms = |
175 if member (op =) syms Symbol.latex then |
175 if member (op =) syms Symbol.latex then |
176 (case read scan_latex syms of |
176 (case read scan_latex syms of |
177 SOME ss => implode ss |
177 SOME ss => implode ss |