mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-19 06:09:37 +08:00
Update TeX
This commit is contained in:
parent
15268cfd0f
commit
d2d7374786
@ -4,21 +4,25 @@
|
|||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Nil Null <nil@null.org>
|
* Contributors : Nil Null <nil@null.org>
|
||||||
* Created On : <2023-09-10>
|
* Created On : <2023-09-10>
|
||||||
* Last Modified : <2024-08-15>
|
* Last Modified : <2025-07-13>
|
||||||
|
*
|
||||||
|
* MiKTeX 和 TeX Live 都是流行的 LaTeX 发行版,但它们是不同的实现
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @update 2023-09-10
|
* @update 2025-07-13
|
||||||
*/
|
*/
|
||||||
static Source_t wr_tex_sources[] =
|
static Source_t wr_tex_sources[] =
|
||||||
{
|
{
|
||||||
{&UpstreamProvider, NULL},
|
{&UpstreamProvider, NULL, NULL},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet"},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/CTAN/systems/texlive/tlnet", NULL},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet"},
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet", NULL},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet"},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet", NULL},
|
||||||
{&Lzuoss, "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet"},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet", NULL},
|
||||||
{&Jlu, "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet"},
|
{&Bjtu, "https://mirror.bjtu.edu.cn/ctan/systems/texlive/tlnet", NULL},
|
||||||
{&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet"}
|
{&Lzuoss, "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet", NULL},
|
||||||
|
{&Jlu, "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet", NULL},
|
||||||
|
{&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet", NULL}
|
||||||
};
|
};
|
||||||
def_sources_n(wr_tex);
|
def_sources_n(wr_tex);
|
||||||
|
|
||||||
@ -32,7 +36,7 @@ wr_tex_check_cmd (bool *tlmgr_exist, bool *mpm_exist)
|
|||||||
if (!*tlmgr_exist && !*mpm_exist)
|
if (!*tlmgr_exist && !*mpm_exist)
|
||||||
{
|
{
|
||||||
chsrc_error ("未找到 tlmgr 或 mpm 命令,请检查是否存在(其一)");
|
chsrc_error ("未找到 tlmgr 或 mpm 命令,请检查是否存在(其一)");
|
||||||
exit(1);
|
exit (Exit_UserCause);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +57,7 @@ wr_tex_getsrc (char *option)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参考 https://help.mirrors.cernet.edu.cn/CTAN/
|
* @consult https://help.mirrors.cernet.edu.cn/CTAN/
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
wr_tex_setsrc (char *option)
|
wr_tex_setsrc (char *option)
|
||||||
@ -82,4 +86,19 @@ wr_tex_setsrc (char *option)
|
|||||||
chsrc_conclude (&source);
|
chsrc_conclude (&source);
|
||||||
}
|
}
|
||||||
|
|
||||||
def_target(wr_tex);
|
|
||||||
|
Feature_t
|
||||||
|
wr_tex_feat (char *option)
|
||||||
|
{
|
||||||
|
Feature_t f = {0};
|
||||||
|
|
||||||
|
f.can_get = true;
|
||||||
|
f.can_reset = false;
|
||||||
|
|
||||||
|
f.can_english = false;
|
||||||
|
f.can_user_define = true;
|
||||||
|
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
|
||||||
|
def_target_gsf(wr_tex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user