mtheme icon indicating copy to clipboard operation
mtheme copied to clipboard

how to show background image in just one frame?

Open mojomoj opened this issue 8 years ago β€’ 15 comments

\usebackgroundtemplate{\includegraphics[width=\paperwidth]{6509.jpeg}}

this doesnt work πŸ‘Ž

mojomoj avatar Aug 15 '17 01:08 mojomoj

It does for me.

\documentclass{beamer}
\usetheme{metropolis}
\begin{document}
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{example-image-a}}
\begin{frame}{Title}
Content
\end{frame}
\end{document}

background_template


EDIT: I just read the title. You need to put the frame into braces.

\documentclass{beamer}
\usetheme{metropolis}
\begin{document}
{
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{example-image-a}}
\begin{frame}{Title}
Content
\end{frame}
}
\begin{frame}{Title}
Content
\end{frame}
\end{document}

benjamin-weiss avatar Aug 16 '17 22:08 benjamin-weiss

Thanks for sharing! Is this only for one slide in the entire document

How do I do the same thing if there are multiple slides but I want background only for the one slide

On Aug 16, 2017 at 3:40 PM, <Benjamin Weiss (mailto:[email protected])> wrote:

It does for me.

\documentclass{beamer} \usetheme{metropolis} \begin{document} \usebackgroundtemplate{\includegraphics[width=\paperwidth]{example-image-a}} \begin{frame}{Title} Content \end{frame} \end{document}

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/matze/mtheme/issues/285#issuecomment-322919278), or mute the thread (https://github.com/notifications/unsubscribe-auth/Ab93iAGwVlB74Sy8m7oERt-rOSPtGcivks5sY2_HgaJpZM4O3EkD).

mojomoj avatar Aug 27 '17 23:08 mojomoj

Have you seen my edited answer?

benjamin-weiss avatar Sep 14 '17 23:09 benjamin-weiss

no where is it

On Wed, Aug 16, 2017 at 3:40 PM, Benjamin Weiss [email protected] wrote:

It does for me.

\documentclass{beamer}\usetheme{metropolis}\begin{document}\usebackgroundtemplate{\includegraphics[width=\paperwidth]{example-image-a}}\begin{frame}{Title} Content\end{frame}\end{document}

[image: background_template] https://user-images.githubusercontent.com/9158719/29388319-7fd216ba-82e4-11e7-9242-286c6c297878.png

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matze/mtheme/issues/285#issuecomment-322919278, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab93iAGwVlB74Sy8m7oERt-rOSPtGcivks5sY2_HgaJpZM4O3EkD .

mojomoj avatar Sep 18 '17 13:09 mojomoj

the background image is not covering whole image ....

On Mon, Sep 18, 2017 at 6:35 AM, mojomoj [email protected] wrote:

no where is it

On Wed, Aug 16, 2017 at 3:40 PM, Benjamin Weiss [email protected] wrote:

It does for me.

\documentclass{beamer}\usetheme{metropolis}\begin{document}
usebackgroundtemplate{\includegraphics[width=
paperwidth]{example-image-a}}\begin{frame}{Title} Content\end{frame}\end{document}

[image: background_template] <https://user-images.githubusercontent.com/9158719/ 29388319-7fd216ba-82e4-11e7-9242-286c6c297878.png>

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matze/mtheme/issues/285#issuecomment-322919278, or mute the thread <https://github.com/notifications/unsubscribe- auth/Ab93iAGwVlB74Sy8m7oERt-rOSPtGcivks5sY2_HgaJpZM4O3EkD> .

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matze/mtheme/issues/285#issuecomment-330222706, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab93iI57fQeKk_o2U-NTPyGGUD1ee6zlks5sjnGagaJpZM4O3EkD .

mojomoj avatar Sep 20 '17 20:09 mojomoj

how to make it so it covers whole page thanks

On Mon, Sep 18, 2017 at 6:35 AM, mojomoj [email protected] wrote:

no where is it

On Wed, Aug 16, 2017 at 3:40 PM, Benjamin Weiss [email protected] wrote:

It does for me.

\documentclass{beamer}\usetheme{metropolis}\begin{document}
usebackgroundtemplate{\includegraphics[width=
paperwidth]{example-image-a}}\begin{frame}{Title} Content\end{frame}\end{document}

[image: background_template] <https://user-images.githubusercontent.com/9158719/ 29388319-7fd216ba-82e4-11e7-9242-286c6c297878.png>

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matze/mtheme/issues/285#issuecomment-322919278, or mute the thread <https://github.com/notifications/unsubscribe- auth/Ab93iAGwVlB74Sy8m7oERt-rOSPtGcivks5sY2_HgaJpZM4O3EkD> .

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matze/mtheme/issues/285#issuecomment-330222706, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab93iI57fQeKk_o2U-NTPyGGUD1ee6zlks5sjnGagaJpZM4O3EkD .

mojomoj avatar Sep 20 '17 20:09 mojomoj

See: https://tex.stackexchange.com/a/334762/1952

nignasi avatar Sep 20 '17 20:09 nignasi

I don't understand what you mean?

Can you tell me what I’m supposed to look for in that page as it gives same answer as you do doesn’t cover page vertically it’s using pagewidth same as you advice

On Sep 20, 2017 at 1:57 PM, <Ignasi (mailto:[email protected])> wrote:

See: https://tex.stackexchange.com/a/334762/1952

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/matze/mtheme/issues/285#issuecomment-330978657), or mute the thread (https://github.com/notifications/unsubscribe-auth/Ab93iLenXLrxgLa7kDh2OHHYCzgAavkbks5skXw7gaJpZM4O3EkD).

mojomoj avatar Sep 20 '17 21:09 mojomoj

I just confirm that the code shown by Benjamin Weiss works.

May be the problem is with your image. We don't know what are its proportions. If you just fix width or height, the image keeps its aspect ratio, so if with width=\paperwidth it doesn't cover the whole area your image is probably to short, in this case add height=\paperheight to force it to cover the frame height. But its aspect ratio will change.

nignasi avatar Sep 21 '17 07:09 nignasi

paper height doesn't fully cover either @ignassi

On Wed, Aug 16, 2017 at 3:40 PM, Benjamin Weiss [email protected] wrote:

It does for me.

\documentclass{beamer}\usetheme{metropolis}\begin{document}\usebackgroundtemplate{\includegraphics[width=\paperwidth]{example-image-a}}\begin{frame}{Title} Content\end{frame}\end{document}

[image: background_template] https://user-images.githubusercontent.com/9158719/29388319-7fd216ba-82e4-11e7-9242-286c6c297878.png

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matze/mtheme/issues/285#issuecomment-322919278, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab93iAGwVlB74Sy8m7oERt-rOSPtGcivks5sY2_HgaJpZM4O3EkD .

mojomoj avatar Sep 22 '17 18:09 mojomoj

Is there a way to remove the footer?

tommylees112 avatar Jan 29 '19 15:01 tommylees112

Hi,thanks for the tip Is there anyway to make the background more transparent?

Sabibou avatar Oct 30 '19 14:10 Sabibou

Hi @mojomoj , to use full width of the page you need to add the option inner sep=0. { \usebackgroundtemplate{% \tikz\node[opacity=0.3,inner sep=0] {\includegraphics[height=\paperheight,width=\paperwidth]{yourimage.jpg}};} \begin{frame}{title} some content \end{frame} }

This ensures only the frame within the curly brackets {} is used for the background image, plus we get some transparency with the opacity option @Sabibou . Don't forget to insert the tikz package: \usepackage{tikz}

Cheers :)

nkahne avatar Jan 15 '20 15:01 nkahne

Thanks for sharing.

hlwei avatar Apr 12 '22 21:04 hlwei

How to make it transparent in this case?

Arij-Aladel avatar May 11 '22 07:05 Arij-Aladel