Skip to content

1.1.5.3这种纯数字序号改成国内论文适用的一、(一)(1)等标准代码 #167

Answered by Keldos-Li
sf88ux asked this question in Q&A
Discussion options

You must be logged in to vote

CSS中约154~185行处改为:

/* 侧边大纲标题 */
.sidebar-content .outline-h1 {
  counter-reset: outline-h2;
}
.sidebar-content .outline-h2 {
  counter-reset: outline-h3;
}
.sidebar-content .outline-h2 .outline-label:before {
  counter-increment: outline-h2;
  content: counter(outline-h2, cjk-decimal) "、";
}
.sidebar-content .outline-h3 {
  counter-reset: outline-h4;
}
.sidebar-content .outline-h3 .outline-label:before {
  counter-increment: outline-h3;
  content: "(" counter(outline-h3, cjk-decimal) ")";
}
.sidebar-content .outline-h4 {
  counter-reset: outline-h5;
}
.sidebar-content .outline-h4 .outline-label:before {
  counter-increment: outline-h4;
  content: counter(outline-h4) ". ";
}
.sidebar-content .

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Keldos-Li
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #151 on November 22, 2024 14:35.