From 6d7054cb46831e96c89c84ae9bb0b5c88e49eb5b Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 29 Nov 2015 22:05:33 +0100 Subject: [PATCH] Autotest: This file shows error if exported to dvi. To omit the error, there are 2 possibilities 1.) Change \inputencoding to utf8-platex or 2.) write some text in default language prior to the following subchapter 1.2.2 Probably a candidate for language nesting --- autotests/export/ja/wrong_auto_encoding.lyx | 406 ++++++++++++++++++++ 1 file changed, 406 insertions(+) create mode 100644 autotests/export/ja/wrong_auto_encoding.lyx diff --git a/autotests/export/ja/wrong_auto_encoding.lyx b/autotests/export/ja/wrong_auto_encoding.lyx new file mode 100644 index 0000000000..4d20d77799 --- /dev/null +++ b/autotests/export/ja/wrong_auto_encoding.lyx @@ -0,0 +1,406 @@ +#LyX 2.2 created this file. For more info see http://www.lyx.org/ +\lyxformat 503 +\begin_document +\begin_header +\origin unavailable +\textclass scrbook +\begin_preamble +% DO NOT ALTER THIS PREAMBLE!!! +% +% This preamble is designed to ensure that the manual prints +% out as advertised. If you mess with this preamble, +% parts of the manual may not print out as expected. If you +% have problems LaTeXing this file, please contact +% the documentation team +% email: lyx-docs@lists.lyx.org + +\IfFileExists{pxjahyper.sty} +{\usepackage{pxjahyper}} + +% if pdflatex is used +\usepackage{ifpdf} +\ifpdf + + % set fonts for nicer pdf view + \IfFileExists{lmodern.sty} + {\usepackage{lmodern}}{} + +\fi % end if pdflatex is used + +% the pages of the TOC are numbered roman +% and a PDF-bookmark for the TOC is added +\pagenumbering{roman} +\let\myTOC\tableofcontents +\renewcommand{\tableofcontents}{% + \pdfbookmark[1]{\contentsname}{} + \myTOC + \cleardoublepage + \pagenumbering{arabic}} + +% extra space for tables +\newcommand{\extratablespace}[1]{\noalign{\vskip#1}} + +\usepackage{t1enc} +\end_preamble +\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading +\use_default_options false +\begin_modules +logicalmkup +theorems-ams +theorems-ams-extended +multicol +shapepar +\end_modules +\maintain_unincluded_children false +\begin_local_layout +Format 57 +InsetLayout Flex:MenuItem +LyxType charstyle +LabelString menu +LatexType command +LatexName menuitem +Font +Family Sans +EndFont +Preamble +\newcommand*{\menuitem}[1]{{\sffamily #1}} +EndPreamble +ResetsFont true +End +InsetLayout Flex:Ruby +LyxType charstyle +LatexType command +LatexName ruby +BgColor none +LabelString "ルビ" +Decoration Conglomerate +Argument post:1 +LabelString "ルビ文" +MenuString "ルビ文(S)|S" +Decoration Conglomerate +Font +Size tiny +EndFont +LabelFont +Size tiny +EndFont +Mandatory 1 +EndArgument +Preamble +\IfFileExists{okumacro.sty} +{\usepackage{okumacro}} +{\newcommand{\ruby}[2]{#2}} +EndPreamble +ResetsFont true +End +\end_local_layout +\language japanese +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "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_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "LyX's Additional Features manual" +\pdf_author "LyX Team" +\pdf_subject "LyX's additional features documentation" +\pdf_keywords "LyX, Documentation, Additional" +\pdf_bookmarks false +\pdf_bookmarksnumbered true +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 0 +\use_package esint 0 +\use_package mathdots 1 +\use_package mathtools 0 +\use_package mhchem 1 +\use_package stackrel 0 +\use_package stmaryrd 0 +\use_package undertilde 0 +\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 +\notefontcolor #0000ff +\index 索引 +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\quotes_language english +\papercolumns 1 +\papersides 2 +\paperpagestyle headings +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict true +\end_header + +\begin_body + +\begin_layout Title +\SpecialChar LyX +の高度な機能 +\begin_inset Newline newline +\end_inset + + +\size large +第2.2.x版 +\end_layout + +\begin_layout Author +\SpecialChar LyX +プロジェクトチーム +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、\SpecialChar LyX +文書化メーリングリスト +\begin_inset Flex Code +status open + +\begin_layout Plain Layout +\noindent + +\family typewriter + +\end_layout + +\end_inset + +に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Chapter +ソフトウェアを追加する必要がある \SpecialChar LyX +機能 +\end_layout + +\begin_layout Section +\SpecialChar TeX +のチェック +\end_layout + +\begin_layout Standard + +\noun on +Asger Alstrup +\noun default +文 +\end_layout + +\begin_layout Section +\SpecialChar LyX +でのバージョン管理 +\end_layout + +\begin_layout Standard + +\noun on +Lars Bullik Bjønnes +\noun default +および +\noun on +Pavel Sanda +\noun default +文 +\end_layout + +\begin_layout Subsection +はじめに +\end_layout + +\begin_layout Standard + +\lang english +It is strongly recommended to store documents in uncompressed format if + using version control (uncheck +\family sans +Document\SpecialChar menuseparator +Compressed +\family default + if it is checked): Uncompressed LyX documents are text files and therefore + for merging two different versions by version control systems. + Compressed LyX documents are binary files, which cannot be merged by version + control systems. +\end_layout + +\begin_layout Standard + +\lang english +The following error if exporting to dvi shows only if the language immediately + before the subchapter is in non default laguage. +\end_layout + +\begin_layout Subsection +\SpecialChar LyX +におけるRCSコマンド +\end_layout + +\begin_layout Standard +以下の節では\SpecialChar LyX +でサポートされているRCSコマンドを説明します。それらのコマンドは +\family sans +ファイル\SpecialChar menuseparator +バージョン管理 +\family default +のサブメニューにあります。\SpecialChar LyX +は、RCS 5.7/5.8に対して試験されています。 +\end_layout + +\begin_layout Subsubsection + +\family sans +登録 +\end_layout + +\begin_layout Standard + +\series bold +【ヒント】 +\family sans +\series default +Jpgfdraw +\family default +で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を +\family sans +Jpgfdraw +\family default +に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。 +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard + +\family sans +任意の段落形 +\family default +モジュールは、 +\family sans +shapepar +\family default +と +\family sans +Shapepar +\family default +の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。 +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +これらのコマンドは、上述の全ての形で内部的に使用されています。 +\end_layout + +\end_inset + +これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、 +\series bold +shapepar +\series default +パッケージの取扱説明書 +\begin_inset CommandInset citation +LatexCommand cite +key "shapepar" + +\end_inset + +をご覧ください。 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "multicol" + +\end_inset + +\SpecialChar LaTeX +パッケージ +\begin_inset CommandInset href +LatexCommand href +name "multicol" +target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf" + +\end_inset + +の取扱説明書 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "shapepar" + +\end_inset + +\SpecialChar LaTeX +パッケージ +\begin_inset CommandInset href +LatexCommand href +name "shapepar" +target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf" + +\end_inset + +の取扱説明書 +\end_layout + +\end_body +\end_document