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>처럼 입력하시면 좋습니다.

Beamer에서 fontspec 사용

2012.12.16 11:41

TeX Addict 조회 수:18855

Beamer에서 XeTeX을 쓸 때 아래와 같이 \fontspec 명령이 작동하지 않는데 이것은 왜 그런 것인가요?


% !TEX TS-program = xelatex

% !TEX encoding = UTF-8 Unicode

%

% (c) 2008, Eung-Shin Lee

% public domain.

%

\documentclass[10pt,compress,slidetop,%

xcolor={svgnames},% sub-package options

t]{beamer}

% 이곳에서는 글씨체의 크기를 10 pt로 하였음,

% t는 본문 내용이 슬라이드의 위(top)부터 시작

%

% Beamer 저작권

% Copyright 2004 by Till Tantau <tantau@users.sourceforge.net>.

% and 2005-2006 by Jorg Cassens <jorg.cassens@idi.ntnu.no>

%

\mode<presentation> % 출력 양식을 프레젠테이션으로

{

\usetheme{Frankfurt} % 템플릿은 프랑크푸르트로

% 템플릿 종류:

% Antibes, Bergen, Berkerley, Berlin, Boadilla, Copenhagen, Darmstadt,

% Dresden, Frankfurt, Goettingen,

% Hannover, Ilmenau, JuanLesPins, Luebeck, Madrid, Malmoe, Marburg,

% Montpellier, PaloAlto, Pittsburgh, Rochester,

% Singapore, Szeged, Warsaw

%

\usecolortheme[named=olive]{structure} % 색상 결정

\usefonttheme[onlymath]{serif} % 수학공식에서 사용하는 글씨체

% \useoutertheme{infolines}

% or whatever

\setbeamercovered{transparent} % overlay 사용

% or whatever (possibly just delete it)

}

%================== 필요한 패키지 설정 ===============

\usepackage{verbatim}

\usepackage{pdfpages}

\usepackage{multimedia}

\usepackage{animate}

%

\usepackage{bm}% bold math

\usepackage{amsmath,amssymb,amscd}

\usepackage{subeqnarray}

\usepackage{mathptmx}

%

\usepackage{helvet}

\usepackage{courier}

\usepackage{relsize}

%

\usepackage{colortbl}

\usepackage{wasysym}

%

\usepackage{tikz}

\usetikzlibrary{arrows,shapes,calc,patterns}

\tikzstyle{every picture}+=[remember picture]

\usetikzlibrary{%

decorations.pathreplacing,%

decorations.pathmorphing%

}

% ================== 한글 사용 =====================

\usepackage[itemph]{xetexko-var}

%%% 입력파일이 UTF-8 인코딩이면 다음 행을 삭제하십시오.

%\XeTeXinputencoding=euc-kr

\setmainfont[Mapping=tex-text]{Minion Pro}

\setsansfont[Mapping=tex-text]{Myriad Pro}

\setkormainfont(나눔명조 Bold)(궁서){나눔명조}

\setkorsansfont(나눔고딕 Bold)(궁서){나눔고딕}

%==============================================

%

%================ dual screen =======================

%\setbeameroption{show notes on second screen=left}

%\setbeamertemplate{note page}[compress]

%==============================================

%

%================ 제목에 사용할 글씨체 설정 ==============

\setbeamerfont{title}{shape=\itshape,family=\rmfamily}

\setbeamerfont{frametitle}{family=\rmfamily}

%\usepackage[T1]{fontenc}

% Or whatever. Note that the encoding and the font should match. If T1

% does not look nice, try deleting the line with the fontenc.

%===============================================

%

%================== 표지 만들기 =====================

\title % (optional, use only with long paper titles)

{Beamer 프레젠테이션 활용}

\subtitle{\LaTeX 기초강좌 (2008년 가을, 공주대학교)}

\author{홍길동 } % 저자(발표자)

% Till Tantau\author{{1} \and

% J\"{o}rg Cassens\inst{2}

\institute[]% (optional, but mostly needed) 소속기관 약자 표기

{자신의 소속 기관} % 표지에 나타나는 소속기관 full name

% - Use the \inst command only if there are several affiliations.

% - Keep it simple, no one is interested in your street address.

\date[08-11-09]% (optional, should be abbreviation of conference name)

{} % 날짜 지정: \today

% - Either use conference name or its abbreviation.

% - Not really informative to the audience, more for people (including

% yourself) who are reading the slides online

\subject{Beamer}

% This is only inserted into the PDF information catalog. Can be left out.

% Delete this, if you do not want the table of contents to pop up at

% the beginning of each subsection:

%===============================================

%

% ==================== 차 례 ======================

\AtBeginSection[]

{

\begin{frame}<beamer>

\frametitle{차 례}

\tableofcontents[currentsection,hideallsubsections]

%\tableofcontents[currentsection,currentsubsections]

\end{frame}

}

%===============================================

%

%

%================== 본문 시작 ==========================

\begin{document}

%

%================= 표지를 화면으로 나타나기 ===========

\begin{frame}

\titlepage

\end{frame}

%===============================================

%

% ******************************

\section{Introduction}

%*******************************

%

%------------------------- 슬라이드 ------------------------

\begin{frame}

\frametitle{나의 살던 고향은}

\fontspec{맑은 고딕}{그 속에서 놀던 때가 그립습니다.}

\end{frame}

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

%

\end{document}

%==================== 본문 끝 = ===========================

번호 제목 글쓴이 날짜 조회 수
공지 Minimal Working Example을 첨부해주세요 [4] nanim 2015.06.23 230295
1253 업데이트된 패키지의 changes log를 한 번에 볼 수 있는 방법이 있나요? [1] 에드 2015.03.03 1350
1252 tkz-graph 패키지의 명령들을 한단어 명령어로 축약하기 [8] 커꿈 2015.02.27 5224
1251 Xe(La)TeX 설명 문서? [3] 궁금이 2015.02.25 1333
1250 리눅스에서 본고딕 사용 [13] Dennis 2015.02.23 1351
1249 [설치]Sorry, no translations available for ko_@% 메시지 [4] file mcpark 2015.02.24 1349
1248 thebibliography 생성 [10] 포스테키안 2015.02.23 3832
1247 tex 편집 화면에서 글씨색 구분관련.. [4] fortune 2015.02.05 3835
1246 align 식 간격 [2] file 하늘연 2015.02.22 1356
1245 xetexko에 hangul 옵션을 준 상태에서 수식의 줄간격을 줄이는법 [4] DBR 2015.02.17 1337
1244 안녕하세요 처음 사용하는데 에러가 납니다.. [1] 생초보 2015.02.17 1344
1243 ! pdfsync is patching the soul package [5] 궁금이 2015.02.16 1375
1242 expl3 문법연습중, 한 단어가 안먹는 현상+tikz와 expl3 [2] file 하늘연 2015.02.17 1350
1241 글자아래에 줄임표(....)를 어떻게 만드나요? [1] file 이재철 2015.02.16 1332
1240 amsart.cls에서 title에 한글을 쓰려면 어떻게 해야하는지요? [3] mltsr 2015.02.16 472800
1239 kotex 사용시 타자폰트 크기를 변경하고 싶습니다. [1] file pahkey 2013.07.16 6420
1238 그래프나 그림은 무엇으로 만드시나요?? [15] 2012.05.08 10230
1237 LaTeX 으로 만든 pdf를 주석을 달 수 있도록 할 수 있나요? [1] aeronova 2011.04.07 14205
1236 tex 핸드북 책이 있었으면 합니다. [1] tex_초보자 2015.02.13 1349
1235 amsmath 넣으면 ?로 멈추고 r누르면 실행은 되는데 바로 되는방법 없나요? [3] file 북이북이 2015.02.11 1755
1234 File `res.cls' not found 문제 [3] CV 2014.10.23 2088



XE Login