[LyX features/feature/docbook] XHTML sections: only filter out things that are not Sectioning, not based on the level.
Thibaut Cuvelier
tcuvelier at lyx.org
Sat Sep 19 01:21:40 UTC 2020
The branch, feature/docbook, has been updated.
- Log -----------------------------------------------------------------
commit 4561df540602703b90b01c48d70e8c118692675d
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date: Sat Sep 19 03:23:00 2020 +0200
XHTML sections: only filter out things that are not Sectioning, not based on the level.
diff --git a/autotests/export/xhtml/zh_CN_Tutorial.lyx b/autotests/export/xhtml/zh_CN_Tutorial.lyx
new file mode 100644
index 0000000..f5bbb69
--- /dev/null
+++ b/autotests/export/xhtml/zh_CN_Tutorial.lyx
@@ -0,0 +1,974 @@
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 598
+\begin_document
+\begin_header
+\save_transient_properties true
+\origin unavailable
+\textclass book
+\begin_preamble
+% Chinese localization
+\@ifpackageloaded{fontspec}%
+{\usepackage{ctex}}% ctex with non-TeX fonts
+{%\usepackage[UTF8]{ctex}% error with font setup (missing font?)
+}
+\end_preamble
+\options cjk
+\use_default_options true
+\maintain_unincluded_children no
+\language chinese-simplified
+\language_package default
+\inputencoding utf8-cjk
+\fontencoding auto
+\font_roman "lmodern" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
+\font_math "auto" "auto"
+\font_default_family default
+\use_non_tex_fonts false
+\font_sc false
+\font_roman_osf false
+\font_sans_osf false
+\font_typewriter_osf false
+\font_sf_scale 100 100
+\font_tt_scale 100 100
+\font_cjk gbsn
+\use_microtype false
+\use_dash_ligatures false
+\graphics default
+\default_output_format default
+\output_sync 0
+\bibtex_command default
+\index_command default
+\float_placement th
+\float_alignment class
+\paperfontsize 12
+\spacing onehalf
+\use_hyperref true
+\pdf_title "The LyX Tutorial"
+\pdf_author "LyX Team"
+\pdf_subject "LyX-documentation Tutorial"
+\pdf_keywords "LyX, documentation"
+\pdf_bookmarks true
+\pdf_bookmarksnumbered true
+\pdf_bookmarksopen true
+\pdf_bookmarksopenlevel 1
+\pdf_breaklinks false
+\pdf_pdfborder false
+\pdf_colorlinks true
+\pdf_backref section
+\pdf_pdfusetitle false
+\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true,pdfstartview=XYZ, plainpages=false"
+\papersize a4
+\use_geometry false
+\use_package amsmath 1
+\use_package amssymb 1
+\use_package cancel 1
+\use_package esint 1
+\use_package mathdots 1
+\use_package mathtools 1
+\use_package mhchem 1
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
+\cite_engine basic
+\cite_engine_type default
+\biblio_style plain
+\use_bibtopic false
+\use_indices false
+\paperorientation portrait
+\suppress_date false
+\justification true
+\use_refstyle 0
+\use_minted 0
+\use_lineno 0
+\index ç´¢å¼
+\shortcut idx
+\color #008000
+\end_index
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\paragraph_indentation default
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style english
+\dynamic_quotes 0
+\papercolumns 1
+\papersides 2
+\paperpagestyle default
+\tablestyle default
+\tracking_changes false
+\output_changes false
+\change_bars false
+\postpone_fragile_content false
+\html_math_output 0
+\html_css_as_file 0
+\html_be_strict false
+\docbook_table_output 0
+\end_header
+
+\begin_body
+
+\begin_layout Title
+The \SpecialChar LyX
+ Tutorial
+\end_layout
+
+\begin_layout Chapter
+ä»ç»
+\end_layout
+
+\begin_layout Section
+欢è¿æ¥å° \SpecialChar LyX
+!
+\end_layout
+
+\begin_layout Standard
+è¿ä¸ªææ¡£æ¯ä¸ºé£äºä¸ç¥é \SpecialChar LaTeX
+ æç¥ä¹çå°ç人åå¤çãä¸å¿
æ
å¿ï¼ä½¿ç¨ \SpecialChar LyX
+ ä¸å¿
å¦ä¹ \SpecialChar LaTeX
+ã\SpecialChar LyX
+ çç®æ å°±æ¯æä¾ä¸ä¸ªæè§å³æå¾ç \SpecialChar LaTeX
+ åºç¨ã为äºé«æçä½¿ç¨ \SpecialChar LyX
+ï¼è¿æ¯éè¦å¦ä¹ ä¸äºä¸è¥¿ç
+ã
+\end_layout
+
+\begin_layout Standard
+ä½ ä¼åç°å¨å
¶å®åå¤ç软件ä¸å¸¸ç¨çæçæ¹å¼å¨ \SpecialChar LyX
+ ä¸é½ä¸è½ä½¿ç¨äºï¼æ¯å¦ï¼å¨â.âåè¾¹è¾å
¥ä¸¤ä¸ªç©ºæ ¼ï¼å¨æ®µé´è¾å
¥ä¸ä¸ªç©ºè¡ãä½ ä»¥å使ç¨ç软件å
许æå¨è°æ´é´è·ãåä½çä¸è¥¿ï¼æ
+ä»¥ä½ ä¸å¾ä¸å³å½å
¥åæçã\SpecialChar LyX
+ä¼å好æççäºæ
çï¼èä½ åªéè¦è½¬æ³¨äºéè¦çä¸è¥¿ï¼ä½ æ£å¨åçå
容ã
+\end_layout
+
+\begin_layout Standard
+继ç»è¯»ä¸å»ï¼äºè§£æ´å¤ \SpecialChar LyX
+ã读å®è¿ç¯æç¨ï¼ä½ ä¼è§å¾ç©ææå¼çã
+\end_layout
+
+\begin_layout Section
+æ¬æç¨ç®ä»
+\end_layout
+
+\begin_layout Standard
+å¨å¼å§ä¹å建议æ¨å
读ä¸ä¸ Introductionï¼é£é解éäºæ¬æ使ç¨ç注éæ¹å¼ãå½ä½ äºè§£äºåç§åä½çæä¹ä¹åï¼æ们å
æ¥è¯´è¯´æ¬ç¯æç¨æ¯å¹²ä»ä¹çã
+\end_layout
+
+\begin_layout Subsection
+å¦ä¹ æ¹å¼
+\end_layout
+
+\begin_layout Standard
+æ¬æç¨å
å«äºä¾ååç»ä¹ ãå¦ä¹ ä¸æ¨åºè¯¥è¯çè¾å
¥æä»¬è®©ä½ è¾å
¥çä¸è¥¿ï¼å®æææç»ä¹ ï¼ççæ¨æ¯ä¸æ¯å¾å°äºæ£ç¡®çä¸è¥¿ã为äºæ¹ä¾¿ï¼å°æ¬ææ¡£æå°åºæ¥ä¼æ¯ä¸ä¸ªå¥½éæ©ã
+\end_layout
+
+\begin_layout Standard
+å¦æ对 \SpecialChar LaTeX
+ æ¯è¾çæçè¯ï¼ä½ å°è½å¤è¾å¿«çé
读æ¬æç¨ï¼å 为 \SpecialChar LyX
+ çææ³å°±æ¯ \SpecialChar LaTeX
+ ææ³çä¸ç§å
è£
ã\SpecialChar LyX
+ èªèº«ä¹æå¾å¤ç¹æ§æ¯ä½ æ³äºè§£çãå°±ç®ä¸æ³ç»§ç»è¯»ä¸å»ï¼ä½ ä¹åºè¯¥çç
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:LaTeX-ç¨æ·å¿
读"
+
+\end_inset
+
+ï¼å®æ¯ä¸é¨åç»çç»ç \SpecialChar LaTeX
+ ç¨æ·çã
+\end_layout
+
+\begin_layout Subsection
+æ¬æç¨æ²¡æç
+\end_layout
+
+\begin_layout Itemize
+\SpecialChar LyX
+ å
¨é¨ç¹æ§ç详ç»è§£éã
+\end_layout
+
+\begin_deeper
+\begin_layout Standard
+éè¦çè¯ï¼è¯·é
读 the
+\emph on
+User's Guideã
+\end_layout
+
+\end_deeper
+\begin_layout Itemize
+\SpecialChar LaTeX
+ ç详ç»è§£éã
+\end_layout
+
+\begin_deeper
+\begin_layout Standard
+没å¿
è¦è¿æ ·åãè¦æ³ç¥éç¨ \SpecialChar LaTeX
+ å¨ \SpecialChar LyX
+ ä¸è½åäºä»ä¹ï¼å¯ä»¥çç the
+\emph on
+Embedded
+\begin_inset space ~
+\end_inset
+
+Objects
+\emph default
+ manualã
+\end_layout
+
+\end_deeper
+\begin_layout Standard
+ç°å¨æ¯å¼å§ä½ ç第ä¸ä¸ªææ¡£çæ¶åäºã
+\end_layout
+
+\begin_layout Chapter
+åè¯ \SpecialChar LyX
+
+\end_layout
+
+\begin_layout Section
+第ä¸ä¸ª \SpecialChar LyX
+ ææ¡£
+\end_layout
+
+\begin_layout Standard
+å¼å§ä¹å说å 件äºæ
ï¼è¿ä¼ä½¿æ¬æç¨åæ¥æ´å¤§çä½ç¨ã
+\end_layout
+
+\begin_layout Standard
+ç±äºæ¬æç¨ä¸ä¼æä¾ææä¿¡æ¯ï¼æä»¥ä½ éè¦æ¾å°å
¶å®ç帮å©æ件ãè¿å¾ç®åï¼å¯å¨ \SpecialChar LyX
+ï¼å¨å¸®å©èåä¸å°±æ the
+\emph on
+User's Guideã
+\shape italic
+å¨åèªå·±çæ件æ¶å°±å¯ä»¥è¯»å°å®ä»¬äºï¼å®ä»¬æ¬èº«å°±æ¯å¾å¥½çä¾åï¼ã注æï¼å½æå¼å¤ä¸ªæ件æ¶ï¼å¯ä»¥éè¿ View èåæææ¡£æ ç¾è¿è¡åæ¢ã
+\end_layout
+
+\begin_layout Standard
+æ们åè®¾ä½ å·²ç»æäºå
¨åè½ç \SpecialChar LyX
+ å \SpecialChar LaTeX
+ï¼å
æ¬ DVIãPDF æ件æµè§å¨ãä¸è¬æ¥è¯´ï¼å¨åç§æä½ç³»ç»ä¸ï¼å¨å®è£
\SpecialChar LyX
+ çæ¶å就已ç»å好äºã
+\end_layout
+
+\begin_layout Standard
+æåï¼æ们æä¾äºä¸ä¸ªæ件
+\family typewriter
+example_raw.lyxï¼
+\family default
+ç»ä½ ç»ä¹ 使ç¨ãåæ³è¿ä¸ªæ件æ¯ç±ä¸ä¸ªå®å
¨ä¸ç¥é \SpecialChar LyX
+ ç¹æ§ç人åçï¼å¨å¦ä¹ çè¿ç¨ä¸ï¼æ们ä¼å»ºè®®ä½ ä¿®æ¹è¿ä¸ªæ件çãexample_raw.lyx ä¸ä¹å
å«äºä¿®æ¹çæ示信æ¯
+ã为äºå¯¹æ¯ï¼æ们è¿æä¾äºä¸ä»½ \SpecialChar LyX
+ é«æåçåæ ·å
容çææ¡£ï¼example_lyxified.lyxã
+\end_layout
+
+\begin_layout Standard
+示ä¾ææ¡£åå¨äº \SpecialChar LyX
+ å®è£
è·¯å¾ç examples ç®å½ä¸ãæå¼ç¤ºä¾ææ¡£ï¼å¦åå°èªå·±çç®å½ä¸ï¼ä¿®æ¹åè¾åºå° DVI æ件çææã
+\end_layout
+
+\begin_layout Standard
+å¦å¤ï¼examples ç®å½ä¸è¿æå¾å¤å
¶å®ç示ä¾æ件ï¼å®ä»¬å°åæ¨å±ç¤º \SpecialChar LyX
+ ç强大åè½ãå½ä½ å¿è®°äºæ个åè½æä¹ä½¿ç¨çæ¶åï¼ä¹å¯ä»¥åæ¥ççè¿äºææ¡£ã
+\end_layout
+
+\begin_layout Subsection
+å½å
¥ãæ¥çãè¾åº
+\end_layout
+
+\begin_layout Itemize
+使ç¨èå
+\family sans
+File\SpecialChar menuseparator
+New æå¼æ°æ件ã
+\end_layout
+
+\begin_layout Itemize
+è¾å
¥ä¸ä¸ªå¥å:
+\family typewriter
+This is my first \SpecialChar LyX
+ document!
+\end_layout
+
+\begin_layout Itemize
+使ç¨èå
+\family sans
+File\SpecialChar menuseparator
+Save
+\begin_inset space ~
+\end_inset
+
+As ä¿åæ件ã
+\end_layout
+
+\begin_layout Itemize
+è¿è¡ \SpecialChar LaTeX
+ çæ DVI æ件ï¼ä½¿ç¨èå
+\family sans
+Document\SpecialChar menuseparator
+View
+\family default
+ æ å·¥å
·æ æé®
+\begin_inset Info
+type "icon"
+arg "buffer-view"
+\end_inset
+
+ã \SpecialChar LyX
+ å°æå¼ DVI-viewer ç¨åºæ¾ç¤ºææ¡£æå°æ¶çæ ·åã
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+ä¿æ DVI-viewerå¨åå°è¿è¡ä¼èçæ¶é´ã以åå¯ä»¥ç¹å»
+\family sans
+Document\SpecialChar menuseparator
+Update\SpecialChar menuseparator
+DVI
+\family default
+ æå·¥å
·æ æé®
+\begin_inset Info
+type "icon"
+arg "buffer-update"
+\end_inset
+
+ï¼ç \SpecialChar LyX
+ è¿ç®å®æååæ¢å° DVI-viewerå³å¯ã
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Itemize
+使ç¨èå
+\family sans
+File\SpecialChar menuseparator
+Export
+\family default
+ å°ææ¡£è¾åºæå¸æçæ ¼å¼ã
+\end_layout
+
+\begin_layout Standard
+æåï¼ä½ å·²ç»ååºäºç¬¬ä¸ä¸ª \SpecialChar LyX
+ ææ¡£ãå
¶ä½çç»èï¼ä½ ä¼å¨å
¶å®æåä¸è¯»å°ã
+\end_layout
+
+\begin_layout Subsection
+ç®åæä½
+\end_layout
+
+\begin_layout Standard
+\SpecialChar LyX
+ è½å¤åå°å
¶å®è½¯ä»¶è½åçç»å¤§é¨åäºæ
ï¼å¦ï¼èªå¨æ¢è¡ã段è½ç¼©è¿â¦â¦ä»¥ä¸æ¯å 个ç®åæä½ç使ç¨æ¹æ³ã
+\end_layout
+
+\begin_layout Description
+æ¤æ¶ \SpecialChar LyX
+ æå¤çº§æ¤æ¶åè½ï¼ä½ å¯ä»¥ä½¿ç¨
+\family sans
+Edit\SpecialChar menuseparator
+Undo
+\family default
+ ï¼æå·¥å
·æ¦æé®
+\begin_inset Info
+type "icon"
+arg "undo"
+\end_inset
+
+ï¼æ¥æ¤æ¶æ¬æ¬¡ç¼è¾ä¼è¯å¼å§ä»¥æ¥çæææä½ãå¦ææ¤æ¶è¿å¤´äºï¼å¯ä»¥éæ©
+\family sans
+Edit\SpecialChar menuseparator
+Redo
+\family default
+ ï¼æå·¥å
·æ æé®
+\begin_inset Info
+type "icon"
+arg "redo"
+\end_inset
+
+ï¼æ¢å¤ã
+\end_layout
+
+\begin_deeper
+\begin_layout Standard
+ç®åæ¤æ¶æä½æ¯æ100æ¥ï¼èä¸æ¤æ¶ä¹ä¸æ¯è½å¤æ¯ææææ´æ¹çï¼æ¯å¦å¯¹ææ¡£å¸å±çæ´æ¹å°±ä¸è½è¢«æ¤æ¶ï¼è¿çç¡®æ¯ä¸ä¸ª bugã
+\end_layout
+
+\end_deeper
+\begin_layout Description
+åªå/ç²è´´/å¤å¶ 使ç¨
+\family sans
+Edit\SpecialChar menuseparator
+Cut
+\family default
+ ï¼å·¥å
·æ æé®
+\begin_inset Info
+type "icon"
+arg "cut"
+\end_inset
+
+ï¼ï¼
+\family sans
+Edit\SpecialChar menuseparator
+Copy
+\family default
+ ï¼å·¥å
·æ æé®
+\begin_inset Info
+type "icon"
+arg "copy"
+\end_inset
+
+ï¼ï¼å
+\family sans
+Edit\SpecialChar menuseparator
+Paste
+\family default
+ ï¼å·¥å
·æ æé®
+\begin_inset Info
+type "icon"
+arg "paste"
+\end_inset
+
+ï¼ æ¥å®ç°åªåãå¤å¶åç²è´´æä½ãæè
ä¹å¯éè¿é¼ æ ä¸é®æ¥ç²è´´éä¸çææ¬ï¼å
æ¬å
¶å®ç¨åºä¸éå®çææ¬ï¼ã
+\end_layout
+
+\begin_layout Description
+æ¥æ¾/æ¿æ¢ ç¹å»
+\family sans
+Edit\SpecialChar menuseparator
+Find
+\begin_inset space ~
+\end_inset
+
+&
+\begin_inset space ~
+\end_inset
+
+Replace
+\family default
+ ï¼å·¥å
·æ æé®
+\begin_inset Info
+type "icon"
+arg "dialog-show findreplace"
+\end_inset
+
+ï¼ ï¼å¨åºç°ç对è¯æ¡ä¸ç¹å»æé®â
+\family sans
+Find
+\begin_inset space ~
+\end_inset
+
+Nextâ
+\family default
+ è¿è¡æç´¢ï¼ç¹å»æé®â
+\family sans
+Replaceâæ¿æ¢æå°çåè¯ã
+\family default
+
+\begin_inset Foot
+status open
+
+\begin_layout Plain Layout
+å®æåå
³éçªå£ï¼å¦æè§å¾æ¹ä¾¿çè¯ä¹å¯ä¸ç´å¼çå®ã\SpecialChar LyX
+ ä¸ç大é¨åçªå£é½å¯ä»¥è¿æ ·ã使ç¨æ¶æ³¨æç¦ç¹çåæ¢å³å¯ã
+\end_layout
+
+\end_inset
+
+ ä½ è¿å¯ä»¥æå®åºå大å°åæå
¨åå¹é
ï¼å½ç¶ä¹å¯ä»¥ååæç´¢ææ¡£ã
+\end_layout
+
+\begin_layout Description
+åç¬¦æ ¼å¼ ç¨
+\family sans
+Edit\SpecialChar menuseparator
+Text
+\begin_inset space ~
+\end_inset
+
+Style
+\family default
+ 对è¯æ¡ä¸ç toggle buttons ï¼å¯ä»¥
+\shape italic
+强è°
+\shape default
+ï¼é»è®¤æä½ï¼ãå ç²æ设置为
+\noun on
+æ æ ¼å¼ï¼
+\noun default
+åä½ä¸è¬è¾å°ï¼ç¨äºäººåï¼ã
+\end_layout
+
+\begin_layout Description
+å·¥å
·æ èåæ¯è¾¹çå·¥å
·æ æä¾äºä¸äºå¸¸ç¨åè½çæé®ï¼ä¾å¦ï¼ç²è´´ãæå°ã
+\end_layout
+
+\begin_layout Standard
+å½ç¶ï¼ç®åè¿æ²¡æè¾å
¥è¶³å¤å¤çå
容以使ææè¿äºåè½å¯ç¨ã
+\end_layout
+
+\begin_layout Subsection
+æè§å³ææ³ï¼\SpecialChar LyX
+ ä¸ç空ç½
+\end_layout
+
+\begin_layout Standard
+对æ°ç¨æ·æ¥è¯´ï¼æé¾ç解çæ¯ \SpecialChar LyX
+ å¤ç空ç½çæ¹å¼ãæ²å¤æ¬¡å车åªè½å¾å°ä¸ä¸ªç©ºè¡ï¼æ²å¤æ¬¡ç©ºæ ¼åªè½å¾å°ä¸ä¸ªç©ºæ ¼ãå¨ç©ºç½è¡ä¸ï¼è¿ä¸ä¸ªç©ºæ ¼é½æ æ³å¾å°ãæä¸ Tab
+ é®ä¹ä¸ä¼ç§»å¨ä¸ä¸ª Tab ä½ï¼å®é
ä¸å°±æ²¡æ Tab ä½ï¼å¨é¡µé¢ä¸æ¹ä¹æ²¡ææ å°ºå¯ä¾è®¾ç½® Tab ä½åè¾¹è·ã
+\end_layout
+
+\begin_layout Standard
+å¾å¤åå¤ç软件建ç«å¨ WYSIWYG ç念ä¹ä¸ï¼ä¹å°±æ¯ï¼çå°çå°±æ¯å¾å°çï¼æè§å³æå¾ï¼ã\SpecialChar LyX
+ ä¸åï¼å®å»ºç«å¨ WYSIWYM ï¼ææ³å³æå¾ï¼çç念ä¹ä¸ãä½ æ³ä»ä¹å°±è¾
+å
¥ä»ä¹ï¼\SpecialChar LyX
+ ä¼å¤çæççé®é¢ï¼è¿æ ·ä¿è¯äºè¾åºæ件çç¾è§ãå车å段ï¼ç©ºæ ¼æè¯ï¼æ²¡çç±å¨ä¸è¡ä¸è¾å
¥å¥½å æ¬¡ç©ºæ ¼ãTab æ ¹æ¬å°±æ²¡æè¯æ³æä¹ï¼æ以 \SpecialChar LyX
+ ä¸æ¯æå®ã使ç¨
+ \SpecialChar LyX
+ï¼ä½ å°è±è´¹æ´å¤çæ¶é´å»èèææ¡£ç
+\series bold
+å
容
+\series default
+ï¼èä¸æ¯å®ç
+\series bold
+æ ¼å¼
+\series default
+ãæ´å¤å
³äº WYSIWYM ç解éåè§
+\emph on
+Introductionã
+\end_layout
+
+\begin_layout Standard
+\SpecialChar LyX
+ çç¡®ä¹æä¸å°ç²¾ç»è°æ´ææ¡£æ ¼å¼çæ¹æ³ãæ¯ç« \SpecialChar LyX
+ å¯è½ä¸ä¼ 100% 精确çæç
§ä½ æ³çå»æçã
+\emph on
+User's Guide
+\emph default
+ å
å«äºè°æ´ææ¡£æ ¼å¼ç详ç»æ¹æ³ï¼å
æ¬æ°´å¹³å¡«å
ï¼HFillsï¼ååç´è·ç¦»ï¼å®ä»¬æ¯ç©ºæ ¼ãå车æ´å 强大çµæ´»ï¼ï¼è®¾ç½®åä½å¤§å° ãæ ·å¼çæ¹æ³ï¼è°æ´æ®µè½å¯¹é½æ¹å¼çæ段ãä½ åª
+éè¦ä¸å¿åä½ çææ¡£ï¼å¨æåç»è°ä¸ä¸ææ¡£æ ¼å¼å°±å¥½äºã使ç¨æ®éçåå¤ç软件ï¼ä½ ä¼å¨åææ¡£çæ´ä¸ªè¿ç¨ä¸é½è¢«æ ¼å¼æçæå°æ°ã
+\begin_inset Foot
+status open
+
+\begin_layout Plain Layout
+è¯æ³¨ï¼è¿ AbiWord è¿æ ·è½»é级çåå¤ç软件é½ææ ·å¼äºï¼å°±ä¸è¦è¯´ MS WordãOOo äºã
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+ç¯å¢
+\end_layout
+
+\begin_layout Standard
+ææ¡£çä¸åé¨åæä¸åçä½ç¨ï¼æ们称è¿äºé¨å为âç¯å¢âï¼
+\emph on
+environments
+\emph default
+ï¼ãæ é¢åè¯è¯»è
æ°çè¯é¢ï¼åè¯é¢ï¼å°ä¼å¼å§ãæäºææ¡£å«æç¹æ®çç¯å¢ï¼æ¯å¦ï¼æåä¼ææè¦åé¢ç®ï¼ä¹¦ä¿¡å°±æ²¡ææè¦åé¢ç®ï¼ä½å®æå°åã
+\end_layout
+
+\begin_layout Standard
+ç¯å¢æ¯ \SpecialChar LyX
+ æè§å³æå¾å²å¦çéè¦é¨åãä¸ä¸ªç¯å¢éè¦å
·ä½çå®ä¹ï¼åä½å¤§å°ãæ ·å¼ã缩è¿ãè¡é´è·ççãè¿ä¸ªé®é¢é常éè¦ï¼å 为ä¸ä¸ªç»å®ç¯å¢çå
·ä½å®ä¹ä¼éçæ档类åçååè
+ååãæ¯å¦ï¼ææåè¦æ±æ é¢æ¯é»ä½ã18ptãå±
ä¸ï¼èå¦ä¸ä¸ªå¯è½è¦æ±æä½ã15ptã左对é½ï¼ä¸åçè¯è¨ä¹æä¸åç缩è¿æ åï¼åèæç®çæ ¼å¼å°±ååæ´å¤§äºã\SpecialChar LyX
+
+ ä¼æä½ ä»è¿äºæ ¼å¼ä¸é´æ¯æåºæ¥ã
+\end_layout
+
+\begin_layout Standard
+ä½ å¯ä»¥ä½¿ç¨å·¥å
·æ ä¸çç¯å¢ä¸æèå
+\begin_inset Graphics
+ filename ../../../lib/doc/clipart/ToolbarEnvBox.png
+ scale 50
+ groupId In line
+
+\end_inset
+
+æ¥éæ©ç¯å¢ï¼å®ä¹è½åè¯ä½ å½åçç¯å¢æ¯ä»ä¹ï¼å
¶ä¸âStandardâæ¯ææ¬çé»è®¤ç¯å¢ãç°å¨æ们å°å¨ä½ çæ°ææ¡£ä¸æ·»å å 个ç¯å¢ï¼æ¥ççå®ä»¬æ¯æä¹å·¥ä½çå§ã
+\end_layout
+
+\begin_layout Subsection
+èï¼
+\family sans
+Section
+\family default
+ï¼ä¸åèï¼Subsectionï¼
+\end_layout
+
+\begin_layout Standard
+å¨ \SpecialChar LyX
+ ææ¡£ç第ä¸è¡è¾å
¥â
+\family typewriter
+Introduction
+\family default
+âï¼å¨ç¯å¢ä¸æèåä¸è®¾ä¸ºâèâï¼
+\family sans
+Section
+\family default
+ï¼
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+设å®ç¯å¢ä¸éè¦éæ©æ´è¡ï¼æ®µï¼ï¼å
æ åçå
¶ä¸å³å¯ãè¥æ³ä¸æ¬¡æ¹åå¤è¡çç¯å¢ï¼åéè¦éå®ä¹ã
+\end_layout
+
+\end_inset
+
+ï¼ ç¡®å®ä½ éæ©äºâèâï¼
+\family sans
+Section
+\family default
+ï¼èä¸æ¯âè
+\family sans
+*
+\family default
+âï¼
+\family sans
+Section*
+\family default
+ï¼ã\SpecialChar LyX
+ å°å¨åè¾¹å ä¸â1â并æåä½è°å¤§ãç°å¨æ²å车ï¼ç¯å¢å°ä»âèâï¼
+\family sans
+Section
+\family default
+ï¼ååâæ åâï¼Standardï¼ãåå¤æ°ç¯å¢ç±»ä¼¼ï¼æ²å车åç¯å¢å°ç»æ¢ãè¾å
¥ææ¬ï¼
+\end_layout
+
+\begin_layout LyX-Code
+This is an introduction to my first \SpecialChar LyX
+ document.
+\end_layout
+
+\begin_layout Standard
+å次å车ï¼éæ©âèâï¼
+\family sans
+Section
+\family default
+ï¼ç¯å¢ï¼\SpecialChar LyX
+ å°åä¸â2â并çå¾
è¾å
¥ãç°å¨è¾å
¥â
+\family typewriter
+More Stuff
+\family default
+âï¼\SpecialChar LyX
+ ä¼æå®è®¾ç½®æèï¼
+\family sans
+Section
+\family default
+ï¼æ é¢çæ ·å¼ã
+\end_layout
+
+\begin_layout Standard
+å°å
æ å®ä½å°è 1 ï¼Section
+\begin_inset space ~
+\end_inset
+
+1ï¼æ«å°¾ï¼æ²å车ï¼å次设置为âèâï¼
+\family sans
+Section
+\family default
+ï¼ï¼\SpecialChar LyX
+ ä¼åä¸â2â并çå¾
è¾å
¥ãè¾å
¥â
+\family typewriter
+About This Document
+\family default
+âãåæçè 2 ï¼Section
+\begin_inset space ~
+\end_inset
+
+2ï¼ï¼âMore Stuffâï¼ç°å¨å·²ç»è¢«æ¹æäºè 3 ï¼Section
+\begin_inset space ~
+\end_inset
+
+3ï¼ãä½ åªéè¦ç¡®å®åªäºæåæ¯èï¼
+\family sans
+Section
+\family default
+ï¼æ é¢ï¼\SpecialChar LyX
+ ä¼å¤çç¼å·åæçæ ¼å¼çï¼è¿å°±æ¯æè§å³ææ³ï¼WYSIWYMï¼çé£æ ¼ã
+\end_layout
+
+\begin_layout Standard
+æ²å车ï¼åå°âæ åâï¼Standardï¼ç¯å¢ï¼è¾å
¥ä¸è¾¹ 5 è¡æåï¼
+\end_layout
+
+\begin_layout LyX-Code
+Sections and subsections are described below.
+\end_layout
+
+\begin_layout LyX-Code
+Section Description
+\end_layout
+
+\begin_layout LyX-Code
+Sections are bigger than subsections.
+\end_layout
+
+\begin_layout LyX-Code
+Subsection description
+\end_layout
+
+\begin_layout LyX-Code
+Subsections are smaller than sections.
+\end_layout
+
+\begin_layout Standard
+ç¹å»ç¬¬äºè¡ï¼å¨ç¯å¢ä¸æèåä¸è®¾ä¸ºâåèâï¼Subsectionï¼ã\SpecialChar LyX
+ å°ä¼å¨åè¾¹å ä¸â2.1âï¼å¹¶æåä½è°æ´çæ¯æ£æ大ï¼æ¯èï¼Sectionï¼æ é¢å°ãæ¥çæ第
+ 4 è¡ä¹è®¾ç½®æ为âåèâï¼Subsectionï¼ï¼\SpecialChar LyX
+ å°å¨å®åè¾¹å ä¸â2.2âãå¦æå¨è 2 ï¼Section 2ï¼åè¾¹å ä¸äºå«çèï¼è 2 å°ä¼èªå¨å为è
+ 3ï¼Section 3ï¼ï¼åè¾¹çåèä¹ä¼è·çåæâ3.1âåâ3.2âã
+\end_layout
+
+\begin_layout Standard
+ææ¡£çå±çº§ç»æè¿æ次åè ( Subsubsection )ã段 ( Paragraph ) åå段 ( Subparagraph )ï¼è¿äºå°±ç±è¯»è
èªè¡æç©å§ã
+段åå段çæ é¢é»è®¤æ¯ä¸ç¼å·çï¼èä¸å段è¿æ缩è¿ï¼åé
+\emph on
+User's Guide
+\emph default
+ å¾å°æ´å¤è§£é以åå¦ä½æ¹åå®ä»¬ãç« ï¼Chapterï¼æ¯ææ¡£å±çº§ç»æä¸æé«çä¸çº§ï¼åªè½å¨æäºç¹å®ç \SpecialChar LyX
+ æ档类åä¸æè½ä½¿ç¨å®ï¼è§
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:æ档类"
+
+\end_inset
+
+ï¼ã
+\end_layout
+
+\begin_layout Standard
+ä½ å¯è½è¿å¸æä¸äºèååèæ¯ä¸ç¼å·çï¼\SpecialChar LyX
+ æä¸é¨çç¯å¢å®ç°è¿ä¸ªåè½ãå½æèçæ é¢ç¯å¢æ¹ä¸ºâè*
+\begin_inset Quotes erd
+\end_inset
+
+ï¼Section*ï¼åï¼\SpecialChar LyX
+ è¿å°å¯¹å®ä½¿ç¨ç¸åçåä½ï¼åªæ¯ä¸å对å®è¿è¡ç¼å·ãç¸åºçä¹æ带âæâçåèå次åèç¯å¢ãè¯çæä¸äºèæåèçæ é¢ç¯å¢æ¹ä¸ºå¸¦æçï¼åæ¶ççå
¶
+å®çç¼å·æä¹éä¹æ¹åã
+\end_layout
+
+\begin_layout Standard
+ç»ä¹ ï¼ä¿®æ¹ example_raw.lyx ä¸çèååèæ é¢ã
+\end_layout
+
+\begin_layout Subsection
+å表ï¼Listsï¼ååå表ï¼sublistsï¼
+\end_layout
+
+\begin_layout Standard
+\SpecialChar LyX
+ æ好å ç§å表ç¯å¢ï¼å¨åæ纲æè
éæ°æåºä¸ä¸ªå·²æçå表æ¶ï¼è¿äºå表ç¯å¢ä¼å¸®ä¸å¤§å¿ãä¸åçæ档类åéè¦ä¸åçå表ç¯å¢ï¼
+\end_layout
+
+\begin_layout Itemize
+å¹»ç¯ç使ç¨å¸¦åç¹çæ¡ç®ç¯å¢ï¼
+\family sans
+Itemize
+\family default
+ï¼ã
+\end_layout
+
+\begin_layout Itemize
+大纲使ç¨å¸¦ç¼å·çæ举ç¯å¢ï¼
+\family sans
+Enumerate
+\family default
+ï¼ã
+\end_layout
+
+\begin_layout Itemize
+åè¯è§£é常ç¨æè¿°ç¯å¢ï¼
+\family sans
+Description
+\family default
+ï¼ã
+\end_layout
+
+\begin_layout Itemize
+å表ç¯å¢ï¼
+\family sans
+List
+\family default
+ï¼åæè¿°ç¯å¢ï¼
+\family sans
+Description
+\family default
+ï¼å·®ä¸å¤ï¼åªæ¯å¯¹é½æ¹å¼ç¨æä¸åã
+\end_layout
+
+\begin_layout Standard
+ç°å¨æ们åä¸ä¸ª \SpecialChar LyX
+ æå
³ä¼ç¹çå表ãå¨ææ¡£ä¸è¾å
¥ï¼
+\end_layout
+
+\begin_layout Standard
+
+\family typewriter
+\SpecialChar LyX
+ is better than other word processors because:
+\end_layout
+
+\begin_layout Standard
+ç¶åæ²å车ï¼å¹¶å¨ç¯å¢ä¸æå表ä¸éæ©æ¡ç®ç¯å¢ï¼
+\family sans
+Itemize
+\family default
+ï¼ã\SpecialChar LyX
+ ä¼å¨è¡é¦å ä¸åç¹ã继ç»è¾å
¥ï¼
+\end_layout
+
+\begin_layout LyX-Code
+Typesetting is done for you.
+\end_layout
+
+\begin_layout LyX-Code
+Math is WYSIWYG
+\end_layout
+
+\begin_layout LyX-Code
+Lists are very easy to create!
+\end_layout
+
+\begin_layout Standard
+åæ é¢ä¸åï¼å表ç¯å¢å¨æ²å车æ¶ä¸ä¼ç»æ¢ï¼\SpecialChar LyX
+ ä¼è®¤ä¸ºä½ å°ç»§ç»åä¸ä¸ä¸ªæ¡ç®ãæ以ä¸è¾¹çè¾å
¥å°ä¼äº§çä¸ä¸ªå表项ãéæ°éæ©æ åç¯å¢ï¼
+\family sans
+Standard
+\family default
+ï¼æ使ç¨å¿«æ·é®
+\family sans
+Alt+P
+\begin_inset space ~
+\end_inset
+
+S
+\family default
+ æè½éåºå表ç¯å¢ãè¦å¨ä¸ä¸ªå表项ä¸ä½¿ç¨å¤ä¸ªæ®µè½ï¼å¯ä½¿ç¨ä¿æ¤æ§ä¸æï¼
+\family sans
+Protected
+\begin_inset space ~
+\end_inset
+
+Break
+\family default
+ï¼ï¼æä¸ Ctrl + å车å³å¯ã
+\end_layout
+
+\begin_layout Standard
+ä½ å·²ç»å¾å°äºä¸ä¸ªæ¼äº®çæ¡ç®å表ï¼ä½ æ¯ä¸æ¯å·²ç»è¿«ä¸åå¾
çæ³è¿è¡ \SpecialChar LaTeX
+ ççå®ä»¬æå°åºæ¥çæ ·åäºï¼å¯å¦ææ¨æ³ç»å®ä»¬å ä¸ç¼å·å¢ï¼ä½ åªéè¦éå®æ´ä¸ªå表
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+å¦æä¸è¿åè¾¹ä¸æ®µä¹ä¸èµ·éä¸çè¯ï¼ä½ æ¯æ æ³éä¸ç¬¬ä¸ä¸ªæ¡ç®åè¾¹çåç¹çï¼ç±»ä¼¼çï¼ä½ ä¹æ æ³éå®ç« èç¼å·ãè¿æ¯ææå¦æ¤çï¼å 为éçæ档类ååæåä½ç½®çä¸åï¼è¿äºåç¹åç¼
+å·ä¹ä¼åçååã
+\end_layout
+
+\end_inset
+
+ï¼ç¶åéæ©æ举ç¯å¢ï¼
+\family sans
+Enumerate
+\family default
+ï¼å³å¯ãå¦æä½ å¢å æ¡ç®çè¯ï¼\SpecialChar LyX
+ ä¼èªå¨ä¿®æ¹æ举ç¼å·çã
+\end_layout
+
+\begin_layout Standard
+ç°å¨å表项è¿æ¯å¤äºè¢«éå®ç¶æçï¼ä½ å¯ä»¥åè¯è¯æè¿°ï¼
+\family sans
+Description
+\family default
+ï¼åå表ï¼
+\family sans
+List
+\family default
+ï¼ä¸¤ç§ç¯å¢ãè¿ä¸¤ç§ç¯å¢é½æ¯åè¯å å®ä¹çå½¢å¼ï¼æè¿°ç¯å¢åè¾¹çåè¯ç¨é»ä½ï¼å表ç¯å¢çåè¯ååè¾¹çå®ä¹ç±âTabâ
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+è¿éçTabæ¯æçTabï¼å®ä¼èªéåºå°æé¿çåè¯é¿åº¦ï¼ï¼èä¸æ¯å®é¿çæåæºTabã
+\end_layout
+
+\end_inset
+
+åéãåè¾¹çåè¯å¦æå¤äºä¸ä¸ªè¯çè¯ï¼éè¦ä½¿ç¨ä¿æ¤æ§ç©ºæ ¼ï¼
+\family sans
+Protected
+\begin_inset space ~
+\end_inset
+
+Blank
+\family default
+sï¼å°å®ä»¬åå¼ã
+\end_layout
+
+\begin_layout Standard
+ç»ä¹ ï¼æç
+\family typewriter
+example_raw.lyx
+\family default
+ ä¸çå表ã
+\end_layout
+
+\begin_layout Standard
+è¿äºå表ç¯å¢è¿å¯ä»¥åµå¥ä½¿ç¨ï¼æ纲就æ¯æ常è§çä¾åã带ç¼å·æåç¹çå表å¨åå表ä¸ä¼æä¸åç表ç°å½¢å¼ãæ´å¤è¯¦æ
åè§
+\emph on
+User's Guide
+\emph default
+ ã
+\end_layout
+
+\begin_layout Subsection
+å
¶å®ç¯å¢ï¼è¯ãå¼ç¨åæ´å¤
+\end_layout
+
+\begin_layout Standard
+æ两ç§å¼ç¨ç¯å¢ï¼çä¸ç¹çå¼ç¨ä½¿ç¨å¼ç¨ç¯å¢ï¼
+\family sans
+Quote
+\family default
+ï¼ï¼é¿ä¸ç¹çå¼ç¨ä½¿ç¨å¼æç¯å¢ï¼
+\family sans
+Quotation
+\family default
+ï¼ã计ç®æºä»£ç 使ç¨ä»£ç ç¯å¢ï¼
+\family sans
+\SpecialChar LyX
+-Code
+\family default
+ï¼ï¼è¯¥ç¯å¢ä½¿ç¨
+\family typewriter
+typewriter
+\family default
+ åä½ï¼èä¸è¿éæ¯ \SpecialChar LyX
+ ä¸å¯ä¸å
许使ç¨å¤ä¸ªç©ºæ ¼çå°æ¹ãä½ è¿å¯ä»¥ä½¿ç¨è¯ç¯å¢ï¼
+\family sans
+Verse
+\family default
+ï¼æ¥åè¯ï¼å车åèï¼Ctrl + å车æè¡ã对ææç¯å¢çå®æ´æè¿°åè§
+\emph on
+ User's Guide
+\emph default
+ã
+\end_layout
+
+\begin_layout Standard
+ç»ä¹ ï¼ä¿®æ¹
+\family typewriter
+example_raw.lyx
+\family default
+ ä¸çå¼ç¨ã代ç ãè¯ç¯å¢ã
+\end_layout
+
+\end_body
+\end_document
diff --git a/autotests/export/xhtml/zh_CN_Tutorial.xhtml b/autotests/export/xhtml/zh_CN_Tutorial.xhtml
new file mode 100644
index 0000000..5755eee
--- /dev/null
+++ b/autotests/export/xhtml/zh_CN_Tutorial.xhtml
@@ -0,0 +1,256 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta name="GENERATOR" content="LyX 2.4.0dev" />
+<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
+<title>The LyX Tutorial</title>
+<style type='text/css'>
+/* Layout-provided Styles */
+dfn.lyxnoun {
+ font-variant: small-caps;
+}
+h1.title {
+font-size: x-large;
+margin-bottom: 1ex;
+text-align: center;
+
+}
+h1.chapter {
+font-weight: bold;
+font-size: xx-large;
+margin-top: 2ex;
+margin-bottom: 0.8ex;
+text-align: left;
+
+}
+h2.section {
+font-weight: bold;
+font-size: x-large;
+margin-top: 1.3ex;
+margin-bottom: 0.7ex;
+text-align: left;
+
+}
+div.standard {
+ margin-bottom: 2ex;
+}
+h3.subsection {
+font-weight: bold;
+font-size: large;
+margin-top: 0.9ex;
+margin-bottom: 0.5ex;
+text-align: left;
+
+}
+ul.itemize {
+margin-top: 0.7ex;
+margin-bottom: 0.7ex;
+margin-left: 3ex;
+text-align: left;
+
+}
+div.plain_layout {
+text-align: left;
+
+}
+dl.description dt { font-weight: bold; }
+div.lyx_code {
+font-family: monospace;
+margin-top: 0.5ex;
+margin-bottom: 0.5ex;
+margin-left: 3ex;
+margin-right: 3ex;
+text-align: left;
+
+}
+span.info { font-family: sans-serif; }
+span.foot_label {
+ vertical-align: super;
+ font-size: smaller;
+ font-weight: bold;
+ text-decoration: underline;
+}
+div.foot {
+ display: inline;
+ font-size: small;
+ font-weight: medium;
+ font-family: serif;
+ font-variant: normal;
+ font-style: normal;
+}
+div.foot_inner { display: none; }
+div.foot:hover div.foot_inner {
+ display: block;
+ border: 1px double black;
+ margin: 0em 1em;
+ padding: 1em;
+}
+
+
+</style>
+</head>
+<body dir="auto">
+<h1 class="title" id='magicparlabel-1'>The LyX Tutorial</h1>
+<section>
+<h1 class="chapter" id='magicparlabel-2'><span class="chapter_label">第 1 ç« </span> ä»ç»</h1>
+<section>
+<h2 class="section" id='magicparlabel-3'><span class="section_label">1.1</span> 欢è¿æ¥å° LyX!</h2>
+<div class="standard" id='magicparlabel-4'>è¿ä¸ªææ¡£æ¯ä¸ºé£äºä¸ç¥é LaTeX æç¥ä¹çå°ç人åå¤çãä¸å¿
æ
å¿ï¼ä½¿ç¨ LyX ä¸å¿
å¦ä¹ LaTeXãLyX çç®æ å°±æ¯æä¾ä¸ä¸ªæè§å³æå¾ç LaTeX åºç¨ã为äºé«æçä½¿ç¨ LyXï¼è¿æ¯éè¦å¦ä¹ ä¸äºä¸è¥¿çã</div>
+
+<div class="standard" id='magicparlabel-5'>ä½ ä¼åç°å¨å
¶å®åå¤ç软件ä¸å¸¸ç¨çæçæ¹å¼å¨ LyX ä¸é½ä¸è½ä½¿ç¨äºï¼æ¯å¦ï¼å¨â.âåè¾¹è¾å
¥ä¸¤ä¸ªç©ºæ ¼ï¼å¨æ®µé´è¾å
¥ä¸ä¸ªç©ºè¡ãä½ ä»¥å使ç¨ç软件å
许æå¨è°æ´é´è·ãåä½çä¸è¥¿ï¼æä»¥ä½ ä¸å¾ä¸å³å½å
¥åæçãLyXä¼å好æççäºæ
çï¼èä½ åªéè¦è½¬æ³¨äºéè¦çä¸è¥¿ï¼ä½ æ£å¨åçå
容ã</div>
+
+<div class="standard" id='magicparlabel-6'>继ç»è¯»ä¸å»ï¼äºè§£æ´å¤ LyXã读å®è¿ç¯æç¨ï¼ä½ ä¼è§å¾ç©ææå¼çã</div>
+</section>
+<section>
+<h2 class="section" id='magicparlabel-7'><span class="section_label">1.2</span> æ¬æç¨ç®ä»</h2>
+<div class="standard" id='magicparlabel-8'>å¨å¼å§ä¹å建议æ¨å
读ä¸ä¸ Introductionï¼é£é解éäºæ¬æ使ç¨ç注éæ¹å¼ãå½ä½ äºè§£äºåç§åä½çæä¹ä¹åï¼æ们å
æ¥è¯´è¯´æ¬ç¯æç¨æ¯å¹²ä»ä¹çã</div>
+<section>
+<h3 class="subsection" id='magicparlabel-9'><span class="subsection_label">1.2.1</span> å¦ä¹ æ¹å¼</h3>
+<div class="standard" id='magicparlabel-10'>æ¬æç¨å
å«äºä¾ååç»ä¹ ãå¦ä¹ ä¸æ¨åºè¯¥è¯çè¾å
¥æä»¬è®©ä½ è¾å
¥çä¸è¥¿ï¼å®æææç»ä¹ ï¼ççæ¨æ¯ä¸æ¯å¾å°äºæ£ç¡®çä¸è¥¿ã为äºæ¹ä¾¿ï¼å°æ¬ææ¡£æå°åºæ¥ä¼æ¯ä¸ä¸ªå¥½éæ©ã</div>
+
+<div class="standard" id='magicparlabel-11'>å¦æ对 LaTeX æ¯è¾çæçè¯ï¼ä½ å°è½å¤è¾å¿«çé
读æ¬æç¨ï¼å 为 LyX çææ³å°±æ¯ LaTeX ææ³çä¸ç§å
è£
ãLyX èªèº«ä¹æå¾å¤ç¹æ§æ¯ä½ æ³äºè§£çãå°±ç®ä¸æ³ç»§ç»è¯»ä¸å»ï¼ä½ ä¹åºè¯¥çç <a href="#sec_LaTeX_____">sec:LaTeX-ç¨æ·å¿
读</a>ï¼å®æ¯ä¸é¨åç»çç»ç LaTeX ç¨æ·çã</div>
+</section>
+<section>
+<h3 class="subsection" id='magicparlabel-12'><span class="subsection_label">1.2.2</span> æ¬æç¨æ²¡æç</h3>
+<ul class="itemize" id='magicparlabel-13'>
+<li class="itemize_item">LyX å
¨é¨ç¹æ§ç详ç»è§£éã
+<div class="standard" id='magicparlabel-14'>éè¦çè¯ï¼è¯·é
读 the <em>User's Guideã</em></div>
+</li><li class="itemize_item">LaTeX ç详ç»è§£éã
+<div class="standard" id='magicparlabel-16'>没å¿
è¦è¿æ ·åãè¦æ³ç¥éç¨ LaTeX å¨ LyX ä¸è½åäºä»ä¹ï¼å¯ä»¥çç the <em>Embedded Objects</em> manualã</div>
+</li></ul>
+<div class="standard" id='magicparlabel-17'>ç°å¨æ¯å¼å§ä½ ç第ä¸ä¸ªææ¡£çæ¶åäºã</div>
+</section>
+</section>
+</section>
+<section>
+<h1 class="chapter" id='magicparlabel-18'><span class="chapter_label">第 2 ç« </span> åè¯ LyX</h1>
+<section>
+<h2 class="section" id='magicparlabel-19'><span class="section_label">2.1</span> 第ä¸ä¸ª LyX ææ¡£</h2>
+<div class="standard" id='magicparlabel-20'>å¼å§ä¹å说å 件äºæ
ï¼è¿ä¼ä½¿æ¬æç¨åæ¥æ´å¤§çä½ç¨ã</div>
+
+<div class="standard" id='magicparlabel-21'>ç±äºæ¬æç¨ä¸ä¼æä¾ææä¿¡æ¯ï¼æä»¥ä½ éè¦æ¾å°å
¶å®ç帮å©æ件ãè¿å¾ç®åï¼å¯å¨ LyXï¼å¨å¸®å©èåä¸å°±æ the <em>User's Guideã<i>å¨åèªå·±çæ件æ¶å°±å¯ä»¥è¯»å°å®ä»¬äºï¼å®ä»¬æ¬èº«å°±æ¯å¾å¥½çä¾åï¼ã注æï¼å½æå¼å¤ä¸ªæ件æ¶ï¼å¯ä»¥éè¿ View èåæææ¡£æ ç¾è¿è¡åæ¢ã</i></em></div>
+
+<div class="standard" id='magicparlabel-22'>æ们åè®¾ä½ å·²ç»æäºå
¨åè½ç LyX å LaTeXï¼å
æ¬ DVIãPDF æ件æµè§å¨ãä¸è¬æ¥è¯´ï¼å¨åç§æä½ç³»ç»ä¸ï¼å¨å®è£
LyX çæ¶å就已ç»å好äºã</div>
+
+<div class="standard" id='magicparlabel-23'>æåï¼æ们æä¾äºä¸ä¸ªæ件 <span style='font-family:monospace;'>example_raw.lyxï¼</span>ç»ä½ ç»ä¹ 使ç¨ãåæ³è¿ä¸ªæ件æ¯ç±ä¸ä¸ªå®å
¨ä¸ç¥é LyX ç¹æ§ç人åçï¼å¨å¦ä¹ çè¿ç¨ä¸ï¼æ们ä¼å»ºè®®ä½ ä¿®æ¹è¿ä¸ªæ件çãexample_raw.lyx ä¸ä¹å
å«äºä¿®æ¹çæ示信æ¯ã为äºå¯¹æ¯ï¼æ们è¿æä¾äºä¸ä»½ LyX é«æåçåæ ·å
容çææ¡£ï¼example_lyxified.lyxã</div>
+
+<div class="standard" id='magicparlabel-24'>示ä¾ææ¡£åå¨äº LyX å®è£
è·¯å¾ç examples ç®å½ä¸ãæå¼ç¤ºä¾ææ¡£ï¼å¦åå°èªå·±çç®å½ä¸ï¼ä¿®æ¹åè¾åºå° DVI æ件çææã</div>
+
+<div class="standard" id='magicparlabel-25'>å¦å¤ï¼examples ç®å½ä¸è¿æå¾å¤å
¶å®ç示ä¾æ件ï¼å®ä»¬å°åæ¨å±ç¤º LyX ç强大åè½ãå½ä½ å¿è®°äºæ个åè½æä¹ä½¿ç¨çæ¶åï¼ä¹å¯ä»¥åæ¥ççè¿äºææ¡£ã</div>
+<section>
+<h3 class="subsection" id='magicparlabel-26'><span class="subsection_label">2.1.1</span> å½å
¥ãæ¥çãè¾åº</h3>
+<ul class="itemize" id='magicparlabel-27'>
+<li class="itemize_item">使ç¨èå <span style='font-family:sans-serif;'>File⇒New æå¼æ°æ件ã</span></li>
+<li class="itemize_item">è¾å
¥ä¸ä¸ªå¥å: <span style='font-family:monospace;'>This is my first LyX document!</span></li>
+<li class="itemize_item">使ç¨èå <span style='font-family:sans-serif;'>File⇒Save As ä¿åæ件ã</span></li>
+<li class="itemize_item">è¿è¡ LaTeX çæ DVI æ件ï¼ä½¿ç¨èå <span style='font-family:sans-serif;'>Document⇒View</span> æ å·¥å
·æ æé® <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/buffer-view.svgz' alt='image: ' /></span>ã LyX å°æå¼ DVI-viewer ç¨åºæ¾ç¤ºææ¡£æå°æ¶çæ ·åã <div class="foot"><span class="foot_label">1</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-35'>ä¿æ DVI-viewerå¨åå°è¿è¡ä¼èçæ¶é´ã以åå¯ä»¥ç¹å» <span style='font-family:sans-serif;'>Document⇒Update⇒DVI</span> æå·¥å
·æ æé® <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/buffer-update.svgz' alt='image: ' /></span>ï¼ç LyX è¿ç®å®æååæ¢å° DVI-viewerå³å¯ã</div>
+</div></div></li>
+<li class="itemize_item">使ç¨èå <span style='font-family:sans-serif;'>File⇒Export</span> å°ææ¡£è¾åºæå¸æçæ ¼å¼ã</li>
+</ul>
+<div class="standard" id='magicparlabel-38'>æåï¼ä½ å·²ç»ååºäºç¬¬ä¸ä¸ª LyX ææ¡£ãå
¶ä½çç»èï¼ä½ ä¼å¨å
¶å®æåä¸è¯»å°ã</div>
+</section>
+<section>
+<h3 class="subsection" id='magicparlabel-39'><span class="subsection_label">2.1.2</span> ç®åæä½</h3>
+<div class="standard" id='magicparlabel-40'>LyX è½å¤åå°å
¶å®è½¯ä»¶è½åçç»å¤§é¨åäºæ
ï¼å¦ï¼èªå¨æ¢è¡ã段è½ç¼©è¿â¦â¦ä»¥ä¸æ¯å 个ç®åæä½ç使ç¨æ¹æ³ã</div>
+<dl class='description' id='magicparlabel-41'>
+<dt class="description_label">æ¤æ¶</dt>
+<dd class="description_item"> LyX æå¤çº§æ¤æ¶åè½ï¼ä½ å¯ä»¥ä½¿ç¨ <span style='font-family:sans-serif;'>Edit⇒Undo</span> ï¼æå·¥å
·æ¦æé® <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/undo.svgz' alt='image: ' /></span>ï¼æ¥æ¤æ¶æ¬æ¬¡ç¼è¾ä¼è¯å¼å§ä»¥æ¥çæææä½ãå¦ææ¤æ¶è¿å¤´äºï¼å¯ä»¥éæ© <span style='font-family:sans-serif;'>Edit⇒Redo</span> ï¼æå·¥å
·æ æé® <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/redo.svgz' alt='image: ' /></span>ï¼æ¢å¤ã
+<div class="standard" id='magicparlabel-44'>ç®åæ¤æ¶æä½æ¯æ100æ¥ï¼èä¸æ¤æ¶ä¹ä¸æ¯è½å¤æ¯ææææ´æ¹çï¼æ¯å¦å¯¹ææ¡£å¸å±çæ´æ¹å°±ä¸è½è¢«æ¤æ¶ï¼è¿çç¡®æ¯ä¸ä¸ª bugã</div>
+</dd><dt class="description_label">åªå/ç²è´´/å¤å¶</dt>
+<dd class="description_item"> ä½¿ç¨ <span style='font-family:sans-serif;'>Edit⇒Cut</span> ï¼å·¥å
·æ æé® <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/cut.svgz' alt='image: ' /></span>ï¼ï¼ <span style='font-family:sans-serif;'>Edit⇒Copy</span> ï¼å·¥å
·æ æé® <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/copy.svgz' alt='image: ' /></span>ï¼ï¼å <span style='font-family:sans-serif;'>Edit⇒Paste</span> ï¼å·¥å
·æ æé® <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/paste.svgz' alt='image: ' /></span>ï¼ æ¥å®ç°åªåãå¤å¶åç²è´´æä½ãæè
ä¹å¯éè¿é¼ æ ä¸é®æ¥ç²è´´éä¸çææ¬ï¼å
æ¬å
¶å®ç¨åºä¸éå®çææ¬ï¼ã</dd>
+<dt class="description_label">æ¥æ¾/æ¿æ¢</dt>
+<dd class="description_item"> ç¹å» <span style='font-family:sans-serif;'>Edit⇒Find & Replace</span> ï¼å·¥å
·æ æé® <span class="info"><img src='D:/LyX/lyx-unstable/lib/images/dialog-show_findreplace.svgz' alt='image: ' /></span>ï¼ ï¼å¨åºç°ç对è¯æ¡ä¸ç¹å»æé®â<span style='font-family:sans-serif;'>Find Nextâ</span> è¿è¡æç´¢ï¼ç¹å»æé®â <span style='font-family:sans-serif;'>Replaceâæ¿æ¢æå°çåè¯ã</span><div class="foot"><span class="foot_label">2</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-54'>å®æåå
³éçªå£ï¼å¦æè§å¾æ¹ä¾¿çè¯ä¹å¯ä¸ç´å¼çå®ãLyX ä¸ç大é¨åçªå£é½å¯ä»¥è¿æ ·ã使ç¨æ¶æ³¨æç¦ç¹çåæ¢å³å¯ã</div>
+</div></div> ä½ è¿å¯ä»¥æå®åºå大å°åæå
¨åå¹é
ï¼å½ç¶ä¹å¯ä»¥ååæç´¢ææ¡£ã</dd>
+<dt class="description_label">åç¬¦æ ¼å¼</dt>
+<dd class="description_item"> ç¨ <span style='font-family:sans-serif;'>Edit⇒Text Style</span> 对è¯æ¡ä¸ç toggle buttons ï¼å¯ä»¥<i>强è°</i>ï¼é»è®¤æä½ï¼ãå ç²æ设置为<dfn class='lyxnoun'>æ æ ¼å¼ï¼</dfn>åä½ä¸è¬è¾å°ï¼ç¨äºäººåï¼ã</dd>
+<dt class="description_label">å·¥å
·æ </dt>
+<dd class="description_item"> èåæ¯è¾¹çå·¥å
·æ æä¾äºä¸äºå¸¸ç¨åè½çæé®ï¼ä¾å¦ï¼ç²è´´ãæå°ã</dd>
+</dl>
+<div class="standard" id='magicparlabel-57'>å½ç¶ï¼ç®åè¿æ²¡æè¾å
¥è¶³å¤å¤çå
容以使ææè¿äºåè½å¯ç¨ã</div>
+</section>
+<section>
+<h3 class="subsection" id='magicparlabel-58'><span class="subsection_label">2.1.3</span> æè§å³ææ³ï¼LyX ä¸ç空ç½</h3>
+<div class="standard" id='magicparlabel-59'>对æ°ç¨æ·æ¥è¯´ï¼æé¾ç解çæ¯ LyX å¤ç空ç½çæ¹å¼ãæ²å¤æ¬¡å车åªè½å¾å°ä¸ä¸ªç©ºè¡ï¼æ²å¤æ¬¡ç©ºæ ¼åªè½å¾å°ä¸ä¸ªç©ºæ ¼ãå¨ç©ºç½è¡ä¸ï¼è¿ä¸ä¸ªç©ºæ ¼é½æ æ³å¾å°ãæä¸ Tab é®ä¹ä¸ä¼ç§»å¨ä¸ä¸ª Tab ä½ï¼å®é
ä¸å°±æ²¡æ Tab ä½ï¼å¨é¡µé¢ä¸æ¹ä¹æ²¡ææ å°ºå¯ä¾è®¾ç½® Tab ä½åè¾¹è·ã</div>
+
+<div class="standard" id='magicparlabel-60'>å¾å¤åå¤ç软件建ç«å¨ WYSIWYG ç念ä¹ä¸ï¼ä¹å°±æ¯ï¼çå°çå°±æ¯å¾å°çï¼æè§å³æå¾ï¼ãLyX ä¸åï¼å®å»ºç«å¨ WYSIWYM ï¼ææ³å³æå¾ï¼çç念ä¹ä¸ãä½ æ³ä»ä¹å°±è¾å
¥ä»ä¹ï¼LyX ä¼å¤çæççé®é¢ï¼è¿æ ·ä¿è¯äºè¾åºæ件çç¾è§ãå车å段ï¼ç©ºæ ¼æè¯ï¼æ²¡çç±å¨ä¸è¡ä¸è¾å
¥å¥½å æ¬¡ç©ºæ ¼ãTab æ ¹æ¬å°±æ²¡æè¯æ³æä¹ï¼æ以 LyX ä¸æ¯æå®ãä½¿ç¨ LyXï¼ä½ å°è±è´¹æ´å¤çæ¶é´å»èèææ¡£ç<b>å
容</b>ï¼èä¸æ¯å®ç<b>æ ¼å¼</b>ãæ´å¤å
³äº WYSIWYM ç解éåè§ <em>Introductionã</em></div>
+
+<div class="standard" id='magicparlabel-61'>LyX çç¡®ä¹æä¸å°ç²¾ç»è°æ´ææ¡£æ ¼å¼çæ¹æ³ãæ¯ç« LyX å¯è½ä¸ä¼ 100% 精确çæç
§ä½ æ³çå»æçã<em>User's Guide</em> å
å«äºè°æ´ææ¡£æ ¼å¼ç详ç»æ¹æ³ï¼å
æ¬æ°´å¹³å¡«å
ï¼HFillsï¼ååç´è·ç¦»ï¼å®ä»¬æ¯ç©ºæ ¼ãå车æ´å 强大çµæ´»ï¼ï¼è®¾ç½®åä½å¤§å° ãæ ·å¼çæ¹æ³ï¼è°æ´æ®µè½å¯¹é½æ¹å¼çæ段ãä½ åªéè¦ä¸å¿åä½ çææ¡£ï¼å¨æåç»è°ä¸ä¸ææ¡£æ ¼å¼å°±å¥½äºã使ç¨æ®éçåå¤ç软件ï¼ä½ ä¼å¨åææ¡£çæ´ä¸ªè¿ç¨ä¸é½è¢«æ ¼å¼æçæå°æ°ã<div class="foot"><span class="foot_label">3</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-65'>è¯æ³¨ï¼è¿ AbiWord è¿æ ·è½»é级çåå¤ç软件é½ææ ·å¼äºï¼å°±ä¸è¦è¯´ MS WordãOOo äºã</div>
+</div></div></div>
+</section>
+</section>
+<section>
+<h2 class="section" id='magicparlabel-66'><span class="section_label">2.2</span> ç¯å¢</h2>
+<div class="standard" id='magicparlabel-67'>ææ¡£çä¸åé¨åæä¸åçä½ç¨ï¼æ们称è¿äºé¨å为âç¯å¢âï¼<em>environments</em>ï¼ãæ é¢åè¯è¯»è
æ°çè¯é¢ï¼åè¯é¢ï¼å°ä¼å¼å§ãæäºææ¡£å«æç¹æ®çç¯å¢ï¼æ¯å¦ï¼æåä¼ææè¦åé¢ç®ï¼ä¹¦ä¿¡å°±æ²¡ææè¦åé¢ç®ï¼ä½å®æå°åã</div>
+
+<div class="standard" id='magicparlabel-68'>ç¯å¢æ¯ LyX æè§å³æå¾å²å¦çéè¦é¨åãä¸ä¸ªç¯å¢éè¦å
·ä½çå®ä¹ï¼åä½å¤§å°ãæ ·å¼ã缩è¿ãè¡é´è·ççãè¿ä¸ªé®é¢é常éè¦ï¼å 为ä¸ä¸ªç»å®ç¯å¢çå
·ä½å®ä¹ä¼éçæ档类åçååèååãæ¯å¦ï¼ææåè¦æ±æ é¢æ¯é»ä½ã18ptãå±
ä¸ï¼èå¦ä¸ä¸ªå¯è½è¦æ±æä½ã15ptã左对é½ï¼ä¸åçè¯è¨ä¹æä¸åç缩è¿æ åï¼åèæç®çæ ¼å¼å°±ååæ´å¤§äºãLyX ä¼æä½ ä»è¿äºæ ¼å¼ä¸é´æ¯æåºæ¥ã</div>
+
+<div class="standard" id='magicparlabel-69'>ä½ å¯ä»¥ä½¿ç¨å·¥å
·æ ä¸çç¯å¢ä¸æèå<img style='width:50%;' src='59dc5fa2c4be2dbbd812749fb08fd5394d0b655a4cf83a012745159aab4ec6af_ToolbarEnvBox_png.png' alt='image: 59dc5fa2c4be2dbbd812749fb08fd5394d0b655a4cf83a012745159aab4ec6af_ToolbarEnvBox_png.png' />æ¥éæ©ç¯å¢ï¼å®ä¹è½åè¯ä½ å½åçç¯å¢æ¯ä»ä¹ï¼å
¶ä¸âStandardâæ¯ææ¬çé»è®¤ç¯å¢ãç°å¨æ们å°å¨ä½ çæ°ææ¡£ä¸æ·»å å 个ç¯å¢ï¼æ¥ççå®ä»¬æ¯æä¹å·¥ä½çå§ã</div>
+<section>
+<h3 class="subsection" id='magicparlabel-70'><span class="subsection_label">2.2.1</span> èï¼<span style='font-family:sans-serif;'>Section</span>ï¼ä¸åèï¼Subsectionï¼</h3>
+<div class="standard" id='magicparlabel-71'>å¨ LyX ææ¡£ç第ä¸è¡è¾å
¥â<span style='font-family:monospace;'>Introduction</span>âï¼å¨ç¯å¢ä¸æèåä¸è®¾ä¸ºâèâï¼<span style='font-family:sans-serif;'>Section</span>ï¼<div class="foot"><span class="foot_label">4</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-75'>设å®ç¯å¢ä¸éè¦éæ©æ´è¡ï¼æ®µï¼ï¼å
æ åçå
¶ä¸å³å¯ãè¥æ³ä¸æ¬¡æ¹åå¤è¡çç¯å¢ï¼åéè¦éå®ä¹ã</div>
+</div></div>ï¼ ç¡®å®ä½ éæ©äºâèâï¼<span style='font-family:sans-serif;'>Section</span>ï¼èä¸æ¯âè<span style='font-family:sans-serif;'>*</span>âï¼<span style='font-family:sans-serif;'>Section*</span>ï¼ãLyX å°å¨åè¾¹å ä¸â1â并æåä½è°å¤§ãç°å¨æ²å车ï¼ç¯å¢å°ä»âèâï¼<span style='font-family:sans-serif;'>Section</span>ï¼ååâæ åâï¼Standardï¼ãåå¤æ°ç¯å¢ç±»ä¼¼ï¼æ²å车åç¯å¢å°ç»æ¢ãè¾å
¥ææ¬ï¼</div>
+<div class="lyx_code" id='magicparlabel-76'>
+<div class="lyx_code_item">This is an introduction to my first LyX document.</div>
+</div>
+<div class="standard" id='magicparlabel-77'>å次å车ï¼éæ©âèâï¼<span style='font-family:sans-serif;'>Section</span>ï¼ç¯å¢ï¼LyX å°åä¸â2â并çå¾
è¾å
¥ãç°å¨è¾å
¥â<span style='font-family:monospace;'>More Stuff</span>âï¼LyX ä¼æå®è®¾ç½®æèï¼<span style='font-family:sans-serif;'>Section</span>ï¼æ é¢çæ ·å¼ã</div>
+
+<div class="standard" id='magicparlabel-78'>å°å
æ å®ä½å°è 1 ï¼Section 1ï¼æ«å°¾ï¼æ²å车ï¼å次设置为âèâï¼<span style='font-family:sans-serif;'>Section</span>ï¼ï¼LyX ä¼åä¸â2â并çå¾
è¾å
¥ãè¾å
¥â<span style='font-family:monospace;'>About This Document</span>âãåæçè 2 ï¼Section 2ï¼ï¼âMore Stuffâï¼ç°å¨å·²ç»è¢«æ¹æäºè 3 ï¼Section 3ï¼ãä½ åªéè¦ç¡®å®åªäºæåæ¯èï¼<span style='font-family:sans-serif;'>Section</span>ï¼æ é¢ï¼LyX ä¼å¤çç¼å·åæçæ ¼å¼çï¼è¿å°±æ¯æè§å³ææ³ï¼WYSIWYMï¼çé£æ ¼ã</div>
+
+<div class="standard" id='magicparlabel-79'>æ²å车ï¼åå°âæ åâï¼Standardï¼ç¯å¢ï¼è¾å
¥ä¸è¾¹ 5 è¡æåï¼</div>
+<div class="lyx_code" id='magicparlabel-80'>
+<div class="lyx_code_item">Sections and subsections are described below.</div>
+<div class="lyx_code_item">Section Description</div>
+<div class="lyx_code_item">Sections are bigger than subsections.</div>
+<div class="lyx_code_item">Subsection description</div>
+<div class="lyx_code_item">Subsections are smaller than sections.</div>
+</div>
+<div class="standard" id='magicparlabel-85'>ç¹å»ç¬¬äºè¡ï¼å¨ç¯å¢ä¸æèåä¸è®¾ä¸ºâåèâï¼Subsectionï¼ãLyX å°ä¼å¨åè¾¹å ä¸â2.1âï¼å¹¶æåä½è°æ´çæ¯æ£æ大ï¼æ¯èï¼Sectionï¼æ é¢å°ãæ¥çæ第 4 è¡ä¹è®¾ç½®æ为âåèâï¼Subsectionï¼ï¼LyX å°å¨å®åè¾¹å ä¸â2.2âãå¦æå¨è 2 ï¼Section 2ï¼åè¾¹å ä¸äºå«çèï¼è 2 å°ä¼èªå¨å为è 3ï¼Section 3ï¼ï¼åè¾¹çåèä¹ä¼è·çåæâ3.1âåâ3.2âã</div>
+
+<div class="standard" id='magicparlabel-86'>ææ¡£çå±çº§ç»æè¿æ次åè ( Subsubsection )ã段 ( Paragraph ) åå段 ( Subparagraph )ï¼è¿äºå°±ç±è¯»è
èªè¡æç©å§ã段åå段çæ é¢é»è®¤æ¯ä¸ç¼å·çï¼èä¸å段è¿æ缩è¿ï¼åé
<em>User's Guide</em> å¾å°æ´å¤è§£é以åå¦ä½æ¹åå®ä»¬ãç« ï¼Chapterï¼æ¯ææ¡£å±çº§ç»æä¸æé«çä¸çº§ï¼åªè½å¨æäºç¹å®ç LyX æ档类åä¸æè½ä½¿ç¨å®ï¼è§ <a href="#sec____">sec:æ档类</a>ï¼ã</div>
+
+<div class="standard" id='magicparlabel-87'>ä½ å¯è½è¿å¸æä¸äºèååèæ¯ä¸ç¼å·çï¼LyX æä¸é¨çç¯å¢å®ç°è¿ä¸ªåè½ãå½æèçæ é¢ç¯å¢æ¹ä¸ºâè*”ï¼Section*ï¼åï¼LyX è¿å°å¯¹å®ä½¿ç¨ç¸åçåä½ï¼åªæ¯ä¸å对å®è¿è¡ç¼å·ãç¸åºçä¹æ带âæâçåèå次åèç¯å¢ãè¯çæä¸äºèæåèçæ é¢ç¯å¢æ¹ä¸ºå¸¦æçï¼åæ¶ççå
¶å®çç¼å·æä¹éä¹æ¹åã</div>
+
+<div class="standard" id='magicparlabel-88'>ç»ä¹ ï¼ä¿®æ¹ example_raw.lyx ä¸çèååèæ é¢ã</div>
+</section>
+<section>
+<h3 class="subsection" id='magicparlabel-89'><span class="subsection_label">2.2.2</span> å表ï¼Listsï¼ååå表ï¼sublistsï¼</h3>
+<div class="standard" id='magicparlabel-90'>LyX æ好å ç§å表ç¯å¢ï¼å¨åæ纲æè
éæ°æåºä¸ä¸ªå·²æçå表æ¶ï¼è¿äºå表ç¯å¢ä¼å¸®ä¸å¤§å¿ãä¸åçæ档类åéè¦ä¸åçå表ç¯å¢ï¼</div>
+<ul class="itemize" id='magicparlabel-91'>
+<li class="itemize_item">å¹»ç¯ç使ç¨å¸¦åç¹çæ¡ç®ç¯å¢ï¼<span style='font-family:sans-serif;'>Itemize</span>ï¼ã</li>
+<li class="itemize_item">大纲使ç¨å¸¦ç¼å·çæ举ç¯å¢ï¼<span style='font-family:sans-serif;'>Enumerate</span>ï¼ã</li>
+<li class="itemize_item">åè¯è§£é常ç¨æè¿°ç¯å¢ï¼<span style='font-family:sans-serif;'>Description</span>ï¼ã</li>
+<li class="itemize_item">å表ç¯å¢ï¼<span style='font-family:sans-serif;'>List</span>ï¼åæè¿°ç¯å¢ï¼<span style='font-family:sans-serif;'>Description</span>ï¼å·®ä¸å¤ï¼åªæ¯å¯¹é½æ¹å¼ç¨æä¸åã</li>
+</ul>
+<div class="standard" id='magicparlabel-95'>ç°å¨æ们åä¸ä¸ª LyX æå
³ä¼ç¹çå表ãå¨ææ¡£ä¸è¾å
¥ï¼</div>
+
+<div class="standard" id='magicparlabel-96'><span style='font-family:monospace;'>LyX is better than other word processors because: </span></div>
+
+<div class="standard" id='magicparlabel-97'>ç¶åæ²å车ï¼å¹¶å¨ç¯å¢ä¸æå表ä¸éæ©æ¡ç®ç¯å¢ï¼<span style='font-family:sans-serif;'>Itemize</span>ï¼ãLyX ä¼å¨è¡é¦å ä¸åç¹ã继ç»è¾å
¥ï¼</div>
+<div class="lyx_code" id='magicparlabel-98'>
+<div class="lyx_code_item">Typesetting is done for you.</div>
+<div class="lyx_code_item">Math is WYSIWYG</div>
+<div class="lyx_code_item">Lists are very easy to create!</div>
+</div>
+<div class="standard" id='magicparlabel-101'>åæ é¢ä¸åï¼å表ç¯å¢å¨æ²å车æ¶ä¸ä¼ç»æ¢ï¼LyX ä¼è®¤ä¸ºä½ å°ç»§ç»åä¸ä¸ä¸ªæ¡ç®ãæ以ä¸è¾¹çè¾å
¥å°ä¼äº§çä¸ä¸ªå表项ãéæ°éæ©æ åç¯å¢ï¼<span style='font-family:sans-serif;'>Standard</span>ï¼æ使ç¨å¿«æ·é® <span style='font-family:sans-serif;'>Alt+P S</span> æè½éåºå表ç¯å¢ãè¦å¨ä¸ä¸ªå表项ä¸ä½¿ç¨å¤ä¸ªæ®µè½ï¼å¯ä½¿ç¨ä¿æ¤æ§ä¸æï¼<span style='font-family:sans-serif;'>Protected Break</span>ï¼ï¼æä¸ Ctrl + å车å³å¯ã</div>
+
+<div class="standard" id='magicparlabel-102'>ä½ å·²ç»å¾å°äºä¸ä¸ªæ¼äº®çæ¡ç®å表ï¼ä½ æ¯ä¸æ¯å·²ç»è¿«ä¸åå¾
çæ³è¿è¡ LaTeX ççå®ä»¬æå°åºæ¥çæ ·åäºï¼å¯å¦ææ¨æ³ç»å®ä»¬å ä¸ç¼å·å¢ï¼ä½ åªéè¦éå®æ´ä¸ªå表<div class="foot"><span class="foot_label">5</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-106'>å¦æä¸è¿åè¾¹ä¸æ®µä¹ä¸èµ·éä¸çè¯ï¼ä½ æ¯æ æ³éä¸ç¬¬ä¸ä¸ªæ¡ç®åè¾¹çåç¹çï¼ç±»ä¼¼çï¼ä½ ä¹æ æ³éå®ç« èç¼å·ãè¿æ¯ææå¦æ¤çï¼å 为éçæ档类ååæåä½ç½®çä¸åï¼è¿äºåç¹åç¼å·ä¹ä¼åçååã</div>
+</div></div>ï¼ç¶åéæ©æ举ç¯å¢ï¼<span style='font-family:sans-serif;'>Enumerate</span>ï¼å³å¯ãå¦æä½ å¢å æ¡ç®çè¯ï¼LyX ä¼èªå¨ä¿®æ¹æ举ç¼å·çã</div>
+
+<div class="standard" id='magicparlabel-107'>ç°å¨å表项è¿æ¯å¤äºè¢«éå®ç¶æçï¼ä½ å¯ä»¥åè¯è¯æè¿°ï¼<span style='font-family:sans-serif;'>Description</span>ï¼åå表ï¼<span style='font-family:sans-serif;'>List</span>ï¼ä¸¤ç§ç¯å¢ãè¿ä¸¤ç§ç¯å¢é½æ¯åè¯å å®ä¹çå½¢å¼ï¼æè¿°ç¯å¢åè¾¹çåè¯ç¨é»ä½ï¼å表ç¯å¢çåè¯ååè¾¹çå®ä¹ç±âTabâ<div class="foot"><span class="foot_label">6</span><div class="foot_inner"><div class="plain_layout" id='magicparlabel-111'>è¿éçTabæ¯æçTabï¼å®ä¼èªéåºå°æé¿çåè¯é¿åº¦ï¼ï¼èä¸æ¯å®é¿çæåæºTabã</div>
+</div></div>åéãåè¾¹çåè¯å¦æå¤äºä¸ä¸ªè¯çè¯ï¼éè¦ä½¿ç¨ä¿æ¤æ§ç©ºæ ¼ï¼<span style='font-family:sans-serif;'>Protected Blank</span>sï¼å°å®ä»¬åå¼ã</div>
+
+<div class="standard" id='magicparlabel-112'>ç»ä¹ ï¼æç <span style='font-family:monospace;'>example_raw.lyx</span> ä¸çå表ã</div>
+
+<div class="standard" id='magicparlabel-113'>è¿äºå表ç¯å¢è¿å¯ä»¥åµå¥ä½¿ç¨ï¼æ纲就æ¯æ常è§çä¾åã带ç¼å·æåç¹çå表å¨åå表ä¸ä¼æä¸åç表ç°å½¢å¼ãæ´å¤è¯¦æ
åè§ <em>User's Guide</em> ã</div>
+</section>
+<section>
+<h3 class="subsection" id='magicparlabel-114'><span class="subsection_label">2.2.3</span> å
¶å®ç¯å¢ï¼è¯ãå¼ç¨åæ´å¤</h3>
+<div class="standard" id='magicparlabel-115'>æ两ç§å¼ç¨ç¯å¢ï¼çä¸ç¹çå¼ç¨ä½¿ç¨å¼ç¨ç¯å¢ï¼<span style='font-family:sans-serif;'>Quote</span>ï¼ï¼é¿ä¸ç¹çå¼ç¨ä½¿ç¨å¼æç¯å¢ï¼<span style='font-family:sans-serif;'>Quotation</span>ï¼ã计ç®æºä»£ç 使ç¨ä»£ç ç¯å¢ï¼<span style='font-family:sans-serif;'>LyX-Code</span>ï¼ï¼è¯¥ç¯å¢ä½¿ç¨<span style='font-family:monospace;'>typewriter</span> åä½ï¼èä¸è¿éæ¯ LyX ä¸å¯ä¸å
许使ç¨å¤ä¸ªç©ºæ ¼çå°æ¹ãä½ è¿å¯ä»¥ä½¿ç¨è¯ç¯å¢ï¼<span style='font-family:sans-serif;'>Verse</span>ï¼æ¥åè¯ï¼å车åèï¼Ctrl + å车æè¡ã对ææç¯å¢çå®æ´æè¿°åè§<em> User's Guide</em>ã</div>
+
+<div class="standard" id='magicparlabel-116'>ç»ä¹ ï¼ä¿®æ¹ <span style='font-family:monospace;'>example_raw.lyx</span> ä¸çå¼ç¨ã代ç ãè¯ç¯å¢ã</div>
+</section>
+</section>
+</section>
+</body>
+</html>
diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp
index fe396f8..0174339 100644
--- a/src/output_xhtml.cpp
+++ b/src/output_xhtml.cpp
@@ -35,6 +35,7 @@
#include "support/textutils.h"
#include <stack>
+#include <iostream>
// Uncomment to activate debugging code.
// #define XHTML_DEBUG
@@ -610,6 +611,8 @@ void xhtmlParagraphs(Text const & text,
ParagraphList::const_iterator send;
// Think about adding <section> and/or </section>s.
+ // Document title is not in Sectioning, but rather in FrontMatter, so that it does not need to be taken
+ // into account.
if (style.category() == from_utf8("Sectioning")) {
int level = style.toclevel;
@@ -620,7 +623,7 @@ void xhtmlParagraphs(Text const & text,
while (!headerLevels.empty() && level <= headerLevels.top()) {
// Output the tag only if it corresponds to a legit section.
int stackLevel = headerLevels.top();
- if (stackLevel != Layout::NOT_IN_TOC && level > 1) { // <h1> is the document title.
+ if (stackLevel != Layout::NOT_IN_TOC) {
xs << xml::EndTag("section");
xs << xml::CR();
}
@@ -630,7 +633,7 @@ void xhtmlParagraphs(Text const & text,
// Open the new section: first push it onto the stack, then output it in XHTML.
headerLevels.push(level);
// Some sectioning-like elements should not be output (such as FrontMatter).
- if (level != Layout::NOT_IN_TOC && level > 1) { // <h1> is the document title.
+ if (level != Layout::NOT_IN_TOC ) {
xs << xml::StartTag("section");
xs << xml::CR();
}
@@ -675,7 +678,7 @@ void xhtmlParagraphs(Text const & text,
// If need be, close <section>s, but only at the end of the document (otherwise, dealt with at the beginning
// of the loop).
- while (!headerLevels.empty() && headerLevels.top() != Layout::NOT_IN_TOC && headerLevels.top() > 1) {
+ while (!headerLevels.empty() && headerLevels.top() != Layout::NOT_IN_TOC) {
docstring tag = from_utf8("</section>");
headerLevels.pop();
xs << XMLStream::ESCAPE_NONE << tag;
-----------------------------------------------------------------------
Summary of changes:
autotests/export/xhtml/zh_CN_Tutorial.lyx | 974 +++++++++++++++++++++++++++
autotests/export/xhtml/zh_CN_Tutorial.xhtml | 256 +++++++
src/output_xhtml.cpp | 9 +-
3 files changed, 1236 insertions(+), 3 deletions(-)
create mode 100644 autotests/export/xhtml/zh_CN_Tutorial.lyx
create mode 100644 autotests/export/xhtml/zh_CN_Tutorial.xhtml
hooks/post-receive
--
Repository for new features
More information about the lyx-cvs
mailing list