怎样让 AI 完成数学图像的作图
将此图完美用 latex 渲染出的 svg 呈现。图片直接给出 markup 的代码块,例如:<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 160' width='100%25' height='160'%3E%3Cdefs%3E%3Cstyle%3E .tbl-title %7B font-family: 'SimSun', 'STSong', 'Songti SC', 'Times New Roman', serif; font-size: 14px; fill: %23111; text-anchor: middle; dominant-baseline: central; %7D .tbl-cell %7B font-family: 'SimSun', 'STSong', 'Songti SC', 'Times New Roman', serif; font-size: 13px; fill: %23111; text-anchor: middle; dominant-baseline: central; %7D .tbl-border %7B fill: %23ffffff; stroke: %23111; stroke-width: 1.2; %7D %3C/style%3E%3C/defs%3E%3Ctext x='110' y='20' class='tbl-title'%3Edir 目录文件%3C/text%3E%3Crect x='20' y='38' width='180' height='60' class='tbl-border' /%3E%3Cline x1='20' y1='68' x2='200' y2='68' stroke='%23111' stroke-width='1.2' /%3E%3Cline x1='110' y1='38' x2='110' y2='98' stroke='%23111' stroke-width='1.2' /%3E%3Ctext x='65' y='53' class='tbl-cell'%3E文件名%3C/text%3E%3Ctext x='155' y='53' class='tbl-cell'%3E簇号%3C/text%3E%3Ctext x='65' y='83' class='tbl-cell'%3Edir1%3C/text%3E%3Ctext x='155' y='83' class='tbl-cell'%3E48%3C/text%3E%3Ctext x='400' y='20' class='tbl-title'%3Edir1 目录文件%3C/text%3E%3Crect x='310' y='38' width='180' height='90' class='tbl-border' /%3E%3Cline x1='310' y1='68' x2='490' y2='68' stroke='%23111' stroke-width='1.2' /%3E%3Cline x1='310' y1='98' x2='490' y2='98' stroke='%23111' stroke-width='1.2' /%3E%3Cline x1='400' y1='38' x2='400' y2='128' stroke='%23111' stroke-width='1.2' /%3E%3Ctext x='355' y='53' class='tbl-cell'%3E文件名%3C/text%3E%3Ctext x='445' y='53' class='tbl-cell'%3E簇号%3C/text%3E%3Ctext x='355' y='83' class='tbl-cell'%3Efile1%3C/text%3E%3Ctext x='445' y='83' class='tbl-cell'%3E100%3C/text%3E%3Ctext x='355' y='113' class='tbl-cell'%3Efile2%3C/text%3E%3Ctext x='445' y='113' class='tbl-cell'%3E200%3C/text%3E%3C/svg%3E" />考虑到你吐出来的 img 标签经常会被吃掉,可能是由于防 XSS 攻击之类的,你可以在最后单独给我 img markup 的代码块!
函数绘图:GeoGebra
怎样让 AI 解析教材图片到 markdown
使用千问而不是豆包,否则公式会多出很多反斜杠,并且去除不掉。
识别给我 markdown ,不要多说一句话。输出的格式请严格遵循 Markdown 规范,硬换行处末尾加两个空格,另外例题之间以 --- 分隔。对于选择题四个选项能排版到一行的答案,用   分隔(但其他地方不要有多余的   )。出现图的,要以 latex 渲染出的 svg 呈现。图片直接给出 markup ,例如:<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 160' width='100%25' height='160'%3E%3Cdefs%3E%3Cstyle%3E .tbl-title %7B font-family: 'SimSun', 'STSong', 'Songti SC', 'Times New Roman', serif; font-size: 14px; fill: %23111; text-anchor: middle; dominant-baseline: central; %7D .tbl-cell %7B font-family: 'SimSun', 'STSong', 'Songti SC', 'Times New Roman', serif; font-size: 13px; fill: %23111; text-anchor: middle; dominant-baseline: central; %7D .tbl-border %7B fill: %23ffffff; stroke: %23111; stroke-width: 1.2; %7D %3C/style%3E%3C/defs%3E%3Ctext x='110' y='20' class='tbl-title'%3Edir 目录文件%3C/text%3E%3Crect x='20' y='38' width='180' height='60' class='tbl-border' /%3E%3Cline x1='20' y1='68' x2='200' y2='68' stroke='%23111' stroke-width='1.2' /%3E%3Cline x1='110' y1='38' x2='110' y2='98' stroke='%23111' stroke-width='1.2' /%3E%3Ctext x='65' y='53' class='tbl-cell'%3E文件名%3C/text%3E%3Ctext x='155' y='53' class='tbl-cell'%3E簇号%3C/text%3E%3Ctext x='65' y='83' class='tbl-cell'%3Edir1%3C/text%3E%3Ctext x='155' y='83' class='tbl-cell'%3E48%3C/text%3E%3Ctext x='400' y='20' class='tbl-title'%3Edir1 目录文件%3C/text%3E%3Crect x='310' y='38' width='180' height='90' class='tbl-border' /%3E%3Cline x1='310' y1='68' x2='490' y2='68' stroke='%23111' stroke-width='1.2' /%3E%3Cline x1='310' y1='98' x2='490' y2='98' stroke='%23111' stroke-width='1.2' /%3E%3Cline x1='400' y1='38' x2='400' y2='128' stroke='%23111' stroke-width='1.2' /%3E%3Ctext x='355' y='53' class='tbl-cell'%3E文件名%3C/text%3E%3Ctext x='445' y='53' class='tbl-cell'%3E簇号%3C/text%3E%3Ctext x='355' y='83' class='tbl-cell'%3Efile1%3C/text%3E%3Ctext x='445' y='83' class='tbl-cell'%3E100%3C/text%3E%3Ctext x='355' y='113' class='tbl-cell'%3Efile2%3C/text%3E%3Ctext x='445' y='113' class='tbl-cell'%3E200%3C/text%3E%3C/svg%3E" />
