src/Pure/Thy/latex.ML
changeset 77768 65008644d394
parent 76957 deb7dffb3340
child 77851 ec50b9213969
equal deleted inserted replaced
77766:c6c4069a86f3 77768:65008644d394
   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