#LyX 1.5.0 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass oblivoir
\begin_preamble
\usepackage{multirow}
\renewcommand\multirowsetup{\centering}
\usepackage[dbl4x6]{fapapersize}
\setsecheadstyle{\centering\bfseries\Large}
\end_preamble
\language koreanUCS
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Section*
oblivoir tabular with LyX test
\end_layout
\begin_layout Standard
oblivoir는 booktabs 표를 기본으로 한다.
그런데 LyX의 표편집기는 booktabs를 자체 지원하지 않는다.
그러면 트릭이 필요할 것이다.
\end_layout
\begin_layout Subsection*
simple
\end_layout
\begin_layout Standard
row의 마지막 cell에 ERT 박스를 만들고 % 문자를 넣으면
\family typewriter
\backslash
tabularnewline
\family default
이 주석처리된다.
이것을 이용하여, 표편집기로 모든 라인을 전부 제거한 후,
\family typewriter
\backslash
toprule,
\backslash
\backslash
\backslash
midrule,
\backslash
\backslash
\backslash
bottomrule
\family default
을 넣은 예.
\end_layout
\begin_layout Center
\begin_inset Tabular
\begin_inset Text
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
toprule{}
\end_layout
\end_inset
dvi-ware
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
pros
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
cons
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
\backslash
\backslash
midrule %
\end_layout
\end_inset
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
dvips
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
stable, standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
who uses it?
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
dvipdfmx
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
powerful, developing
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
pdftex-compatible?
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
pdftex
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
de facto standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
too huge pdf
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
\backslash
\backslash
bottomrule %
\end_layout
\end_inset
\end_layout
\end_inset
|
\end_inset
\end_layout
\begin_layout Subsection*
a bit complicated
\end_layout
\begin_layout Standard
첫 row 마지막 column에 multicolumn이 들어간 경우.
이 때는 앞의 방법을 쓰면
\family typewriter
\backslash
multicolumn
\family default
의 인자 시작
\family typewriter
{
\family default
에 짝을 이루는 닫는 괄호
\family typewriter
}
\family default
가 주석처리되기 때문에 에러가 발생한다.
이 때는
\family typewriter
\backslash
midrule
\family default
대신
\family typewriter
\backslash
hline
\family default
을 그냥 쓰거나, 아래 예와 같이
\family typewriter
\backslash
hline
\family default
의 정의를 일시적으로 바꾸어주는 방법이 있다(약간
\emph on
dirty-trick
\emph default
이기는 하지만\SpecialChar \ldots{}
).
\end_layout
\begin_layout Center
\begin_inset ERT
status open
\begin_layout Standard
\backslash
let
\backslash
HLINEORIG
\backslash
hline
\end_layout
\begin_layout Standard
\backslash
let
\backslash
hline
\backslash
midrule
\end_layout
\end_inset
\begin_inset Tabular
\begin_inset Text
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
toprule{}
\end_layout
\end_inset
dvi-ware
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
pros
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
cons
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
dvips
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
stable, standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
who uses it?
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
dvipdfmx
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
powerful, developing
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
pdftex-compatible?
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
pdftex
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
de facto standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
too huge pdf
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
\backslash
\backslash
bottomrule %
\end_layout
\end_inset
\end_layout
\end_inset
|
\end_inset
\begin_inset ERT
status open
\begin_layout Standard
\backslash
let
\backslash
hline
\backslash
HLINEORIG
\end_layout
\end_inset
\end_layout
\begin_layout Subsection*
multirow
\end_layout
\begin_layout Standard
multirow 구현은 두 가지만 주의하면 된다.
\begin_inset Foot
status collapsed
\begin_layout Standard
preamble에
\family typewriter
\backslash
usepackage{multirow}
\family default
가 필요하므로 Document Settings, LaTeX Preamble을 확인할 것.
\end_layout
\end_inset
아래 row의 해당 cell을 multicolumn으로 하여 윗쪽 선을 지워주는 것, 그리고 아래 cell을 비워두고 위쪽 cell에
\family typewriter
\backslash
multirow
\family default
명령을 쓰는 것.
\end_layout
\begin_layout Center
\begin_inset Tabular
\begin_inset Text
\begin_layout Standard
multi
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
row
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
example
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
multirow{2}*{
\end_layout
\end_inset
아래 cell 비워둠
\begin_inset ERT
status collapsed
\begin_layout Standard
}
\end_layout
\end_inset
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
LaTeX
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
text + command
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
LyX
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
text + WYSIWYM
\end_layout
\end_inset
|
\end_inset
\end_layout
\begin_layout Standard
이 표를 그리기 위한 키조작을 정리하면,
\end_layout
\begin_layout Enumerate
먼저 3x3 표를 만들고,
\end_layout
\begin_layout Enumerate
(3,1) 셀에서 multicolumn 버튼을 누른다.
(3,1)=(row, column)
\end_layout
\begin_layout Enumerate
(3,1) 셀에서 마우스 right click, Border 에서 윗쪽 border line을 클릭하여 지운다.
\end_layout
\begin_deeper
\begin_layout Itemize
multicolumn 한 다음에 border line을 지워야 하는 까닭은, 이렇게 하지 않으면 그 row의 상단 라인이 모두 지워지기
때문이다.
특정 셀 상단 line만 지우려면 반드시 multicolumn 버튼을 누른 다음에 조작할 것.
\end_layout
\end_deeper
\begin_layout Enumerate
(2,1) 셀로 이동하여, Ctrl-L,
\family typewriter
\backslash
multirow{2}*{
\family default
, right, 텍스트 입력, Ctrl-L,
\family typewriter
}
\end_layout
\begin_layout Subsection*
multirow + multicolumn
\end_layout
\begin_layout Standard
다음 표는
\begin_inset LatexCommand url
target "http://faq.ktug.or.kr/faq/MultiRowPackage"
\end_inset
에 있는 예제와 같은 모양을 만들어본 것이다.
\family typewriter
multicolumn
\family default
과
\family typewriter
multirow
\family default
가 들어간 복잡한 예제인데, 처음에 이 표를 만들 때는 좀 고생하지만 익숙해지면 금방 편리해진다.
\end_layout
\begin_layout Center
\begin_inset Tabular
\begin_inset Text
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
multirow{2}*{
\end_layout
\end_inset
선택지들
\begin_inset ERT
status collapsed
\begin_layout Standard
}
\end_layout
\end_inset
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
multirow{2}*{
\end_layout
\end_inset
경우 1
\begin_inset ERT
status collapsed
\begin_layout Standard
}
\end_layout
\end_inset
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
multirow{2}*{
\end_layout
\end_inset
경우 2
\begin_inset ERT
status collapsed
\begin_layout Standard
}
\end_layout
\end_inset
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
고르시오
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
높음
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
낮음
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Standard
\backslash
multirow{3}*{
\end_layout
\end_inset
S
\begin_inset ERT
status collapsed
\begin_layout Standard
}
\end_layout
\end_inset
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
R
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
2
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
3
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
4
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
5
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
4
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
1
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
6
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
9
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
7
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
R
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
2
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
3
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
4
\end_layout
\end_inset
|
\begin_inset Text
\begin_layout Standard
5
\end_layout
\end_inset
|
\end_inset
\end_layout
\end_body
\end_document