Latex/CTex/WinEdt 查看命令帮助文档

本文介绍了在Win7环境下,使用WinEdt 7和MiKTeX 2.9如何通过texdoc命令来查看LaTeX宏包的详细帮助文档。以查询ccaption宏包和icaption命令为例,演示了如何直接打开对应的PDF说明文件,从而获取命令的使用方法。

工作环境(蓝色粗体字为特别注意内容)
1,系统环境:Win7 Ultimate sp1
2,软件环境:pdfTeX 3.1415926-2.3-1.40.12 (MiKTeX 2.9)、WinEdt 7,编译器:PDFTeXify
3, 参考文献:①https://blog.youkuaiyun.com/Mikowoo007/article/details/87464547

在LaTeX中可能会很多宏包,这些宏包中可能会有很多我们不认识的命令,而网络上有时候搜索不到相关信息,或者描述的不到位,这时候,应该如何查找帮助文档呢?答案其实很简单,我们在LaTeX中使用宏包的时候,其实宏包中已经写好了足够详细的文档了。比如我要查询ccaption这个宏包的说明文档:

首先在WinEdt中打开命令窗口:

输入texdoc ccaption,回车,就打开了该命令的说明文档,也就是位于/MiKTeX\doc\latex\ccaption\ccaption.pdf的pdf文档。

然后找到该包中的一个命令的说明,比如:\bicaption,说明如下:

\bicaption 
When bilingual captions are typeset via the \bicaption command the second
language text is not put into the List of . . . . The command takes 5 arguments as:
\bicaption[hlabel i]{hshort-1 i}{hlong-1 i}{hNAMEi}{hlong-2 i}
The optional hlabel i is for a label if required. hshort-1 i and hlong-1 i are the
short and long caption texts for the main language of the document. The value
of the hNAMEi argument is used as the caption name for the second language
caption. The last argument, hlong-2 i, is the caption text for the second language
(which is not put into the List of). For example, if the main and secondary
languages are English and German:
\bicaption{Short}{Long}{Bild}{Langlauf}
If the short title text is not required, then leave the appropriate argument either
empty or as one or more spaces.
Figure 3 is an example of using \bicaption and was produced by the following

 

 

 

I:\91-agi09-do\02code\lecture-notes\05-rag-embeddings>latex This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 24.1) (preloaded format=latex.fmt) restricted \write18 enabled. **\documentclass[12pt]{article} entering extended mode LaTeX2e <2023-11-01> patch level 1 L3 programming layer <2024-01-04> *\usepackage{ctex} (C:\MiKTeX\tex/latex/base\article.cls Document Class: article 2023/05/17 v1.4n Standard LaTeX document class (C:\MiKTeX\tex/latex/base\size12.clo)) * (C:\MiKTeX\tex/latex/ctex\ctex.sty (C:\MiKTeX\tex/latex/l3kernel\expl3.sty (C:\MiKTeX\tex/latex/l3backend\l3backend-dvips.def)) (C:\MiKTeX\tex/latex/ctex\ctexhook.sty) (C:\MiKTeX\tex/latex/ctex\ctexpatch.sty ) (C:\MiKTeX\tex/latex/base\fix-cm.sty (C:\MiKTeX\tex/latex/base\ts1enc.def)) (C:\MiKTeX\tex/latex/ctex/config\ctexopts.cfg) Package ctex Warning: UTF8 will be used as the default encoding. (C:\MiKTeX\tex/latex/ctex/engine\ctex-engine-pdftex.def (C:\MiKTeX\tex/latex/cjk\CJKutf8.sty (C:\MiKTeX\tex/generic/iftex\ifpdf.sty (C:\MiKTeX\tex/generic/iftex\iftex.sty)) (C:\MiKTeX\tex/latex/base\inputenc.sty ) (C:\MiKTeX\tex/latex/cjk\CJK.sty (C:\MiKTeX\tex/latex/cjk/mule\MULEenc.sty) (C:\MiKTeX\tex/latex/cjk\CJK.enc)) (C:\MiKTeX\tex/latex/base\fontenc.sty)) (C:\MiKTeX\tex/latex/cjkpunct\CJKpunct.sty (C:\MiKTeX\tex/latex/cjkpunct\CJKpunct.spa)) (C:\MiKTeX\tex/latex/cjk\CJKspace.sty) (C:\MiKTeX\tex/latex/cjk/UTF8\UTF8.bdg) (C:\MiKTeX\tex/latex/ctex\ctexspa.def)) (C:\MiKTeX\tex/latex/zhnumber\zhnumber.sty (C:\MiKTeX\tex/latex/zhnumber\zhnumber-utf8.cfg)) (C:\MiKTeX\tex/latex/ctex/scheme\ctex-scheme-chinese.def (C:\MiKTeX\tex/latex/ctex/config\ctex-name-utf8.cfg)) (C:\MiKTeX\tex/latex/tools\indentfirst.sty) (C:\MiKTeX\tex/latex/ctex/fontset\ctex-fontset-windows.def)) (C:\MiKTeX\tex/latex/ctex/config\ctex.cfg) (Please type a command or say `\end') *\begin{document} (C:\MiKTeX\tex/latex/cjk/UTF8\UTF8.enc) (C:\MiKTeX\tex/latex/cjk/UTF8\UTF8.chr) No file texput.aux. *你好,这是一段中文文本。 ! Package CJK Error: Invalid character code. See the CJK package documentation for explanation. Type H <return> for immediate help. ... <*> ?ã?һ?ı???
07-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值