在 teXnicCenter & 上更改字母大小米克特克斯

发布于 2024-08-26 20:39:21 字数 117 浏览 6 评论 0原文

为什么 TeXicCenter 和 MiKTeX 总是生成 A4 尺寸的 pdf 纸张?

我重新安装了 MiKTeX 和 TeXicCenter,并确保选择“Letter”作为默认纸张尺寸。没有任何改变。

How come TeXicCenter and MiKTeX always generate an A4 size pdf paper?

I reinstalled both MiKTeX and TeXicCenter and I made sure that I selected "Letter" to be my default paper size. Nothing changes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

ぃ双果 2024-09-02 20:39:21

无论使用什么文档类或其他包,这都是对我有用的。

在 \begin{document} 之后我放置了这两行:

\setlength{\pdfpagewidth}{8.5in}

\setlength{\pdfpageheight}{11in}

Here is what worked for me, regardless of the documentclass or other packages used.

Right after \begin{document} I put these two lines:

\setlength{\pdfpagewidth}{8.5in}

\setlength{\pdfpageheight}{11in}
初见 2024-09-02 20:39:21

MikTeX 的默认纸张大小包含在 MikTeX 目录中某个配置文件中。您可以通过启动 MikTeX 的“设置(管理员)”程序来更改它,但您可能已经尝试过。 TeXnicCenter 与此无关。

您始终可以指定使用 letter 尺寸的纸张,通过将 letterpaper 选项添加到 \documentclass 命令来覆盖默认值:

\documentclass[letterpaper]{article}

The default paper size for MikTeX is contained in some configuration file somewhere in the MikTeX directory. You can change it by starting up MikTeX's "Settings (Admin)" program, but you probably already tried that. TeXnicCenter has nothing to do with it.

You can always specify to use letter size paper, overriding the default, by adding the letterpaper option to your \documentclass command:

\documentclass[letterpaper]{article}
自此以后,行同陌路 2024-09-02 20:39:21

仅当您的 LaTeX 文档未指定纸张尺寸时,才会使用您指定的纸张尺寸。即使您没有在文档中执行此操作,您正在使用的类或包之一也可能会执行此操作。

要明确选择纸张尺寸,请使用

\documentclass[letterpaper]{scrreprt}

\usepackage[letterpaper]{geometry}

其他可能的纸张尺寸为 a0papera1paper、...、a6paperb0paper、< /code>b1paper, ...,b6paper,letterpaper,legalpaper,executivepaper`。

The paper size you specify is only used if your LaTeX document doesn't specify one. Even if you didn't do this in your documents, the class or one of the packages you are using may do this.

To explicitly choose your papersize either use

\documentclass[letterpaper]{scrreprt}

or

\usepackage[letterpaper]{geometry}

Other possible paper sizes are a0paper, a1paper, ..., a6paper, b0paper,b1paper, ...,b6paper,letterpaper,legalpaper,executivepaper`.

冷月断魂刀 2024-09-02 20:39:21

如果您使用的是 LaTeX=>PS=>PDF,那么以下操作将适合您:

  1. 转到 Build->Define Output Profiles->LaTeX=>PS=> ;PDF
  2. 转到后处理器选项卡。
  3. 选择 Ghostscript (ps2pdf)。
  4. 编辑“参数”。
  5. -sPAPERSIZE=a4 更改为 -sPAPERSIZE=letter

请注意,PDF 的大小现在为 8.5 x 11。

If you are using LaTeX=>PS=>PDF, then the following will work for you:

  1. Goto Build->Define Output Profiles->LaTeX=>PS=>PDF.
  2. Goto the Postprocessor tab.
  3. Select Ghostscript (ps2pdf).
  4. Edit the "Arguments".
  5. Change the -sPAPERSIZE=a4 to -sPAPERSIZE=letter.

Notice that the size of the PDF is now 8.5 x 11.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文