Q&A 마당은 텍 관련 질문/답변을 위해 만들었습니다.

  • 로그인 없이 자유롭게 글을 읽고 쓸 수 있는 철학은 처음과 같이 계속됩니다.
  • 질문 전에 아래를 읽어 보세요. 좋은 질문이 좋은 답을 받을 수 있는 좋은 방법입니다.
    • 질문에 맞는 제목을 붙이세요. 질문의 내용과 관련없는 "고수님", "긴급질문", "도와주세요"와 같은 제목은 답이 잘 올라오지 않습니다. 이 게시판에 올라오는 모든 글은 질문입니다. 굳이 [질문], [Q]를 적으실 필요도 없습니다.
    • 내용을 충실히 적어 주시고, 같은 상황을 재현할 수 있는 최소한의 예제가 같이 있어야 합니다.
    • 최소 예제는 "Minimal working example"을 읽어 보세요.
  • 파일을 첨부하실 때에는 가능한 압축하여 파일 크기를 줄여서 올려주시길 바랍니다.
  • 개인적으로 사용하신 글꼴이 들어 있는 경우, preparefont.sty에 관한 답변을 참조하세요.
  • 스팸 글을 막기 위하여 짧은 시간 내에 다시 글이 등록되는 IP를 막거나, 광고 글을 막기 위하여 금지어로 .com, .net 등을 설정하고 있습니다. 다소간의 불편함이 있으시더라도 양해 바랍니다.
    • 금지어에서 stackexchange, stackoverflow, ctan, overleaf, , github, google.com, gmail.com, .org, .io, sil.org, wiki.com, tistory.com등은 해제하였습니다.
  • MathJax를 이용한 수식조판을 사용하실 수 있습니다. 여기를 참조하세요.
  • 사용하는 편집기는 CKeditor입니다.
    • 편집기에서 [enter]를 누르면 <p> 태그가 들어가고, 문단으로 생각하고 한 줄을 비웁니다.
    • 글줄만 바꾸려면 [shift-enter]를 누르면 <BR> 태그가 들어가므로 용도에 맞게 나누어 쓸 수 있습니다.
    • 수식를 문서내에 삽입하시려면 에디터를 툴바에서 [소스]를 눌러 HTML로 입력할 수 있게 바꾸신 후 <pre> </pre> tag를 사용하셔서 <pre> 여러 줄의 수식 </pre>처럼 입력하시면 좋습니다.
% Command to store the current chapter image to use for all future chapters, can be changed any time in the document and can be empty
\newcommand{\thechapterimage}{}
\newcommand{\chapterimage}[1]{\renewcommand{\thechapterimage}{#1}}

% Command to store the current whitespace above the chapter title box for all future chapters, can be changed at any time in the document
\newcommand{\thechapterspaceabove}{}
\newcommand{\chapterspaceabove}[1]{\renewcommand{\thechapterspaceabove}{#1}}

% Command to store the current whitespace below the chapter title box for all future chapters, can be changed at any time in the document
\newcommand{\thechapterspacebelow}{}
\newcommand{\chapterspacebelow}[1]{\renewcommand{\thechapterspacebelow}{#1}}

% Command to output the chapter title with optional background image
\newcommand{\outputchaptertitle}[2]{
\begin{tikzpicture}[remember picture,overlay]
% If a chapter image has been specified
\expandafter\ifstrequal\expandafter{\thechapterimage}{}{}{
% Output the chapter image
\node[
anchor=north west, % Anchor point on the image
inner sep=0pt, % Inner padding
] at (current pageorth west) {\includegraphics[width=\paperwidth]{\thechapterimage}};
}
% Box with the chapter title
\draw[anchor=west] (current pagerth west) node [
anchor=north west, % Anchor point of the chapter box
xshift=\Gm@lmargin, % Horizontal distance from the left side of the page
yshift=-\thechapterspaceabove, % Vertical distance from the top of the page
line width=2pt, % Border line thickness
rounded corners=10pt, % Rounded corners amount
draw=ocre, % Border line color
fill=black!5, % Box background color
fill opacity=0.6, % Background transparency
text opacity=1, % Text transparency
inner ysep=12.5pt, % Inner vertical padding
inner xsep=20pt, % Inner horizontal padding
align=flush left, % Text alignment inside box
text width=1.2\linewidth, % Box width (wider than page to go off the right side)
font=\huge\sffamily\bfseries, % Font styling for chapter title
] {\parbox{0.85\linewidth}{\strut\raggedright\expandafter\ifstrequal\expandafter{#1}{}{}{#1. }#2\vspace{-3pt}}}; % Chapter title in a fixed width box for wrapping
\end{tikzpicture}
}

% Numbered chapters
\titleformat
{\chapter} % Section type being modified
[block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame
{\outputchaptertitle{\thechapter}{#1}} % Format of the whole section
{} % Format of the section label
{0cm} % Space between the title and label
{} % Code before the label
[] % Code after the label

% Unnumbered chapters
\titleformat
{name=\chapter, numberless} % Section type being modified
[block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame
{\outputchaptertitle{}{#1}} % Format of the whole section
{} % Format of the section label
{0cm} % Space between the title and label
{} % Code before the label
[] % Code after the label
\titlespacing*{\chapter}{0pt}{0pt}{\thechapterspacebelow} % Spacing around section titles, the order is: left, before and after

%-------------------------------------------

\titleformat
{\section} % Section type being modified
[block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame
{\bfseries\sffamily\Large} % Format of the whole section
{\llap{\textcolor{ocre}{\thesection}\hspace{1em}}#1} % Format of the section label
{0cm} % Space between the title and label
{} % Code before the label
[] % Code after the label

\titleformat
{name=\section, numberless} % Section type being modified
[block] % Shape type, can be: hang, block, display, runin, leftmargin, rightmargin, drop, wrap, frame
{\bfseries\textsf\Large} % Format of the whole section
{#1} % Format of the section label
{0cm} % Space between the title and label
{} % Code before the label
[] % Code after the label

\titlespacing*{\section}{0pt}{12pt}{6pt} % Spacing around section titles, th

현재 위 코드를 이용하여 책을 쓰려고 하고 있습니다.

하지만, 한글을 넣을 때는 볼드체로 되지 않더라고요. (챕터, 섹션 이름을 넣을 때)

\bfseries\sffamily 부분이 글자체와 볼드를 결정해주는 것 같아서 이것저것 해보지만 잘 안됐습니다.

1. \textbf는 되지 않습니다.
2. \sffamily를 지우면 명조체가 되고 볼드가 됩니다. 하지만, 저는 산세리프체로 한글이 쓰이길 원합니다.

legrand-orangebook

이 템플릿을 사용해서 쓰고 있습니다. (림크 청부가 안되네요..)

도와주시면 감사하겠습니다 ㅠ

*현재 한글을 kotex롤 넣어 쓰고 있습니다.

번호 제목 글쓴이 날짜 조회 수
공지 Minimal Working Example을 첨부해주세요 [4] nanim 2015.06.23 230448
2801 설치도움 [3] kdu 2011.03.24 8487
2800 Theorem에 테두리를 둘렀습니다. 그런데... [9] puzzlist 2011.03.24 13981
2799 beamer 프레젠테이션에서 이전 페이지를 참조할때 어떤 방법이 가장 좋을까요? [9] 발내 2011.03.25 10069
2798 TnX텍으로만으로 텍으로 작성된 문서 PDF으로 볼수 있나요 [1] 왕초보 2011.03.25 8284
2797 pdf 파일 변환에 문제가 있습니다. [1] 양희준 2011.03.27 8302
2796 자동조사 [1] yihoze 2011.03.28 7904
2795 문서의 차례 생성과 관련된 문의입니다. [5] file 조군 2011.03.28 8512
2794 인터넷 웹에서 사용하는 방법이 있나요 [1] 왕초보 2011.03.28 8321
2793 A <-----------------> B 처럼 나타내려면? [3] IHSV 2011.03.28 8319
2792 pdf graph [3] file cahn 2011.03.29 8465
2791 2단 배열에서 각주문제 [1] file 굿잡 2011.03.29 10131
2790 Table 가로가 합쳐진 모양으로 그리려면? [2] file 곰돌이 2011.03.29 10647
2789 일부만 다단을 하고 싶다면? [1] mini 2011.03.29 17813
2788 enumerate 쓸때 item 순번의 모양을 어떻게 바꾸나요? [1] enum 2011.03.29 9648
2787 Tex Live Maneger 2010을 이용하여 업데이트한 뒤에 texworks가 실행되지 않습니다. [10] typos 2011.03.29 16147
2786 MacTeX 한글환경설치 도와주세요 [3] mytwin323 2011.03.30 12912
2785 mathjax의 사용 [4] kangbada 2011.03.31 10977
2784 theorem 번호부분 수정 [2] file 김종열 2011.03.31 11089
2783 Lyx1.6.8 Error [1] file sookibae 2011.03.31 14478
2782 입력하는 부분의 변경 부탁드립니다. [1] file 김종열 2011.04.02 9831



XE Login