1. 一些 LaTeX 命令
Posted by haifeng on 2022-07-07 10:47:59 last update 2022-07-07 10:47:59 | Answers (0) | 收藏
\nobreakspace
用于产生空格, 但是数学公式环境(或数学模式 math mode)中不起作用.
Posted by haifeng on 2022-07-07 10:47:59 last update 2022-07-07 10:47:59 | Answers (0) | 收藏
\nobreakspace
用于产生空格, 但是数学公式环境(或数学模式 math mode)中不起作用.
Posted by haifeng on 2022-01-14 21:24:49 last update 2023-09-14 23:32:07 | Answers (0) | 收藏
例如 w32tex2017, 缺失 esvect.sty
! LaTeX Error: File `esvect.sty' not found.
首先到 CPAN 网站下载 esvect.zip
然后解压缩到下面的目录 D:\TeX\w32tex2017\share\texmf-dist\tex\latex\
这里有 .ins 和 .dtx 文件. 使用 latex 编译 esvect.ins 文件以生成 esvect.sty
latex esvect.ins
然后运行 texhash.exe, 更新 FN 数据库(FNDB)
如果是 TeXLive, 使用管理员打开 cmd,
C:\WINDOWS\system32>where texhash
D:\texlive\2021\bin\win32\texhash.exe
C:\CTEX\MiKTeX\miktex\bin\texhash.exe
C:\WINDOWS\system32>texhash
texhash: Updating D:/texlive/texmf-local/ls-R...
texhash: Updated D:/texlive/texmf-local/ls-R.
texhash: Updating D:/texlive/2021/texmf-config/ls-R...
texhash: Updated D:/texlive/2021/texmf-config/ls-R.
texhash: Updating D:/texlive/2021/texmf-var/ls-R...
texhash: Updated D:/texlive/2021/texmf-var/ls-R.
texhash: Updating D:/texlive/2021/texmf-dist/ls-R...
texhash: Updated D:/texlive/2021/texmf-dist/ls-R.
texhash: Done.
Posted by haifeng on 2020-03-16 17:05:45 last update 2020-03-16 17:05:45 | Answers (0) | 收藏
$\LaTeX$ 表格在线编辑器
Posted by haifeng on 2017-03-04 11:36:40 last update 2017-03-04 11:37:41 | Answers (0) | 收藏
\[ \begin{array}{rcl} \varphi:\ G/H & \hookrightarrow & M \\ [g] & \mapsto & g.m \\ \end{array} \]
编译会出现
!Missing number, treated as zero.
这样的错误.
如果将 [g] 改为 [0], 则出现提示
! Illegal unit of measure (pt inserted).
以下是网上的回答,
http://bbs.sjtu.edu.cn/bbstcon,board,TeX_LaTeX,reid,1336280700.html
因为
\\
其实是一个control sequence,
它可以附带一个非默认的行距参数,以下面这种形式出现:
\\[3pt]
所以你的代码里
\\
[$1.1$, $1.1$]
这样的语句,就让tex误以为你的方括号里的是一个距离的参数,
当然就会报错了。
所以你只要在\\后面加上{}或者其它别的无关紧要的任意一个control sequence,
那么tex就会认为\\这个control sequence的参数已经结束了,
这样就不会把[$1.1$, $1.1$]当成\\的非默认参数了
Posted by haifeng on 2017-03-04 10:18:01 last update 2017-03-04 10:18:30 | Answers (0) | 收藏
出现rsfs10.tfm 或者 C:\CTEX\UserData\fonts\tfm\public\mathabx 中 matha10.tfm already exists
解决办法
将目录 C:\CTEX\UserData\miktex\data\le 中的 .fndb 文件全部删除.
References:
http://yxxnewstar.blog.163.com/blog/static/92270080201463074024181/
Posted by haifeng on 2016-01-27 17:20:30 last update 2016-01-27 17:24:34 | Answers (0) | 收藏
1. x \mod a : 这个命令将在 x 和 mod 之间产生很大的间隔.
x mod a
2. x \bmod a : 这个命令在 x 和 mod 之间产生的间隔比较合适.
x mod a
3. x \pmod a : 这个命令将在上面的基础上添加小括号.
x (mod a)
4. x \pod a : 省略 mod .
x (a)
例如: x\equiv y \pmod p 得到
\[x\equiv y \pmod p\]
References:
Posted by haifeng on 2016-01-12 16:56:19 last update 2016-01-12 16:56:19 | Answers (0) | 收藏
当你从 SumatraPDF 的主页
http://www.sumatrapdfreader.org/free-pdf-reader-cn.html
下载便携版(portable)的 SumatraPDF.zip 后, 解压缩, 将 SumatraPDF.exe 拷贝到
C:\CTEX\CTeX\ctex\bin
目录下.
如果将 C:\CTEX\CTeX\ctex\bin 下的 SumatraPDF.exe 删除或重命名, WinEdt 将找不到 SumatraPDF, 从而显示
Cannot Run:
"C:\CTEX\CTeX\ctex\bin\SumatraPDF.exe" -reuse-instance
Posted by haifeng on 2013-08-27 16:09:52 last update 2013-08-27 16:09:52 | Answers (0) | 收藏
直接输入ö, 则最后不会显示. 使用 \"{o} 也要注意将自己用花括号括起来. 例如:
@article{Erdos,
AUTHOR = "P.~Erd{\"{o}}s",
TITLE = "On the converse of Fermat\'s Theorem",
JOURNAL = "Reprinted from the American Mathematical Monthly",
YEAR = "1949",
volume = "LVI",
number = "9",
pages = "",
month = "November",
note = ""
}
Posted by haifeng on 2013-07-09 11:21:16 last update 2013-07-09 11:21:16 | Answers (0) | 收藏
Posted by haifeng on 2012-07-17 09:20:06 last update 2012-07-17 09:21:12 | Answers (0) | 收藏
\begin{split} \end{split}
需要 amsmath 宏包 而
\mathbb
需要 amssymb 宏包