mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 07:16:48 +00:00
a15303b938
Especially after the change to use semantic linefeeds (7b23c76b
),
the diffs are large and it's hard to figure out what diff is the
result of the linefeed change and which diff is the result of an
edit.
By updating the docs, it will make the edits easier to understand
from the diff.
This commit used the LyX binary to write the new .lyx files since
lyx2lyx does not apply semantic linefeeds.
I used the following command:
./development/tools/updatedocs.py [path to 'lyx' binary]
A few documents were not updated (e.g., the command sequence used
failed because a dialog about a missing dependency was shown).
I did not update Additional.lyx for any language since it is
undergoing changes. I also didn't change anything in doc/fr since JP
is working on some of those. I also didn't change doc/ru since it
appears Yuriy already updated those.
311 lines
5.4 KiB
Plaintext
311 lines
5.4 KiB
Plaintext
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
|
\lyxformat 612
|
|
\begin_document
|
|
\begin_header
|
|
\save_transient_properties true
|
|
\origin /systemlyxdir/examples/ja/Modules/
|
|
\textclass bxjsarticle
|
|
\use_default_options true
|
|
\begin_modules
|
|
knitr
|
|
\end_modules
|
|
\maintain_unincluded_children no
|
|
\language japanese
|
|
\language_package default
|
|
\inputencoding utf8
|
|
\fontencoding auto
|
|
\font_roman "palatino" "IPAexMincho"
|
|
\font_sans "default" "IPAexGothic"
|
|
\font_typewriter "default" "default"
|
|
\font_math "auto" "auto"
|
|
\font_default_family default
|
|
\use_non_tex_fonts true
|
|
\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
|
|
\use_microtype false
|
|
\use_dash_ligatures false
|
|
\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 true
|
|
\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 1
|
|
\use_minted 0
|
|
\use_lineno 0
|
|
\index Index
|
|
\shortcut idx
|
|
\color #008000
|
|
\end_index
|
|
\leftmargin 2.5cm
|
|
\topmargin 2.5cm
|
|
\rightmargin 2.5cm
|
|
\bottommargin 2.5cm
|
|
\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 1
|
|
\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
|
|
\docbook_mathml_prefix 1
|
|
\end_header
|
|
|
|
\begin_body
|
|
|
|
\begin_layout Title
|
|
\SpecialChar LyX
|
|
でknitrを使うには
|
|
\end_layout
|
|
|
|
\begin_layout Author
|
|
Yihui Xie
|
|
\begin_inset Foot
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
アイオワ州立大学統計学部。
|
|
電子メール:
|
|
|
|
\begin_inset CommandInset href
|
|
LatexCommand href
|
|
name "xie@yihui.name"
|
|
target "xie@yihui.name"
|
|
type "mailto:"
|
|
literal "false"
|
|
|
|
\end_inset
|
|
|
|
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
R (
|
|
\begin_inset Flex URL
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
http://www.r-project.org
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
)パッケージ
|
|
\series bold
|
|
knitr
|
|
\series default
|
|
は、Sweaveに似たツールですが、異なったデザインとより多くの機能を有しています。
|
|
\SpecialChar LyX
|
|
は、Sweaveを第2.0.0版以降ネイティブにサポートしており、
|
|
\series bold
|
|
knitr
|
|
\series default
|
|
のサポートは第2.0.3版で追加されました。
|
|
使用法は、基本的に
|
|
\family sans
|
|
Sweave
|
|
\family default
|
|
モジュールと同様です
|
|
\begin_inset Foot
|
|
status open
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
\family sans
|
|
ヘルプ\SpecialChar menuseparator
|
|
用途別説明書
|
|
\family default
|
|
にある\SpecialChar LyX
|
|
/Sweave取扱説明書をお読みください。
|
|
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
。
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Enumerate
|
|
新規\SpecialChar LyX
|
|
文書を開きます。
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Enumerate
|
|
|
|
\family sans
|
|
文書\SpecialChar menuseparator
|
|
設定\SpecialChar menuseparator
|
|
モジュール
|
|
\family default
|
|
で
|
|
\family sans
|
|
Rnw (knitr)
|
|
\family default
|
|
モジュールを挿入します。
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Enumerate
|
|
その後、文書中で
|
|
\family sans
|
|
挿入\SpecialChar menuseparator
|
|
\SpecialChar TeX
|
|
コード
|
|
\family default
|
|
メニューか
|
|
\family sans
|
|
コード組(chunk)
|
|
\family default
|
|
環境を使って、Rコードを挿入します。
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
パッケージのウェブサイト
|
|
\begin_inset Flex URL
|
|
status collapsed
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
http://yihui.name/knitr
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
には、
|
|
\series bold
|
|
knitr
|
|
\series default
|
|
の完全な取扱説明書と多くのデモがあります。
|
|
用例の多くには、\SpecialChar LyX
|
|
ソース文書へのリンクがあります。
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
\SpecialChar LyX
|
|
2.3以降、
|
|
\series bold
|
|
knitr
|
|
\series default
|
|
を使ってコンパイルするためには
|
|
\family sans
|
|
設定\SpecialChar menuseparator
|
|
ファイル処理\SpecialChar menuseparator
|
|
変換子
|
|
\family default
|
|
で
|
|
\emph on
|
|
needauth
|
|
\emph default
|
|
変換子の使用を可能にする必要があります。
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
|
|
\series bold
|
|
knitr
|
|
\series default
|
|
パッケージはR >= 2.14.1が必須であることに注意してください。
|
|
もし古い版のRを使っているならば更新が必要です。
|
|
以下に、簡単な例として一つのコード組を示します。
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
\begin_inset Flex Chunk
|
|
status open
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
\begin_inset Argument 1
|
|
status open
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
show-off
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
rnorm(5)
|
|
\end_layout
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
df=data.frame(y=rnorm(100),
|
|
x=1:100)
|
|
\end_layout
|
|
|
|
\begin_layout Plain Layout
|
|
|
|
summary(lm(y~x,
|
|
data=df))
|
|
\end_layout
|
|
|
|
\end_inset
|
|
|
|
|
|
\end_layout
|
|
|
|
\begin_layout Standard
|
|
何か問題がある場合には、パッケージ作者に連絡してください。
|
|
|
|
\end_layout
|
|
|
|
\end_body
|
|
\end_document
|