KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당

왜그런지는 잘 모르겠으나 다음과 같이 해서 피해나가긴 했습니다.


\documentclass[11pt,microtype]{oblivoir}  

\usepackage{amsmath, amssymb}

\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[scale=.5]

% 포물선 의도였으나 x(-) 영역에서 원하지 않은 결과 얻어짐. (TeX Live 2009 에서는 원하는 결과 얻음)

\draw[->] (-2.5, 0)--(2.5, 0) node[below]{$x$};

\draw[->] (0, -4.5)--(0, 4.5) node[left]{$y$};

\draw[smooth, samples=200, domain=-2:2] plot(\x, {(\x)^2})node[above]{$y=x^2$};  


\begin{scope}[xshift=7cm]

% 지수함수 의도였으나 x(-) 영역에서 원하지 않은 결과 얻어짐. (TeX Live 2009 에서는 원하는 결과 얻음)

\draw[->] (-2.5, 0)--(2.5, 0) node[below]{$x$};

\draw[->] (0, -4.5)--(0, 4.5) node[left]{$y$};

\draw[smooth, samples=150, domain=-2:2] plot(\x,{exp(ln(2) * \x)}) node [above] {$y=2^x$};  

\end{scope}

\end{tikzpicture}

\end{document}


2^\x 는 뭔가 버그가 있는 것은 아닌지...

{}로 묶는 것은 아마 예전보다 복잡해지면서 제대로 묶지 않는 경우 구별하기 힘든 부분이 생긴 것이 아닐지?

KTUG 한국 텍 사용자 그룹