KTUG마당은 KTUG를 방문하는 모든 이용자가 대화를 나누고 소식을 전하는 곳입니다.

  • 로그인 없이 자유롭게 글을 읽고 쓸 수 있는 철학은 처음과 같이 계속됩니다.
  • Team Blog의 글을 이곳 게시판의 "정보글"로 모았습니다. Team blog는 기고자가 올린 글에 질문을 받는 부담을 줄이기 위하여 댓글을 허용하지 않았습니다. 그러나 이곳 게시판으로 모으면서 댓글을 달 수 있습니다. 게시물을 작성하실 때 댓글을 원하지 않으시면 댓글을 허용하시지 않으시기를 바랍니다. 또한 불필요한 소모성 댓글을 달지 않도록 주의하여 주시기를 바랍니다.
  • TeX과 관련된 질문이나 답변은 QnA 마당을 이용하십시오. TeX과 관련된 질문은 지웁니다
  • MathJax를 이용한 수식조판을 사용하실 수 있습니다. 여기를 참조하세요.
  • 스팸 글을 막기 위하여 짧은 시간 내에 다시 글이 등록되는 IP를 막거나, 광고 글을 막기 위하여 금지어로 .com, .net 등을 설정하고 있습니다. 다소간의 불편함이 있으시더라도 양해 바랍니다.
    • 금지어에서 stackexchange, stackoverflow, ctan, overleaf, , github, google.com, gmail.com, .org, .io, sil.org, wiki.com, tistory.com등은 해제하였습니다.
  • 사용하는 편집기는 CKeditor입니다. 편집기에서 [enter]를 누르면 <p> 태그가 들어가고, 문단으로 생각하고 한줄을 비웁니다. 글줄만 바꾸려면 shift-enter 를 누르시면 <BR>가 들어가므로 용도에 맞게 나누어 쓸 수 있습니다.

자유글 목록 라벨 형식 바꾸기

2016.03.28 10:58

yihoze 조회 수:5187

http://www.ktug.org/xe/index.php?document_srl=217948&mid=KTUG_QnA_board


이 글타래에서 불량양파님이 제기한 문제가 description 목록과 다르지 않다는 생각이 들었습니다. 이것은 전에 제가 만들어둔 terms 환경으로 충분히 구현됩니다. 라벨 형식을 임의로 변경할 수 있게 해주는 패키지들이 있습니다. mdwlist, enumitem 등이지요.

그런데 description 목록에 대해서는 한국적(?) 정서를 충족시키지 못합니다. 많은 사람들이 description 목록에서도 총알(bullet)이나 표처럼 설명부가 정렬되기를 원하죠. 그래서 mdwlist 같은 목록 관련 패키지들이 훌륭한데도 2% 부족함을 느끼게 됩니다.


오늘 terms 환경에 multiline 옵션을 추가했습니다. 사실 저는 프리미티브 명령이나 변수들 잘 모릅니다. 프로그래밍으로 치자면, 비유가 적절한지 모르겠지만, 드라이버 수준에서 만드는 거 잘 모르고 재미도 못 느낍니다. 저는 남들이 만들어 놓은 것들을 모방해서 애플리케이션 수준으로 만드는 것만 합니다. 


각설하고, terms 환경으로 이렇게 만들 수 있습니다.


hzguide_terms_multiline.PNG


\documentclass{hzguide}
\LayoutSetup{paper=A4}
\def\foo{
You can also click the left mouse button to move point to the position clicked. Emacs also
provides a variety of additional keyboard commands that move point in more sophisticated
ways.
\begin{terms}
\item[C-f]  Move forward one character (\texttt{forward-char}).
\item[LEFT RIGHT] This command (\texttt{right-char}) behaves like \texttt{C-f}, 
with one exception: when editing
right-to-left scripts such as Arabic, it instead moves \textit{backward} if the current
paragraph is a right-to-left paragraph. See Section 19.19 [Bidirectional Editing],
page 197. If \texttt{visual-order-cursor-movement} is non-\texttt{nil}, this command
moves to the character that is to the right of the current screen position, moving
to the next or previous screen line as appropriate. Note that this might potentially
move point many  buffer positions away, depending on the surrounding
bidirectional context.
\item[C-b] Move backward one character (\texttt{backward-char}).
\item[LEFT] This command (\texttt{left-char}) behaves like \texttt{C-b}, 
except it moves \textit{forward} if the
current paragraph is right-to-left. See Section 19.19 [Bidirectional Editing],
page 197. If \texttt{visual-order-cursor-movement} is non-\texttt{nil}, this command moves
to the character that is to the left of the current screen position, moving to the
previous or next screen line as appropriate.
\end{terms}
}
\begin{document}
\TermsSetup{font=\ttfamily, base={LEFT RIGHT}}
\foo
\TermsSetup{font=\sffamily, multiline=true, labelwidth=1.5cm}
\foo
\TermsSetup{font=\bfseries, multiline=false, newline=true, topsep=.5\baselineskip, itemsep=1ex}
\foo
\end{document}

오늘 구현한 것이 multiline 옵션입니다. 라벨을 두 줄 이상 표현할 필요가 있는 경우를 위하여 이 옵션을 추가했습니다. 이 예에서 "LEFT RIHGT"입니다.


혹시나 이를 테스트해 보고 싶으시다면 깃허브에서 hzguide.cls를 내려받으세요.


https://github . com/YiHoze/HzGuide/

번호 제목 글쓴이 날짜 조회 수
1124 [알림] 홈페이지 리뉴얼과 게시판 변경에 관하여 [4] 관리자 2010.12.23 322180
1123 제주 전용서체 [5] file Progress 2010.06.15 218014
1122 원숫자 file yihoze 2014.01.02 216052
1121 [공지] ko.TeX Live 2010 발표 [11] 관리자 2010.11.07 189408
1120 ko.TeX Live 2013 배포 [6] file 관리자 2013.10.12 175070
1119 한글텍사용자그룹/한국텍학회 웹 사이트 및 서비스 복구에 관한 말씀 관리자 2013.05.06 160062
1118 TeX Live 2016 pretest 설치 안내 [11] 관리자 2016.06.05 150696
1117 [공지] ko.TeX Live 2009 발표 [9] MadToad 2009.12.23 150473
1116 TeX의 수명이 긴 이유 그리고 널리 쓰이지 않는 이유 [45] 메타 2010.06.02 147965
1115 [공지] ko.TeX Live 2011 발표 [9] 관리자 2011.07.29 144678
1114 MathJax를 이용하여 웹에서 수식을 써 봅시다 [27] file 샘처럼 2010.12.29 142605
1113 [공지] お知らせ: TeXユーザの集い 2010 開催予定 (10/23土@東大生研) [1] ChoF 2010.02.01 137861
1112 An Earthshaking Announcement [6] 작은나무 2010.07.12 131469
1111 기존 회원이 아닌데 회비를 납부하신 분 [1] yihoze 2019.12.13 128816
1110 prologue vs preamble vs preface vs foreword 는 무슨 차이인가요? [4] 에드 2011.02.23 128552
1109 TeX Live 2010을 대비한 ko.TeX 프리테스트 [14] DohyunKim 2010.07.14 127987
1108 TeX Live 2013과 ko.TeX 설치 관련 안내 [11] 관리자 2013.09.01 126173
1107 [공지] 한국텍학회 회비를 입금한 분들 중 회원 미등록자 분들께 [7] 관리자 2011.10.20 123303
1106 (ko.) TeX Live 2014 설치를 권장합니다. [37] nanim 2014.07.14 121996
1105 한글 url 문제 [3] file noname 2020.03.08 121923



XE Login