[Tex/LaTex] Problem with inserting images in poster

graphicsposters

I'm having trouble inserting a graphic in a poster I am trying to create. The graphic appears but with unwanted text next to it. Please see pictureThe "domainSL2(Z).pdfdomainSL2(Z).pdf" is not supposed to show up

I am using the command \includegraphics{}. Additionally, I have a graphic coded in tikz that will not appear at all on my poster. Thank you for any info.

EDIT: As requested, I have included the packages and code I am using.

\documentclass[a0,landscape]{a0poster}

\usepackage{multicol} % This is so we can have multiple columns of text side-by-side
\columnsep=100pt % This is the amount of white space between the columns in the poster
\columnseprule=3pt % This is the thickness of the black line between the columns in the poster

\usepackage[svgnames]{xcolor} % Specify colors by their 'svgnames', for a full list of all colors available see here: http://www.latextemplates.com/svgnames-colors

\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\usepackage{latexsym}
\usepackage{times} % Use the times font
%\usepackage{palatino} % Uncomment to use the Palatino font
\usepackage[T1]{fontenc}
\usepackage{etoolbox}
\usepackage{graphicx} % Required for including images
\graphicspath{{figures/}} % Location of the graphics files
\usepackage{booktabs} % Top and bottom rules for table
\usepackage[font=small,labelfont=bf]{caption} % Required for specifying captions to tables and figures
\usepackage{amsfonts, amsmath, amsthm, amssymb} % For math fonts, symbols and environments
\usepackage{wrapfig} % Allows wrapping text around tables and figures

\newtheorem{theorem}{Theorem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}[theorem]{Definition}
\newcommand{\qq}{\mathbb Q}
\newcommand{\pp}{\mathbb P}
\newcommand{\nn}{\mathbb N}
\newcommand{\zz}{\mathbb{Z}}
\newcommand{\rr}{\mathbb{R}}
\newcommand{\ff}{\mathbb{F}}
\newcommand{\fx}{\mathbb{F}[x]}
\providecommand{\GL}{\operatorname{GL}}
\providecommand{\SL}{\operatorname{SL}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\F}{\mathcal{F}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\h}{\mathbb{H}}
\DeclareMathOperator{\im}{Im}
\DeclareMathOperator{\re}{Re}
\DeclareMathOperator{\id}{id}

\newcommand{\comments}[1]{\textcolor{blue}{(#1)}}

\begin{document}

%some written text here

\section*{Preliminaries}

%more text

Under the action of $ \SL_2(\Z) $ (or $ \Gamma_0(N) $) we can define the fundamental domain $ \F $ (or $ \F_N $) to be the set of all equivalence classes in the quotient.

\begin{minipage}{\linewidth}

\includegraphics{fundamental domain SL2(Z).pdf}
\includegraphics{fundamental domain gamma0(6).pdf}

\end{minipage}

%text, below is the tikz code that will not appear

\begin{figure}[h]
\centering
\begin{tikzpicture}[x=5cm,y=.3cm]
    \draw[black, thick] (-.5, 24/pi+1.25) -- (.5, 24/pi+1.25)node[right] {$\im(z)=\frac{24}{\pi}+c_n^{-\frac{1}{176}}$};

\draw[black, thick] (-.5, 24/pi+4.75) -- (.5, 24/pi+4.75)node[right] {$\im(z)=\frac{24}{\pi}+c_n^{-\frac{1}{240}}$};

\draw[black, thick] (-.5, 30.5) -- (.5, 30.5)node[right] {$\im(z)=\frac{\sqrt{c_n}}{12}$};

%there is more code but I am ommiting it.

\end{tikzpicture}

%\caption{}
\end{figure}

\end{document}

Best Answer

LaTeX can't handle spaces in filenames, so using appropriate filenames should solve your problem. Below is a more minimal example based on your code.

\documentclass[a0,landscape]{a0poster}
\usepackage{amsfonts, amsmath, amsthm, amssymb} % For math fonts, symbols and environments
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}

\providecommand{\SL}{\operatorname{SL}}
\newcommand{\F}{\mathcal{F}}
\newcommand{\Z}{\mathbb{Z}}
\DeclareMathOperator{\im}{Im}
\DeclareMathOperator{\re}{Re}
\begin{document}
%some written text here
\section*{Preliminaries}
%more text
Under the action of $ \SL_2(\Z) $ (or $ \Gamma_0(N) $) we can define the fundamental domain $ \F $ (or $ \F_N $) to be the set of all equivalence classes in the quotient.

\begin{minipage}{\linewidth}
\includegraphics{example-image-a}
\includegraphics{example-image-b}
\end{minipage}
%text, below is the tikz code that will not appear
\begin{figure}[h]
\centering
\begin{tikzpicture}[x=5cm,y=.3cm]
    \draw[black, thick] (-.5, 24/pi+1.25) -- (.5, 24/pi+1.25)node[right] {$\im(z)=\frac{24}{\pi}+c_n^{-\frac{1}{176}}$};

\draw[black, thick] (-.5, 24/pi+4.75) -- (.5, 24/pi+4.75)node[right] {$\im(z)=\frac{24}{\pi}+c_n^{-\frac{1}{240}}$};

\draw[black, thick] (-.5, 30.5) -- (.5, 30.5)node[right] {$\im(z)=\frac{\sqrt{c_n}}{12}$};
\end{tikzpicture}
%\caption{}
\end{figure}
\end{document}

enter image description here

Related Question