MiKTeX 的一些问题解决

本文列举了MiKTeX 2.8安装与使用过程中遇到的最大障碍,并提供了解决TeXnicCenter兼容性问题、LaTeX输出格式调整、ConTeXt依赖Ruby等解决方案,同时提醒管理员在2009年8月13日进行了最后的编辑。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

MiKTeX 2.8 Known Issues

This page lists the biggest stumbling blocks you may come across when you install and use MiKTeX 2.8.

TeXnicCenter compatibility

LaTeX terminates with "GUI framework cannot be initialized" if invoked from TeXnicCenter (1.0 Stable Release Candidate 1).  This happens when a missing package needs to be installed and the pop-up window cannot be displayed.

Remedy: start MiKTeX Options and choose either Yes or No (but not "Ask me first") for the option "Install missing packages on-the-fly".

LaTeX produces PDF (not DVI)

If you experience that

latex foo

produces foo.pdf (instead of foo.dvi), then you should check your preamble code. For example, the following code does not work as expected because the primitive \pdfoutput is always defined:

\newif\ifpdf% 
        \ifx\pdfoutput\undefined% 
\pdffalse% 
\else% 
        \pdfoutput=1% 
        \pdftrue% 
\fi%

Instead of the above code, you should use the ifpdf package:

\usepackage{ifpdf}

This package provides a working \ifpdf macro.

ConTeXt Mark II requires Ruby

Symptom: texexec --version outputs nothing.

Some ConTeXt scripts are written in Ruby. In order to make use of these ConTeXt scripts, you must install Ruby.

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(418) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值