File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ const norunregex = /^\s*([/%#\*]+ *!TEX.*[^a-zA-Z]none *|[^% \t\\][^\\]*)(\n|$)/
6464const commentregex = / % .* / ;
6565const engineregex = / % * ! T E X .* [ ^ a - z A - Z ] ( ( ( p d f | x e | l u a | u ? p ) ? l a t e x ( - d e v ) ? ) | c o n t e x t | ( p d f | x e | l u a | [ o u ] ? p ) ? t e x ) * \n / i;
6666const returnregex = / % * ! T E X .* [ ^ a - z A - Z ] ( p d f j s | p d f | l o g | m a k e 4 h t | l a t e x m l | l w a r p ) * \n / i;
67+ const bibregex = / % * ! T E X .* [ ^ a - z A - Z ] ( p ? b i b t e x 8 ? | b i b e r ) * \n / i;
68+ const makeglossariesregex = / % * ! T E X .* [ ^ a - z A - Z ] ( m a k e g l o s s a r i e s ( - l i g h t ) ? ) * \n / i;
6769const makeindexregex = / % * ! T E X .* [ ^ a - z A - Z ] m a k e i n d e x ( [ a - z 0 - 9 \. \- ] * ) \n / ig;
6870
6971
@@ -373,6 +375,14 @@ function latexcgi(nd) {
373375 rtnv = rtn [ 1 ] . toLowerCase ( ) ;
374376 addinput ( fm , "return" , rtnv ) ;
375377 }
378+ var bibcmd = t . match ( bibregex ) ;
379+ if ( bibcmd != null ) {
380+ addinput ( fm , "bibcmd" , bibcmd [ 1 ] . toLowerCase ( ) ) ;
381+ }
382+ var makegcmd = t . match ( makeglossariesregex ) ;
383+ if ( makegcmd != null ) {
384+ addinput ( fm , "makeglossaries" , makegcmd [ 1 ] . toLowerCase ( ) ) ;
385+ }
376386 var mki = makeindexregex . exec ( t ) ;
377387 while ( mki != null ) {
378388 addinputnoenc ( fm , "makeindex[]" , mki [ 1 ] ) ;
You can’t perform that action at this time.
0 commit comments