Python 3.x 有没有办法在Symphy中更改LaTeX预览输出大小或字体大小

Python 3.x 有没有办法在Symphy中更改LaTeX预览输出大小或字体大小,python-3.x,image,latex,sympy,discord.py-rewrite,Python 3.x,Image,Latex,Sympy,Discord.py Rewrite,我正在用discord.py制作一个discord机器人。目前,我正在与sympy合作开发一台乳胶打印机。 我有密码: @commands.command(name="latex", aliases=["tex", "tx"]) async def texPrt(self, ctx, *, text): Funcs.command_exec(ctx) expre = sympify(text, evaluat

我正在用discord.py制作一个discord机器人。目前,我正在与sympy合作开发一台乳胶打印机。
我有密码:

  @commands.command(name="latex",
                      aliases=["tex", "tx"])
    async def texPrt(self, ctx, *, text):
        Funcs.command_exec(ctx)
        expre = sympify(text, evaluate=False)
        preview(expre, viewer="file", filename="output.png")
        await ctx.send(file=discord.File(f"./output.png", filename="LaTeX_output.png"))
这将采用用户输入和输出png图像的公式:

唯一的问题是出来的图像很小,分辨率很低。有没有办法使图像变大并增加字体大小。

如果可能的话,我也希望将背景颜色更改为类似于discord,但这不是优先级。

dvioptions
中设置密度参数:

预览(expr,viewer=“file”,filename=“output.png”,dvioptions=['-D','1200'])


dvioptions
中设置密度参数:

预览(expr,viewer=“file”,filename=“output.png”,dvioptions=['-D','1200'])


有没有办法调整尺寸。将值从1200向上或向下更改为600或2400似乎没有任何作用@有没有办法调整尺寸。将值从1200向上或向下更改为600或2400似乎没有任何作用@音响匠