--- loncom/xml/lontexconvert.pm 2018/04/23 19:33:17 1.112.2.7 +++ loncom/xml/lontexconvert.pm 2019/02/15 17:52:54 1.112.2.8 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Conversion Module # -# $Id: lontexconvert.pm,v 1.112.2.7 2018/04/23 19:33:17 raeburn Exp $ +# $Id: lontexconvert.pm,v 1.112.2.8 2019/02/15 17:52:54 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -328,6 +328,11 @@ sub tex_engine { } return $env{'environment.texengine'}; } + my $dom = $env{'request.role.domain'} || $env{'user.domain'}; + my %domdefaults = &Apache::lonnet::get_domain_defaults($dom); + if ($domdefaults{'texengine'} ne '') { + return $domdefaults{'texengine'}; + } return 'tth'; }