Skip to content

Commit

Permalink
ver 1.8.3 - disable cyrillic fonts by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wyqy committed Oct 23, 2024
1 parent 88adaf4 commit c54a656
Show file tree
Hide file tree
Showing 8 changed files with 1,627 additions and 1,613 deletions.
164 changes: 82 additions & 82 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,83 +1,83 @@
{
// editor
"files.associations": {
"*.cfg": "tex",
"*.def": "tex"
},
// latex
"latex-workshop.latex.autoBuild.run": "onSave",
"latex-workshop.showContextMenu": true,
"latex-workshop.message.error.show": false,
"latex-workshop.message.warning.show": false,
"latex-workshop.latex.recipe.default": "lastUsed",
"latex-workshop.intellisense.package.enabled": true,
"latex-workshop.intellisense.biblatexJSON.replace": {},
"latex-workshop.latex.outDir": "./.output",
"latex-workshop.latex.recipes": [
{
"name": "build",
"tools": ["build - latexmk"]
},
{
"name": "clean",
"tools": ["clean - latexmk"]
}
],
"latex-workshop.latex.tools": [
{
"name": "build - latexmk",
"command": "latexmk",
"args": [
"-norc", "-xelatex",
"-bibtex", "-bibfudge",
"-latex=xelatex", "-recorder-",
"-latexoption=-synctex=1 -interaction=nonstopmode -file-line-error --shell-escape",
"-outdir=%OUTDIR%",
"%DOCFILE%"
]
},
{
"name": "clean - latexmk",
"command": "latexmk",
"args": [
"-norc", "-c",
"-outdir=%OUTDIR%"
]
}
],
"latex-workshop.latex.clean.fileTypes": [
"*.aux",
"*.bbl",
"*.blg",
"*.idx",
"*.ind",
"*.lof",
"*.lot",
"*.out",
"*.toc",
"*.acn",
"*.acr",
"*.alg",
"*.glg",
"*.glo",
"*.gls",
"*.ist",
"*.fls",
"*.log",
"*.fdb_latexmk"
]//, pdf reviewer
// "latex-workshop.view.pdf.viewer": "external",
// "latex-workshop.view.pdf.ref.viewer":"external",
// "latex-workshop.view.pdf.internal.synctex.keybinding": "double-click",
// "latex-workshop.view.pdf.external.viewer.command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
// "latex-workshop.view.pdf.external.viewer.args": [
// "%PDF%"
// ],
// "latex-workshop.view.pdf.external.synctex.command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
// "latex-workshop.view.pdf.external.synctex.args": [
// "-forward-search",
// "%TEX%",
// "%LINE%",
// "%PDF%"
// ]
{
// editor
"files.associations": {
"*.cfg": "tex",
"*.def": "tex"
},
// latex
"latex-workshop.latex.autoBuild.run": "onSave",
"latex-workshop.showContextMenu": true,
"latex-workshop.message.error.show": false,
"latex-workshop.message.warning.show": false,
"latex-workshop.latex.recipe.default": "lastUsed",
"latex-workshop.intellisense.package.enabled": true,
"latex-workshop.intellisense.biblatexJSON.replace": {},
"latex-workshop.latex.outDir": "./.output",
"latex-workshop.latex.recipes": [
{
"name": "build",
"tools": ["build - latexmk"]
},
{
"name": "clean",
"tools": ["clean - latexmk"]
}
],
"latex-workshop.latex.tools": [
{
"name": "build - latexmk",
"command": "latexmk",
"args": [
"-norc", "-xelatex",
"-bibtex", "-bibfudge",
"-latex=xelatex", "-recorder-",
"-latexoption=-synctex=1 -interaction=nonstopmode -file-line-error --shell-escape",
"-outdir=%OUTDIR%",
"%DOCFILE%"
]
},
{
"name": "clean - latexmk",
"command": "latexmk",
"args": [
"-norc", "-c",
"-outdir=%OUTDIR%"
]
}
],
"latex-workshop.latex.clean.fileTypes": [
"*.aux",
"*.bbl",
"*.blg",
"*.idx",
"*.ind",
"*.lof",
"*.lot",
"*.out",
"*.toc",
"*.acn",
"*.acr",
"*.alg",
"*.glg",
"*.glo",
"*.gls",
"*.ist",
"*.fls",
"*.log",
"*.fdb_latexmk"
]//, pdf reviewer
// "latex-workshop.view.pdf.viewer": "external",
// "latex-workshop.view.pdf.ref.viewer":"external",
// "latex-workshop.view.pdf.internal.synctex.keybinding": "double-click",
// "latex-workshop.view.pdf.external.viewer.command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
// "latex-workshop.view.pdf.external.viewer.args": [
// "%PDF%"
// ],
// "latex-workshop.view.pdf.external.synctex.command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
// "latex-workshop.view.pdf.external.synctex.args": [
// "-forward-search",
// "%TEX%",
// "%LINE%",
// "%PDF%"
// ]
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* [TongjiThesis @ marquistj13, CNchence, Wenda, 2020](https://github.com/marquistj13/TongjiThesis);
* ``Copilot`` \& ``texdoc`` \& ``tex.stackexchange.com``.

免责声明:
* 本模板附带的字体仅用于`同济大学硕博士论文LaTeX模板`效果展示和`同济大学学位论文`撰写, 版权归属原作者所有, 若需使用请自行获取字体授权

## 2. 运行环境

> #### ※ Windows / Linux / Overleaf 等在线编译环境
Expand Down
68 changes: 34 additions & 34 deletions ctex-fontset-tongji.def
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
\GetIdInfo$Id: ctex.dtx 13a2256 2024-08-30 00:00:00 +0800 Jingze You <youjingze@msn.cn> $
{TONGJI fonts definition by WYQY (CTEX)}
\ProvidesExplFile{ctex-fontset-tongji.def}
{\ExplFileDate}{2.5.10}{\ExplFileDescription}
\ctex_fontset_case:nnn
{ \ctex_fontset_error:n { tongji } } % fail early for pdfTeX
{ \ctex_fontset_error:n { tongji } } % fail early for upTeX
{ % xetex / luatex
\setmainfont{times.ttf}
[ Path = {fonts/}, BoldFont = timesbd.ttf, ItalicFont = timesi.ttf, BoldItalicFont = timesbi.ttf ]
\setmonofont{cour.ttf}
[ Path = {fonts/}, BoldFont = courbd.ttf, ItalicFont = couri.ttf, BoldItalicFont = courbi.ttf ]
\setCJKmainfont{SimSun.ttf}
[ Path = {fonts/}, BoldFont = SimHei.ttf, ItalicFont = KaiTi_GB2312.ttf ]
\setCJKsansfont[Path={fonts/}]{SimHei.ttf}
\setCJKmonofont[Path={fonts/}]{FangSong_GB2312.ttf}
\setCJKfamilyfont{zhsong}[Path={fonts/}]{SimSun.ttf}
\setCJKfamilyfont{zhhei}[Path={fonts/}]{SimHei.ttf}
\setCJKfamilyfont{zhkai}[Path={fonts/}]{KaiTi_GB2312.ttf}
\setCJKfamilyfont{zhli}[Path={fonts/}]{LiShu.ttf}
\setCJKfamilyfont{zhyou}[Path={fonts/}]{SimYou.ttf}
\setCJKfamilyfont{zhyahei}[Path={fonts/}]{MSYaHei.ttf}
}
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } }
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } }
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } }
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } }
\NewDocumentCommand \lishu { } { \CJKfamily { zhli } }
\NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } }
\GetIdInfo$Id: ctex.dtx 13a2256 2024-08-30 00:00:00 +0800 Jingze You <youjingze@msn.cn> $
{TONGJI fonts definition by WYQY (CTEX)}
\ProvidesExplFile{ctex-fontset-tongji.def}
{\ExplFileDate}{2.5.10}{\ExplFileDescription}

\ctex_fontset_case:nnn
{ \ctex_fontset_error:n { tongji } } % fail early for pdfTeX
{ \ctex_fontset_error:n { tongji } } % fail early for upTeX
{ % xetex / luatex
\setmainfont{times.ttf}
[ Path = {fonts/}, BoldFont = timesbd.ttf, ItalicFont = timesi.ttf, BoldItalicFont = timesbi.ttf ]
\setmonofont{cour.ttf}
[ Path = {fonts/}, BoldFont = courbd.ttf, ItalicFont = couri.ttf, BoldItalicFont = courbi.ttf ]

\setCJKmainfont{SimSun.ttf}
[ Path = {fonts/}, BoldFont = SimHei.ttf, ItalicFont = KaiTi_GB2312.ttf ]

\setCJKsansfont[Path={fonts/}]{SimHei.ttf}
\setCJKmonofont[Path={fonts/}]{FangSong_GB2312.ttf}

\setCJKfamilyfont{zhsong}[Path={fonts/}]{SimSun.ttf}
\setCJKfamilyfont{zhhei}[Path={fonts/}]{SimHei.ttf}
\setCJKfamilyfont{zhkai}[Path={fonts/}]{KaiTi_GB2312.ttf}
\setCJKfamilyfont{zhli}[Path={fonts/}]{LiShu.ttf}
\setCJKfamilyfont{zhyou}[Path={fonts/}]{SimYou.ttf}
\setCJKfamilyfont{zhyahei}[Path={fonts/}]{MSYaHei.ttf}
}

\NewDocumentCommand \songti { } { \CJKfamily { zhsong } }
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } }
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } }
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } }
\NewDocumentCommand \lishu { } { \CJKfamily { zhli } }
\NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } }
\NewDocumentCommand \yahei { } { \CJKfamily { zhyahei } }
Loading

0 comments on commit c54a656

Please sign in to comment.