From bac9b5cdc8c6c01c6b8485ca647aafbff2c5859e Mon Sep 17 00:00:00 2001 From: Yuki Date: Wed, 17 Dec 2025 19:47:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8F=82=E8=80=83=E6=96=87=E7=8C=AE?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E9=80=89=E6=8B=A9=E4=B8=8D=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TeXmacs/packages/section/section-base.ts | 2 ++ TeXmacs/plugins/latex/progs/bibtex/bib-utils.scm | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/TeXmacs/packages/section/section-base.ts b/TeXmacs/packages/section/section-base.ts index cdbab26b8..f6e5c00fe 100644 --- a/TeXmacs/packages/section/section-base.ts +++ b/TeXmacs/packages/section/section-base.ts @@ -50,6 +50,8 @@ >> + + >> >> diff --git a/TeXmacs/plugins/latex/progs/bibtex/bib-utils.scm b/TeXmacs/plugins/latex/progs/bibtex/bib-utils.scm index c890490d1..fb0263f2e 100644 --- a/TeXmacs/plugins/latex/progs/bibtex/bib-utils.scm +++ b/TeXmacs/plugins/latex/progs/bibtex/bib-utils.scm @@ -170,7 +170,10 @@ (tm-define (bib-emphasize x) `(with "font-shape" "italic" ,x)) -(tm-define (bib-translate s) `(localize ,s)) +(tm-define (bib-translate s) + (if (and (get-env "bib-no-translate") (== (get-env "bib-no-translate") "true")) + s + `(localize ,s))) (tm-define bib-range-symbol "-") -- Gitee From ccba2b13e8d00a6f4d20649cbd2486152f32be38 Mon Sep 17 00:00:00 2001 From: Yuki Date: Mon, 22 Dec 2025 16:27:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8F=82=E8=80=83=E6=96=87=E7=8C=AE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=89=E9=A1=B9=EF=BC=8C=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E4=B8=8D=E8=87=AA=E5=8A=A8=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TeXmacs/packages/section/section-base.ts | 2 + TeXmacs/progs/generic/generic-edit.scm | 8 ++ TeXmacs/tests/tmu/204_21.bib | 124 +++++++++++++++++++++++ TeXmacs/tests/tmu/204_21.tmu | 74 ++++++++++++++ devel/204_21.md | 9 ++ 5 files changed, 217 insertions(+) create mode 100644 TeXmacs/tests/tmu/204_21.bib create mode 100644 TeXmacs/tests/tmu/204_21.tmu create mode 100644 devel/204_21.md diff --git a/TeXmacs/packages/section/section-base.ts b/TeXmacs/packages/section/section-base.ts index f6e5c00fe..c45e9a63d 100644 --- a/TeXmacs/packages/section/section-base.ts +++ b/TeXmacs/packages/section/section-base.ts @@ -52,6 +52,8 @@ + + >> >> diff --git a/TeXmacs/progs/generic/generic-edit.scm b/TeXmacs/progs/generic/generic-edit.scm index 37a716485..392fcb706 100644 --- a/TeXmacs/progs/generic/generic-edit.scm +++ b/TeXmacs/progs/generic/generic-edit.scm @@ -373,6 +373,10 @@ hlink locus ornament))) #t) +(tm-define (focus-has-preferences? t) + (:require (tree-in? t '(bibliography bibliography* thebibliography))) + #t) + (tm-define (focus-has-parameters? t) (focus-has-preferences? t)) @@ -849,6 +853,10 @@ (:require (in? l '("reference" "pageref" "eqref" "smart-ref" "label" "tag"))) (list)) +(tm-define (standard-parameters l) + (:require (in? l '("bibliography" "bibliography*" "thebibliography"))) + (list "bib-no-translate")) + (tm-define (search-parameters l) (:require (in? (if (string? l) l (symbol->string l)) '("reference" "pageref" "eqref" "smart-ref" "hlink"))) diff --git a/TeXmacs/tests/tmu/204_21.bib b/TeXmacs/tests/tmu/204_21.bib new file mode 100644 index 000000000..ac2bd90d4 --- /dev/null +++ b/TeXmacs/tests/tmu/204_21.bib @@ -0,0 +1,124 @@ + +@inproceedings{li_efficitnt_2024, + author = {Yansong Li and + Shuo Han}, + editor = {Mehdi Dastani and + Jaime Sim{\~{a}}o Sichman and + Natasha Alechina and + Virginia Dignum}, + title = {Efficient Collaboration with Unknown Agents: Ignoring Similar Agents + without Checking Similarity}, + booktitle = {Proceedings of the 23rd International Conference on Autonomous Agents + and Multiagent Systems, {AAMAS} 2024, Auckland, New Zealand, May 6-10, + 2024}, + pages = {2363--2365}, + publisher = {International Foundation for Autonomous Agents and Multiagent Systems + / {ACM}}, + year = {2024}, + url = {https://dl.acm.org/doi/10.5555/3635637.3663161}, + doi = {10.5555/3635637.3663161}, + timestamp = {Wed, 26 Jun 2024 14:06:50 +0200}, + biburl = {https://dblp.org/rec/conf/atal/Li024a.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} + +@inproceedings{li_solving_2023, + author = {Yansong Li and + Shuo Han}, + title = {Solving Strongly Convex and Smooth Stackelberg Games Without Modeling + the Follower}, + booktitle = {American Control Conference, {ACC} 2023, San Diego, CA, USA, May 31 + - June 2, 2023}, + pages = {2332--2337}, + publisher = {{IEEE}}, + year = {2023}, + url = {https://doi.org/10.23919/ACC55779.2023.10156010}, + doi = {10.23919/ACC55779.2023.10156010}, + timestamp = {Tue, 11 Jul 2023 16:44:32 +0200}, + biburl = {https://dblp.org/rec/conf/amcc/Li023a.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} + +@inproceedings{Li_accelerating_2022, + author = {Yansong Li and + Shuo Han}, + editor = {Roya Firoozi and + Negar Mehr and + Esen Yel and + Rika Antonova and + Jeannette Bohg and + Mac Schwager and + Mykel J. Kochenderfer}, + title = {Accelerating Model-Free Policy Optimization Using Model-Based Gradient: + {A} Composite Optimization Perspective}, + booktitle = {Learning for Dynamics and Control Conference, {L4DC} 2022, 23-24 June + 2022, Stanford University, Stanford, CA, {USA}}, + series = {Proceedings of Machine Learning Research}, + volume = {168}, + pages = {304--315}, + publisher = {{PMLR}}, + year = {2022}, + url = {https://proceedings.mlr.press/v168/li22a.html}, + timestamp = {Mon, 16 Jan 2023 08:20:01 +0100}, + biburl = {https://dblp.org/rec/conf/l4dc/LiH22.bib}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} + +@inproceedings{dong_generalizing_2024, +title={Generalizing End-To-End Autonomous Driving In Real-World Environments Using Zero-Shot {LLM}s}, +author={Zeyu Dong and Yimin Zhu and Yansong Li and Kevin Mahon and Yu Sun}, +booktitle={8th Annual Conference on Robot Learning}, +year={2024}, +url={https://openreview.net/forum?id=s0vHSq5QEv} +} + + +@article{li_removing_2024, +author = "Yansong Li and Zeyu Dong and Shuo Han", +title = "{Removing Redundant Partner Policies May Be Unnecessary for Ad Hoc Teamwork}", +year = "2024", +month = "10", +url = "https://indigo.uic.edu/articles/preprint/Removing_Redundant_Partner_Policies_May_Be_Unnecessary_for_Ad_Hoc_Teamwork/27139116", +doi = "10.25417/uic.27139116.v1" +} + +@article{li_bayes_2024, +author = "Yansong Li and Zeyu Dong and Shuo Han", +title = "{Bayes-Optimal, Robust, and Distributionally Robust Policies for Uncertain MDPs}", +year = "2024", +month = "10", +url = "https://indigo.uic.edu/articles/preprint/Bayes-Optimal_Robust_and_Distributionally_Robust_Policies_for_Uncertain_MDPs/27138990", +doi = "10.25417/uic.27138990.v1" +} + +@misc{yu_eapcr_2024, + title={EAPCR: A Universal Feature Extractor for Scientific Data without Explicit Feature Relation Patterns}, + author={Zhuohang Yu and Ling An and Yansong Li and Yu Wu and Zeyu Dong and Zhangdi Liu and Le Gao and Zhenyu Zhang and Chichun Zhou}, + year={2024}, + eprint={2411.08164}, + archivePrefix={arXiv}, + primaryClass={cs.LG}, + url={https://arxiv.org/abs/2411.08164}, +} + +@article{ STUD20250306006, +author = { 闵超 }, +title = {马克思1848年法国革命研究与唯物史观的具体化转向}, +journal = {马克思主义研究}, +number = {01}, +pages = {52-60}, +year = {2025}, +issn = {1006-5199}, +} + +@article{ SLLJ202306009, +author = { 闵超 }, +title = {思想政治教育在人的现代化进程中的功能及其实现}, +journal = {思想理论教育}, +volume = {}, +number = {06}, +pages = {62-68}, +year = {2023}, +issn = {1007-192X}, +doi = {10.16075/j.cnki.cn31-1220/g4.2023.06.007} +} \ No newline at end of file diff --git a/TeXmacs/tests/tmu/204_21.tmu b/TeXmacs/tests/tmu/204_21.tmu new file mode 100644 index 000000000..41d861e4f --- /dev/null +++ b/TeXmacs/tests/tmu/204_21.tmu @@ -0,0 +1,74 @@ +> + +> + +<\body> + + + <\bibliography|bib|tm-plain|mybib> + <\bib-list|7> + Zeyu Dong, Yimin Zhu, Yansong Li, Kevin Mahon, and Yu Sun. Generalizing end-to-end autonomous driving in real-world environments using zero-shot LLMs. In . 2024. + + Yansong Li, Zeyu Dong, and Shuo Han. Bayes-Optimal, Robust, and Distributionally Robust Policies for Uncertain MDPs. 10 2024. + + Yansong Li, Zeyu Dong, and Shuo Han. Removing Redundant Partner Policies May Be Unnecessary for Ad Hoc Teamwork. 10 2024. + + Yansong Li and Shuo Han. Accelerating model-free policy optimization using model-based gradient: A composite optimization perspective. In Roya Firoozi, Negar Mehr, Esen Yel, Rika Antonova, Jeannette Bohg, Mac Schwager, and MykelJ.Kochenderfer, editors, , volume 168 of , pages 304-315. PMLR, 2022. + + Yansong Li and Shuo Han. Solving strongly convex and smooth stackelberg games without modeling the follower. In , pages 2332-2337. IEEE, 2023. + + Yansong Li and Shuo Han. Efficient collaboration with unknown agents: ignoring similar agents without checking similarity. In Mehdi Dastani, JaimeSimão Sichman, Natasha Alechina, and Virginia Dignum, editors, , pages 2363-2365. International Foundation for Autonomous Agents and Multiagent Systems / ACM, 2024. + + Zhuohang Yu, Ling An, Yansong Li, Yu Wu, Zeyu Dong, Zhangdi Liu, Le Gao, Zhenyu Zhang, and Chichun Zhou. Eapcr: a universal feature extractor for scientific data without explicit feature relation patterns. 2024. + + + + \; + + +<\initial> + <\collection> + + + + + + +<\references> + <\collection> + > + > + > + > + > + > + > + > + > + > + > + + + +<\auxiliary> + <\collection> + <\associate|bib> + li_efficitnt_2024 + + li_solving_2023 + + Li_accelerating_2022 + + dong_generalizing_2024 + + li_removing_2024 + + li_bayes_2024 + + yu_eapcr_2024 + + <\associate|toc> + |math-font-series||参考文献>|.>>>>|> + + + diff --git a/devel/204_21.md b/devel/204_21.md new file mode 100644 index 000000000..c5f4640dc --- /dev/null +++ b/devel/204_21.md @@ -0,0 +1,9 @@ +# 204_21 参考文献是否根据语言翻译的选项 + +## 如何测试 +- 测试文档:Texmacs/tests/tmu/204_21.tmu + - 点击小扳手,有选项可以开关 + +## 2025/12/17 新增 bib-no-translate +### What +一些连接词会被自动翻译,使得参考文献功能在中文环境下不太好用 -- Gitee