
누군가 코드를 컴파일할 때 내 코드의 그림이 나타나지 않는 이유를 설명해 주시겠습니까? 감사합니다.
내 코드:
\documentclass{article}
\usepackage{tikz,hyperref,multicol,lipsum,geometry,titlesec,fancyhdr,amsmath,MnSymbol,wasysym,fleqn}%
\fancyhf{}% Clear all headers/footers
\renewcommand{\headrulewidth}{0pt}% No header rule
\renewcommand{\footrulewidth}{0.4pt}% No footer rule
\fancyfoot[L]{*\href{myemail}{\emph{myemail}}}%
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\titleformat{\section}
{\normalfont\fontsize{12}{15}\bfseries}{\thesection}{1em}{}
\geometry{margin=1in}
\title{Title}
\author{\textbf{myname}*}
\begin{document}
\maketitle
\begin{abstract}
Abstract
\end{abstract}
\begin{multicols}{2}
\thispagestyle{fancy}%
\section{Introdution}
some writing
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,
ylabel=$\mu(x)$
]
% invoke external gnuplot as
% calculator:
\addplot[smooth,samples=180,domain=0.0001:20] {1/(1+(1/x))};
\end{axis}
\end{tikzpicture}
\end{figure}
some writing
\end{multicols}
\end{document}
답변1
피규어 배치 위치가 너무 까다롭지 않다면 일반 twocolumn
물품과 abstract
패키지를 사용하는 훨씬 간단한 솔루션이 있습니다.
\documentclass[twocolumn]{article}
\usepackage{lipsum,mwe,abstract}
\title{Title}
\author{Author}
\begin{document}
\twocolumn[ % http://tex.stackexchange.com/a/28110
\maketitle
\begin{onecolabstract}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
\end{onecolabstract}
]
\saythanks
\section{One}
\lipsum[2-4]
\begin{figure*}[tbp]
\centering
\includegraphics[width=\columnwidth]{example-image-a}
\caption{A figure}
\end{figure*}
\end{document}