Typora設定標題自動新增序號

2021-09-28 08:32:29 字數 2272 閱讀 1075

建立乙個空檔案,命名為base.user.css

裡面貼上如下內容儲存後重啟typora,輸入標題時會自動出現序號。

/** initialize css counter */

#write

h1 h2

h3 h4

h5 /** put counter result into headings */

#write h1:before

#write h2:before

#write h3:before,

h3.md-focus.md-heading:before /** override the default style for focused headings */

#write h4:before,

h4.md-focus.md-heading:before

#write h5:before,

h5.md-focus.md-heading:before

#write h6:before,

h6.md-focus.md-heading:before

/** override the default style for focused headings */

#write>h3.md-focus:before,

#write>h4.md-focus:before,

#write>h5.md-focus:before,

#write>h6.md-focus:before,

h3.md-focus:before,

h4.md-focus:before,

h5.md-focus:before,

h6.md-focus:before

效果如下:

/** initialize css counter */

#write

h1 h2

h3 h4

h5 /** put counter result into headings */

#write h1:before #write h2:before

#write h3:before,

h3.md-focus.md-heading:before /** override the default style for focused headings */

#write h4:before,

h4.md-focus.md-heading:before

#write h5:before,

h5.md-focus.md-heading:before

#write h6:before,

h6.md-focus.md-heading:before

/** override the default style for focused headings */

#write>h3.md-focus:before,

#write>h4.md-focus:before,

#write>h5.md-focus:before,

#write>h6.md-focus:before,

h3.md-focus:before,

h4.md-focus:before,

h5.md-focus:before,

h6.md-focus:before

效果如下:

typora設定標題自動新增序號

Typora軟體裡如何新增自動排序的標題?

在以前使用word寫筆記時,通過設定各級標題格式和 編號 可以非常方便的在文件裡新增和刪除自動排序的各級標題。但是後來我用typora軟體來寫markdown格式的筆記時,發現此軟體預設是沒有此功能可設定的。後來通過網上查詢,發現需要新增乙個字尾名為css的程式檔案,放到typora軟體指定的路徑下...

C Word 標題設定大綱級別和自動生成目錄

環境 office2010 vs2010 比如說 需要把這乙個標題 第三方破壞的詳細資訊 設定成一級 opara1.range.text 第三方破壞的詳細資訊 opara1.range.select opara1.outlinelevel word.wdoutlinelevel.wdoutlinel...

pycharm設定 py檔案自動新增字首

pycharm在建立新的python 檔案時,自動新增字首,做如下設定即可 依次file settings editor file and code templates python script,然後設定自動新增字首內容即可。project 專案 檔名 ide 編譯器 author 作者 date...