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

tikz 이용시 변경사항 질문드립니다.

2013.12.14 22:19

최강 조회 수:2683

질문 드립니다.

아래의 소스로 컴파일하면

 

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%새로추가부분

\usepackage{color}

\definecolor{shadecolor}{gray}{.85}

\usepackage{tikz}

\usetikzlibrary{calc,matrix,arrows,decorations.pathmorphing,through,shadows,shapes}

\usepackage{xkeyval}

\makeatletter

\define@key{boxedtheorem}{titlecolor}{\def\titlecolor{#1}}

\define@key{boxedtheorem}{titlebackground}{\def\titlebackground{#1}}

\define@key{boxedtheorem}{background}{\def\background{#1}}

\define@key{boxedtheorem}{titleboxcolor}{\def\titleboxcolor{#1}}

\define@key{boxedtheorem}{boxcolor}{\def\boxcolor{#1}}

\define@key{boxedtheorem}{thcounter}{\def\thcounter{#1}}

\define@key{boxedtheorem}{size}{\def\size{#1}}

\presetkeys{boxedtheorem}{titlecolor = black, titlebackground = white, background = white, titleboxcolor = black, boxcolor = black, thcounter=, size = 1.0\textwidth}{}

\makeatother

\newcommand{\mycolor}[1][]{%

\setkeys{boxedtheorem}{#1}

\tikzstyle{fancytitle} =[draw=\titleboxcolor, rounded corners, fill=\titlebackground, text= \titlecolor]

\tikzstyle{mybox} = [draw=\boxcolor, fill=\background, very thick, rectangle, rounded corners, inner sep=10pt, inner ysep=7pt]

}

%Commande générique pour faire un joli encadré

\newsavebox{\tempbox}

\newcommand{\mytitle}{제목}

\newenvironment{myframe}[2][]%

{%

\renewcommand{\mytitle}{#2}

\mycolor[#1]

\begin{lrbox}{\tempbox}%

\begin{minipage}[!h]{\size}\vspace{5pt}

}%

{%

\end{minipage}

\end{lrbox}

\begin{center}

\begin{tikzpicture}

\node [mybox] (box){\usebox{\tempbox}};

\node[fancytitle, right=10pt] at (box.north west) {\mytitle};

\end{tikzpicture}

\end{center}

}

\makeatletter

\newcounter{mythm}

\setcounter{mythm}{0}

\counterwithin{mythm}{section}

\def\theoremfont{\itshape}

\newcommand{\newboxedtheorem}[4][]{%

\mycolor[#1]%

\newenvironment{#2}[1][]{%

\begin{myframe}[#1]{%

\refstepcounter{mythm}%

\textbf{#3\ \themythm}%

\@ifnotempty{##1}{%

(##1)}\textbf{.}}%

\theoremfont }%

{%

\end{myframe}

}

}

\makeatother

\newboxedtheorem[boxcolor=blue, background=blue!5, titlebackground=blue!20, titleboxcolor = black]{Theorem}{\Large{실전연습}}{thm}

\newboxedtheorem[boxcolor=blue, background=blue!5, titlebackground=blue!20, titleboxcolor = black]{Corollary}{따름정리}{thm}

\newboxedtheorem[boxcolor=blue, background=blue!5, titlebackground=blue!20, titleboxcolor = black]{Lemma}{보조정리}{thm}

\newboxedtheorem[boxcolor=orange, background=green!5, titlebackground=green!20, titleboxcolor = black]{Definition}{정의}{def}

\newtheorem{oldTheorem}{정리}[chapter]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%새로 추가부분

 

 

 

 

 

 

 

 

 

캡처.JPG

 

 

 

와 같이 나옵니다. 위의 결과에서

"실전연습 1절.1." 을   "실전연습 .1번."으로 바꾸려면 어떤것을 조정하여야 하나요?

미리 감사합니다.

 

 

번호 제목 글쓴이 날짜 조회 수
공지 Minimal Working Example을 첨부해주세요 [4] nanim 2015.06.23 230450
1321 한글 글꼴 변경 질문입니다. [3] ㅁㄴㅇㄹ 2016.01.09 2157
1320 특정 그림 cation 넘버 삭제를 하려면 [3] 처음처럼 2016.01.13 1345
1319 표지를 이런 디자인으로 해보고싶은데.. 어디부터 손대야 할까요? [4] file 불량양파 2016.01.15 1357
1318 논리기호 논리합/조건/쌍조건 이런것들 크기를 같게 할 수 없나요? [1] 궁금이 2016.01.17 1352
1317 kotex설치및 한글깨짐현상 [2] file 두치님 2016.01.19 79158
1316 그림을 정렬하고 싶은데 명령어를 찾아도 없습니다... [4] file 함냐 2016.01.21 1347
1315 latex+dvips+pspdf 어떻게 추가하는 건가요? [3] 초보 2016.01.21 1367
1314 latex3를 써 보려고 하는데 xkeyval과 상성이 안 맞는 건지... [6] file Dennis 2016.01.23 18070
1313 윈도우 texlive 설치 후 vim의 키조합으로 사용하는 법(teXworks 설치하였습니다.) [2] 문의 2016.01.26 1368
1312 현재 위치에서 바닥까지 거리를 알려면? [2] file yihoze 2016.01.26 1348
1311 chapter 스타일에 대한 질문입니다. [3] file 불량양파 2016.01.26 1353
1310 조판이 안되는 문제. [4] file D.S 2016.02.01 1358
1309 xelatex에서 한자가 나오지 않습니다. [5] file sckang 2016.02.03 1371
1308 오늘(2016년 2월 7일) 업데이트 후 에러 문제.... [3] file 처음처럼 2016.02.07 1360
1307 lualatex 관련 질문 드립니다. [1] file 에드 2016.02.09 1353
1306 테이블 캡션에 대하여 [9] file 처음처럼 2016.02.12 20375
1305 추천하실 tex 문서 에디터는 ? [4] 처음처럼 2016.02.14 1458
1304 각 페이지의 머리글 간격과 글자 크기 조정을 어떻게 하나요? [7] file 산수좋아 2016.02.16 1589
1303 ${}_{n}P_{r}$ 라 쓰면 P가 기울려져 나옵니다. 이를 기울리지 않게 나오려면 어떻게 하면 되나요? [2] 김성균 2016.02.18 1355
1302 본문에는 반영되지 않지만 차례에는 나오는 section명령은 없나요? [6] 이재철 2016.02.20 1353



XE Login