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 230445
2799 상하단 면주 (header, footer) 의 튀어나옴 조절 [3] file ym 2011.07.23 25924
2798 일본어 장음 부호가 조판되지 않습니다 [3] file hjg 2013.10.31 25751
2797 목록 numbering style [1] xelloss 2013.08.23 25395
2796 한페이지내에서 위에는 figure, 밑에는 table 어떻게 넣을 수 있나요? [2] file Tony 2011.03.01 25265
2795 Acrobat Reader에서 입력 가능하면서 저장도 가능한 pdf를 만들려면... [2] teolsuk 2013.08.24 25192
2794 문서 중간에서의 줄간격 조절 [5] Hyuk 2011.03.02 25174
2793 인용없이 bibtex 컴파일 하는 법 [6] sereneturing 2011.02.12 25027
2792 나눔 명조 OTF 글꼴을 LaTeX에서 사용하시는데 문제가 없으신가요? [2] 정달영 2012.09.13 24957
2791 TikZ 으로 그림을 그리는데 scale 명령으로 글자크기는 조절하지 못하는지요? [6] 잠심 2012.12.02 24947
2790 업데이트할 때마다 에러가 걸립니다. [7] file 이용규 2011.03.09 24760
2789 oblivoir와 obeylines 또는 obeyspaces [3] ischo 2013.12.15 24745
2788 반복적인 명령어의 사용방법은? [1] yoonju 2011.02.07 24701
2787 File `kotex.sty' not found. [2] 초보 2019.07.09 24662
2786 subfigure 쓸 때 그림 사이의 margin 줄이는 법을 알고 싶습니다. [2] file 한가인 2011.07.29 24614
2785 맥os의 kotex과 한글처리 [4] chomc 2011.02.13 24597
2784 TeX Live 2013 설치 실패시 이어서 계속 설치하는 방법? [5] file 궁금이 2013.09.04 24504
2783 toc 꾸미기 [5] file 에드 2011.02.09 24480
2782 TeX 기본적인 질문입니다.. [2] revtex 2011.07.27 24262
2781 문장 전체 들여쓰기하는 방법 알려주세요. [4] file Song 2011.02.27 24241
2780 mactex 2013에서 texworks 뷰어 한글 문제 [5] darkstar 2013.10.10 24203



XE Login