Comments (3)
from biblatex-gb7714-2015.
这个问题是这样的,
因为在cjk判断函数中,使用了xtring的StrChar函数来抽取字符,但这个函数默认情况下需要其参数完全展开。因为\LaTeX{}宏比较复杂,展开时会出现问题。设置该函数不展开或展开一次,都可以解决判断出错的问题。比如:
\expandarg
%
\StrChar{english}{1}[\tempa]%
\tempa
\StrChar{中文}{1}[\tempa]%
\tempa
\StrChar{english \LaTeX{} abc}{1}[\tempa]%
\tempa
但解决的是直接给出文本的情况,在biblatex使用中需要用\thefield取出文本,显然\thefield不止展开一次,因此不展开或者展开一次,都会出现问题,所以无解。只能从另外一个角度出发。
考虑到动态数据修改时,也可以利用正则表达式抽取数据,因此利用它来将title信息的第一个非特殊符号字符抽取出来,放到userd中用于cjk判断,这样就避开了\LaTeX{}展开的问题。
我一会把修改后的样式文件更新了。你下一个新的即可。
这个问题很好,我也一直没有碰到过,感谢!
from biblatex-gb7714-2015.
好的!大牛你太厉害了~~
from biblatex-gb7714-2015.
Related Issues (20)
- 对“参考文献”进行章节编号 HOT 3
- 会议论文集格式
- 会议论文集格式 HOT 6
- 著者-出版制的日期格式 HOT 5
- 一种法学类文献样式--如何实现这种注释要求 HOT 26
- 中英文文献中 unicode 引号的处理 HOT 7
- 在通过 Pandoc 转换的 LaTeX 文档中使用 biblatex-gb7714-2015 时,\autocites 多重引用产生了多余的括号 HOT 14
- 使用了gbcitelabel = quanjiao设定引用处的标点符号之后,括号前后的间距不一样。 HOT 3
- 南开大学硕/博模板中如何将[J]前的.去除 HOT 1
- [样式请求] 顺序编码制 + `\parencite` 输出的页码是非上标 HOT 2
- 英文译者 `Trans. by` 后没有空格 HOT 2
- 警告:`byeditor+others` 已定义 HOT 2
- 关于增加 `file` 域来链接本地文件的问题 HOT 18
- `parencite` 失去超链接 HOT 4
- `\parencite[]{}` 的 `[]` 输入页码时的空格问题 HOT 2
- 著者-出版年制期刊名与期中间不应有逗号 HOT 3
- 西文作者名包含短横线 hyphen 的缩写问题 HOT 12
- `incollection` 中作者和编者相同时编者未显示 HOT 1
- 使用 quarto 生成 pdf 参考文献的等字显示为 “andotherscn” HOT 18
- 设置gbfnperpage=true后,跨页段落中的脚标无法准确重置计数 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biblatex-gb7714-2015.