Skip to content

Latest commit

 

History

History
122 lines (100 loc) · 4.93 KB

README.md

File metadata and controls

122 lines (100 loc) · 4.93 KB

Math-Symbols-in-LaTeX

Platfrom License Status Version DOI

Usage

  1. math-symbols.sty 拷贝至工作目录
  2. 在 tex 文档中添加 \usepackage{math-symbols} 即可
  3. 所有符号请参阅 math-symbols-readme.pdf

配合 VSCode LaTeX Workshop 使用

  1. 在 VSCode 中安装 LaTeX Workshop 插件
  2. 在设置中搜索 latex-workshop.hover.preview.mathjax.extensions 选项,依次添加如下插件
{
    "latex-workshop.hover.preview.mathjax.extensions": [
        "boldsymbol",
        "mathtools",
        "cases",
        "gensymb",
        "textmacros"
    ]
}
  1. 在设置中搜索 latex-workshop.hover.preview.newcommand.newcommandFile 选项,填入 custom-math-symbols.tex
{
    "latex-workshop.hover.preview.newcommand.newcommandFile": "custom-math-symbols.tex"
}
  1. custom-math-symbols.tex 文件和 math-symbols.sty 拷贝至工作目录,参考上一节的 2、3 步骤

Notes

BibTeX

@software{MathSymbolsinLaTeXbypolossk,
    title       = {Math Symbols in {{\LaTeX}}},
    author      = {Shangkun Shen},
    year        = {2017},
    month       = {10},
    publisher   = {Zenodo},
    doi         = {10.5281/zenodo.4120375},
    url         = {https://doi.org/10.5281/zenodo.4120375}
}

English Version

  1. Copy math-symbols.sty in your working directory
  2. Add \usepackage{math-symbols} in your tex document
  3. Check math-symbols-readme.pdf for details.

Work with VSCode LaTeX Workshop

  1. Install LaTeX Workshop Extension in VSCode
  2. Find option latex-workshop.hover.preview.mathjax.extensions in setting, then select the following extensions of mathjax
{
    "latex-workshop.hover.preview.mathjax.extensions": [
        "boldsymbol",
        "mathtools",
        "cases",
        "gensymb",
        "textmacros"
    ]
}
  1. Find option latex-workshop.hover.preview.newcommand.newcommandFile in setting, then set to custom-math-symbols.tex
{
    "latex-workshop.hover.preview.newcommand.newcommandFile": "custom-math-symbols.tex"
}
  1. Copy custom-math-symbols.tex together with math-symbols.sty to your working directory, then follow the instructions 2, 3 of above section

Appendix

Copyright

Use this code whatever you want, under the circumstances of acknowleged the mit license this page below. Star this repository if you like, and it will be very generous of you!

License

The MIT License (MIT) Copyright (c) 2017-2022 Shangkun Shen, http://polossk.com polossk_dev@126.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.