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 229569
2782 MacTeX 설치 오류 [1] lhw3201 2023.02.21 146
2781 tikz 에서 주어진 내용을 다음 바꾸면 오류가 납니다. [2] 고양이 2023.02.13 142
2780 pdf 파일이 화면상에 다음과 같이 나올 때 [1] file 천국왕자 2023.02.11 146
2779 Mac Tex 설치 시 오류가 있어 질문드립니다. [2] Tex 초보 2023.02.10 128
2778 맥북에서 latex 설치 질문 [1] 매쓰홀릭 2023.02.11 223
2777 pgfplots로 그린 좌표에서 격자를 표시하는 방법을 여쭙습니다. [2] 고양이 2023.02.04 108
2776 홀짝이 어긋나는 챕터스타일/페이지스타일 [7] file Kriss 2023.02.01 129
2775 tstextbook 클래스에서 [1] file 2023.01.29 130
2774 Doxygen 과 MikTex 4.8를 사용하여 PDF문서화 할 때 한글 지원 문제 [3] latex 초보 2023.01.30 251
2773 obchaptertoc의 part pagestyle [3] file Kriss 2023.01.25 116
2772 각주의 표지 모양 바꾸기 [3] file 판돌이 2023.01.26 106
2771 toc의 위쪽에 있는 여백 [2] file 판돌이 2023.01.23 75
» section과 title에서 한글 산세리프체를 볼드체로 쓰기 [2] 고양이 2023.01.16 203
2769 toc와 본문 사이의 빈 페이지 [4] file 판돌이 2023.01.17 142
2768 tikz 그림에서 레이블을 특정부분부터 나오게 하고 싶습니다. [2] file 고양이 2023.01.18 86
2767 magin을 침범한 figure [3] file 판돌이 2023.01.16 93
2766 tikz에서 def명령어 사용시 에러가 납니다. [2] 고양이 2023.01.13 383
2765 MikTex 첫 이용 중 문의. [2] file 처음해봅니다 2023.01.12 108
2764 줄바꿈 되는 verb [2] yihoze 2023.01.06 127
2763 Amazon EC2 호스팅에서 yum으로 TeXLive 2013 설치 후 kotex.sty not found [4] asdhi 2023.01.08 202



XE Login