1

I´m reading the book Latex Cookbook from Steffan Kottwitz, but using the example, I can't obtain an image in the compiled code example:

enter image description here

\documentclass[10pt,notumble,nofoldmark,demo]{leaflet}% demo option for dummy image
\usepackage[T1]{fontenc}
%\usepackage{libertine}
%\renewcommand{\familydefault}{\sfdefault}
\usepackage{graphicx,subcaption}
\usepackage{microtype}
\pagenumbering{gobble}
\CutLine{3}
\usepackage{xcolor}
\usepackage{mwe}
\usepackage{mathpazo}
\renewcommand{\sectfont}{\large\sffamily\bfseries\color{blue}}
\begin{document}
\title{\textbf{\TeX\ Live Install Party}}
\author{\Large\textbf{Your \TeX\ team}}
\date{\textbf{August 11, City Hall Cellar}}
\maketitle
\begin{figure}[h!]
  \centering
  \includegraphics[width=0.88\linewidth]{example-image-a.jpg}
  %\caption{}\label{}
\end{figure}
We'd like to welcome you to our famous yearly \TeX\ install party!
Bring your laptop and have free cold soft drinks while we assist you in
installing the latest \TeX\ version on your computer.

We will provide
\begin{itemize}
\item a fast internet connection fow downloading,
\item media such as DVDs and USB sticks with the latest \TeX\,
\item \TeX\ books for bying with a discount,
\item chat with \TeX\ experts.
\end{itemize}
\clearpage
Fill in text for page 2 (on the back side)
\clearpage
Fill in text for page 3 (on the back side)
\clearpage
Fill in text for page 4 (on the back side)
\clearpage
\section{Schedule}
\begin{tabular}{@{}rl@{}}
6 pm    & Welcome \\
7:30 pm & Live install presentation \\
8 pm    & Book authors available for talks and signing \\
9:30 pm & Bar closing
\end{tabular}

From 6pm to 10pm: install support
and free \TeX\ copies on DVD on our welcome desk.
\section{Accomodation}
Hotel, Meals, Travel information here
\section{Sponsors}
Information about our local \TeX\ user group
and Open Source projects sponsor
\clearpage
\section{Contact}
Names, Phone numbers, email addresses
\end{document}
  • 5
    Remove demo from the option list. – esdd Feb 24 '16 at 13:37
  • A spell check is also needed :) – jak123 Feb 24 '16 at 13:54
  • 1
    Did you check if the image file is available at the correct location? – Karlo Feb 24 '16 at 14:02
  • @esdd solved the problem. – Mika Ike Feb 24 '16 at 14:52
1

Simple remove demo from the option list:

\documentclass[10pt,notumble,nofoldmark]{leaflet}% demo removed
...

Then you will get

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.