mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 23:49:37 +00:00
de5e348727
Actually, the test case showed several problems: - ERT insets did use layout "Standard", not "Plain Layout" - The font scale was read correctly, but tex2lyx claimed that it did ignore the option "scaled=0.95" - If a third argument of the CJK environment was given, it caused the whole environment to be put in ERT with a broken encoding. This is now fixed for the bug test case by using the \font_cjk header variable, but the encoding problem still exists for unsupported encodings. I'll file a separate bug for that. - The CJKutf8 package was not handled in the preamble parsing. Therefore the chinese comment in the preamble was read with a wrong encoding, and guessing the document language did not work. The new file CJKutf8.tex was created by copying and modifying CJK.tex, but unfortunately it is impossible to tell git to inherit the history of CJK.tex for the new file (search the web for git svn copy if you want to know details).
174 lines
2.8 KiB
Plaintext
174 lines
2.8 KiB
Plaintext
#LyX file created by tex2lyx 2.1.0dev
|
|
\lyxformat 457
|
|
\begin_document
|
|
\begin_header
|
|
\textclass article
|
|
\begin_preamble
|
|
|
|
\usepackage{babel}
|
|
|
|
|
|
% It is impossible to get the document language because the document could start with a command,
|
|
% whitespace, and English word or whatever and the rest is in Japanese. Checking for the first CJK
|
|
% environment is no solution because the document could be English and contain only some Japanese.
|
|
|
|
|
|
\end_preamble
|
|
\use_default_options false
|
|
\maintain_unincluded_children false
|
|
\language chinese-traditional
|
|
\language_package default
|
|
\inputencoding UTF8
|
|
\fontencoding T1
|
|
\font_roman default
|
|
\font_sans default
|
|
\font_typewriter default
|
|
\font_math auto
|
|
\font_default_family default
|
|
\use_non_tex_fonts false
|
|
\font_sc false
|
|
\font_osf false
|
|
\font_sf_scale 100
|
|
\font_tt_scale 100
|
|
\graphics default
|
|
\default_output_format default
|
|
\output_sync 0
|
|
\bibtex_command default
|
|
\index_command default
|
|
\paperfontsize default
|
|
\spacing single
|
|
\use_hyperref false
|
|
\papersize default
|
|
\use_geometry false
|
|
\use_package amsmath 1
|
|
\use_package amssymb 0
|
|
\use_package esint 1
|
|
\use_package mathdots 0
|
|
\use_package mathtools 0
|
|
\use_package mhchem 0
|
|
\use_package stackrel 0
|
|
\use_package stmaryrd 0
|
|
\use_package undertilde 0
|
|
\cite_engine basic
|
|
\cite_engine_type numerical
|
|
\biblio_style plain
|
|
\use_bibtopic false
|
|
\use_indices false
|
|
\paperorientation portrait
|
|
\suppress_date false
|
|
\justification true
|
|
\use_refstyle 0
|
|
\index Index
|
|
\shortcut idx
|
|
\color #008000
|
|
\end_index
|
|
\secnumdepth 3
|
|
\tocdepth 3
|
|
\paragraph_separation indent
|
|
\paragraph_indentation default
|
|
\quotes_language english
|
|
\papercolumns 1
|
|
\papersides 1
|
|
\paperpagestyle default
|
|
\tracking_changes false
|
|
\output_changes false
|
|
\html_math_output 0
|
|
\html_css_as_file 0
|
|
\html_be_strict false
|
|
\end_header
|
|
|
|
\begin_body
|
|
|
|
\begin_layout Standard
|
|
|
|
\lang chinese-traditional
|
|
Japanese
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\lang chinese-traditional
|
|
Chinese traditional
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\lang chinese-traditional
|
|
Japanese
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
hello
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\lang chinese-traditional
|
|
Chinese simplified
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
\backslash
|
|
begin{CJK}{UTF8}{hei}
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
Japanese
|
|
\begin_inset ERT
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
\backslash
|
|
end{CJK}
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\lang chinese-traditional
|
|
Chinese simplified
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\lang chinese-traditional
|
|
Big5 文鼎楷書
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\lang english
|
|
English
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\lang chinese-traditional
|
|
日本語の文章
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
hello
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\lang chinese-traditional
|
|
Korean
|
|
\end_layout
|
|
|
|
\end_body
|
|
\end_document
|