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 230455
2883 첨부사진이 제대로 된건가요? [1] file 문수 2024.05.06 100
2882 tex 설치 오류 [3] file 설치 초보 2024.05.08 100
2881 절에 해당하는 toc 넣기 질문(minitoc) [3] file 하늘땅 2023.11.15 101
2880 Lyx에서 갑지기 그래픽 파일 업로드가 안되요 (Mac OS Ventura 업그레이드후) [4] seongwuk 2023.11.25 101
2879 eqnarray 환경에 대한 질문 [3] file moscow 2023.09.22 102
2878 labeling 리스트의 itemsep 조정 [6] 판돌이 2024.04.25 105
2877 그림과 캡션의 크기가 커서 예쁘게 배열이 어렵습니다. [1] 눈언덕 2023.12.07 107
2876 kswrapfig에서 캡션의 위치 [5] file 판돌이 2022.12.08 108
2875 l3regex 정규식 패턴으로 매크로를 사용할 때 \c를 사용해야 되는 이유? [7] Zeta 2023.11.22 108
2874 \ref로 작성한 링크가 잘 동작하지 않습니다 [4] file byunss 2024.04.07 108
2873 사설 package 설정 요약좀 부탁해요 [2] 문수 2024.04.16 110
2872 TeXStudio가 영어로 설정이 안됩니다. [2] rule 2022.12.26 112
2871 magin을 침범한 figure [3] file 판돌이 2023.01.16 112
2870 babel, csquotes, 그리고 kotex이 만났을 때 [4] yihoze 2023.01.03 114
2869 Tex Live 2024 설치시 "Locale 'Korean_Korea.949' is unsupported" warning은 해결 안됩니까? [1] file 2024.05.12 114
2868 각주의 표지 모양 바꾸기 [3] file 판돌이 2023.01.26 116
2867 \therefore는 아닌 ⁂ 찍기 [2] 판돌이 2023.01.07 117
2866 pgfplots로 그린 좌표에서 격자를 표시하는 방법을 여쭙습니다. [2] 고양이 2023.02.04 117
2865 enumerate 환경 사용할 때 \ref 링크가 작동을 안 합니다 [1] file byunss 2023.12.06 117
2864 texshop에서 여러 문장을 탭을 이용하여 한 번에 이동시키는 기능이 있나요? [2] file 남박사 2022.10.21 118



XE Login