修改/usr/local/texlive/2020/texmf.cnf,在最底下添加一行shell_escape = t
1 2 3 4 5 6 7 8 9 10
% (Public domain.) % This texmf.cnf file should contain only your personal changes from the % original texmf.cnf (for example, as chosen in the installer). % % That is, if you need to make changes to texmf.cnf, put your custom % settings in this file, which is .../texlive/YYYY/texmf.cnf, rather than % the distributed file (which is .../texlive/YYYY/texmf-dist/web2c/texmf.cnf). % And include *only* your changed values, not a copy of the whole thing! % shell_escape = t
配置完成后重启容器。
配置自助注册
由于Overleaf对社区版的限制(可能是为了推销Server Pro),社区版的Overleaf默认不支持注册,进入注册页面之后只能看到一个please contact [email protected] to create an account.的提示。但是管理员是可以通过网页操作帮助用户创建账户的,因此我们可以用为管理员提供的用户注册界面魔改一个面向用户的注册界面。
block content .content.content-alt .container .row .col-md-12 .card(ng-controller="RegisterUsersController") .page-header h1 Register New Users .row-spaced.ng-cloak p This page only allows email ends with edu.cn to register. p If you use other email address ends with other domain, please contact [email protected] . form.form .row .col-md-4.col-xs-8 input.form-control( name="email", type="text", placeholder="[email protected], [email protected]", ng-model="inputs.emails", on-enter="registerUsers_pub()" ) .col-md-8.col-xs-4 button.btn.btn-primary(ng-click="registerUsers_pub()") #{translate("register")} .row-spaced(ng-show="error").ng-cloak.text-danger p Sorry, an error occured, check your email address or contact [email protected]. .row-spaced(ng-show="users.length > 0").ng-cloak.text-success p We've sent out welcome emails to the registered users. p This page only allows email ends with edu.cn to register. p If you use other email address ends with other domain, please contact [email protected] . p (Password reset tokens will expire after one week and the user will need registering again).