\includegraphics in a0poster

\includegraphics in a0poster
\documentclass[a0,final]{a0poster}
%%%Load packages
\usepackage{multicol}           %3-column layout
\usepackage[left=3cm,right=3cm,bottom=0cm,top=0cm]{geometry}            %Reset margins
\usepackage{helvet}             %Load Helvetica font & CM math
\usepackage{color}              %Needed for colour boxes & coloured text
\usepackage{graphics}
%%%Define colours and lengths
\definecolor{headingcol}{rgb}{1,1,1}            %Colour of main title
\definecolor{boxcol}{rgb}{0.7,0.2,0.2}      %Edge-colour of box and top banner
\fboxsep=1cm                            %Padding between box and text
\setlength{\columnsep}{3cm}             %Set spacing between columns
\renewcommand{\familydefault}{\sfdefault}   %Set main text to sans-serif

%%%Format title
\makeatletter                           %Needed to include code in main file
\renewcommand\@maketitle{%
\null                                   %Sets position marker
{
\color{headingcol}\sffamily\VERYHuge        %Set title font and colour
\@title \par}%
\vskip 0.6em%
{
\color{white}\sffamily\large                %Set author font and colour
\lineskip .5em%
\begin{tabular}[t]{l}%
\@author
\end{tabular}\par}%
\vskip 1cm
\par
}
\makeatother

\title{hello world \LaTeX}

\author{Author A \& Author B\\
University College London}

\begin{document}
\hspace{-3cm}                               %Align with edge of page, not margin
\colorbox{boxcol}{                          %Coloured banner across top
\begin{minipage}{1189mm}                    %Minipage for title contents
\maketitle
\end{minipage}}
\vspace{1cm}

\begin{multicols}{3}                            %Use 3-column layout
\raggedcolumns                          %Don't stretch contents vertically

%%%Column1
\section*{Introduction}


\section*{Method}

\includegraphics[scale=0.5cm]{burnsideTri.png}



\columnbreak

%%%Column 2
\section*{Maths}

\section*{Lists and tables}

\columnbreak

%%%Column 3
\section*{Discussion}

\nocite*

%\bibliographystyle{plain}
%\bibliography{halobib}

\end{multicols}
\end{document}

Ich möchte das Bild, das ich einbinde, vergrößern. Wenn ich jedoch versuche, irgendetwas in das Feld [] in \includegraphics[]{} einzugeben, wird ein Fehler ausgegeben. Es funktioniert jedoch nur mit \includegraphics{}. Kann jemand eine Lösung anbieten?

Das ist,

 \section*{Method}
    \includegraphics[scale=0.5cm]{burnsideTri.png}

Warum wird hier ein Fehler ausgegeben und nicht, wenn es nur

\includegraphics{burnsideTri.png}

Antwort1

Der Befehl zum Skalieren eines Bildes lautet \includegraphics[scale=0.5]{burnsideTri.png}(nicht 0.5cm). Wenn Sie eine bestimmte Breite angeben möchten, wäre es width=0.5cm.

graphicxSie sollten stattdessen laden graphics, da Vorheriges viel moderner ist (und ich Letzteres nie verwendet habe, daher funktioniert die Skalierung möglicherweise nicht, ich weiß nicht).


Nur um Ihnen zu zeigen, was ein MWE ist.

So sieht Ihre Frage ohne den ganzen Lärm aus:

\documentclass{a0poster}
\usepackage{graphics}

\begin{document}
    \includegraphics[scale=0.5cm]{burnsideTri.png}
\end{document}

Und das ist meine Antwort:

% arara: pdflatex

\documentclass{a0poster}
\usepackage[demo]{graphicx} % the demo option must be taken away. I did not have you image

\begin{document}
    \includegraphics[scale=0.5]{burnsideTri} % the file ending png can be ommited. 
\end{document}

verwandte Informationen