Forgot password?
 Register account
View 158|Reply 0

Metapost生成的pdf不合法

[Copy link]

3158

Threads

7933

Posts

45

Reputation

Show all posts

hbghlyj posted 2023-2-16 05:41 |Read mode
使用
  1. prologues := 3;
  2. outputtemplate := "%j%c.pdf";
  3. beginfig(1);
  4. endfig;
  5. end.
Copy the Code
自动生成的pdf不合法, 如 $type 1.pdf (16.49 KB, Downloads: 59)
用pdf.js或PDFium无法打开. 但用SumatraPDF可以打开.
TeX.SE的解决方案: 生成eps再使用epstopdf转换为pdf.
but usually I prefer to convert the EPS to PDF using epstopdf rather than rely on the automatic conversion

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | 快速注册

$\LaTeX$ formula tutorial

Mobile version

2025-6-8 06:55 GMT+8

Powered by Discuz!

Processed in 0.018408 second(s), 24 queries

× Quick Reply To Top Edit