Example images in LaTeX?












35















How to make an example image in LaTeX, a dummy image, a spot holder? I have seen it before, but I can't remember how they would made. It would be nice to be able to use example images - if you should help anyone or you need to question in this community. You might say I could easily Google it, but I tried - and are obviously too stupid to find anything.



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[ngerman, danish]{babel}
usepackage[T1]{fontenc}
%usepackage{}

begin{document}

iffalse
begin{figure}
includegraphics[scale=1]{•}
end{figure}
fi

end{document}


Is it also possible to resize the example image? So I need a usepackage to make an image without including an immage. An placeholder so anyone can try my code without needing images - just needing my tex-code. I hope you understand?



Kind regards!










share|improve this question


















  • 1





    Related: New support package for MWEs

    – Werner
    Mar 6 '15 at 19:04






  • 1





    If I google "dummy images latex", I get the mwe package documentation as the 4th result.

    – 1010011010
    Mar 6 '15 at 19:09






  • 1





    Sounds like you want placeholder images, not examples, right?

    – Cole Johnson
    Mar 7 '15 at 2:15
















35















How to make an example image in LaTeX, a dummy image, a spot holder? I have seen it before, but I can't remember how they would made. It would be nice to be able to use example images - if you should help anyone or you need to question in this community. You might say I could easily Google it, but I tried - and are obviously too stupid to find anything.



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[ngerman, danish]{babel}
usepackage[T1]{fontenc}
%usepackage{}

begin{document}

iffalse
begin{figure}
includegraphics[scale=1]{•}
end{figure}
fi

end{document}


Is it also possible to resize the example image? So I need a usepackage to make an image without including an immage. An placeholder so anyone can try my code without needing images - just needing my tex-code. I hope you understand?



Kind regards!










share|improve this question


















  • 1





    Related: New support package for MWEs

    – Werner
    Mar 6 '15 at 19:04






  • 1





    If I google "dummy images latex", I get the mwe package documentation as the 4th result.

    – 1010011010
    Mar 6 '15 at 19:09






  • 1





    Sounds like you want placeholder images, not examples, right?

    – Cole Johnson
    Mar 7 '15 at 2:15














35












35








35


10






How to make an example image in LaTeX, a dummy image, a spot holder? I have seen it before, but I can't remember how they would made. It would be nice to be able to use example images - if you should help anyone or you need to question in this community. You might say I could easily Google it, but I tried - and are obviously too stupid to find anything.



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[ngerman, danish]{babel}
usepackage[T1]{fontenc}
%usepackage{}

begin{document}

iffalse
begin{figure}
includegraphics[scale=1]{•}
end{figure}
fi

end{document}


Is it also possible to resize the example image? So I need a usepackage to make an image without including an immage. An placeholder so anyone can try my code without needing images - just needing my tex-code. I hope you understand?



Kind regards!










share|improve this question














How to make an example image in LaTeX, a dummy image, a spot holder? I have seen it before, but I can't remember how they would made. It would be nice to be able to use example images - if you should help anyone or you need to question in this community. You might say I could easily Google it, but I tried - and are obviously too stupid to find anything.



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[ngerman, danish]{babel}
usepackage[T1]{fontenc}
%usepackage{}

begin{document}

iffalse
begin{figure}
includegraphics[scale=1]{•}
end{figure}
fi

end{document}


Is it also possible to resize the example image? So I need a usepackage to make an image without including an immage. An placeholder so anyone can try my code without needing images - just needing my tex-code. I hope you understand?



Kind regards!







graphics






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 6 '15 at 18:39









Basilius SapientiaBasilius Sapientia

1,02721127




1,02721127








  • 1





    Related: New support package for MWEs

    – Werner
    Mar 6 '15 at 19:04






  • 1





    If I google "dummy images latex", I get the mwe package documentation as the 4th result.

    – 1010011010
    Mar 6 '15 at 19:09






  • 1





    Sounds like you want placeholder images, not examples, right?

    – Cole Johnson
    Mar 7 '15 at 2:15














  • 1





    Related: New support package for MWEs

    – Werner
    Mar 6 '15 at 19:04






  • 1





    If I google "dummy images latex", I get the mwe package documentation as the 4th result.

    – 1010011010
    Mar 6 '15 at 19:09






  • 1





    Sounds like you want placeholder images, not examples, right?

    – Cole Johnson
    Mar 7 '15 at 2:15








1




1





Related: New support package for MWEs

– Werner
Mar 6 '15 at 19:04





Related: New support package for MWEs

– Werner
Mar 6 '15 at 19:04




1




1





If I google "dummy images latex", I get the mwe package documentation as the 4th result.

– 1010011010
Mar 6 '15 at 19:09





If I google "dummy images latex", I get the mwe package documentation as the 4th result.

– 1010011010
Mar 6 '15 at 19:09




1




1





Sounds like you want placeholder images, not examples, right?

– Cole Johnson
Mar 7 '15 at 2:15





Sounds like you want placeholder images, not examples, right?

– Cole Johnson
Mar 7 '15 at 2:15










2 Answers
2






active

oldest

votes


















50














Thanks to Martin Scharrer, modern LaTeX systems offer you some ready-to-use images; the documentation for the mwe package (Section 4 Provided Images) describes all available images (initially you had to load to package to use the images, but then the images were made usable without the package):



documentclass[12pt,a4paper]{article}
usepackage{graphicx}

begin{document}

noindentincludegraphics[width=3cm]{example-image-a}qquad
includegraphics[width=3cm]{example-image-golden}qquad
includegraphics[width=3cm]{example-grid-100x100pt}

noindentincludegraphics[height=5cm]{example-image-b}

noindentincludegraphics[scale=0.5]{example-image-c}

noindentincludegraphics[width=3cm]{example-image}

end{document}


enter image description here






share|improve this answer


























  • It seams example-image stops at c. Is it possible to get example-image-d?

    – Viesturs
    Oct 5 '18 at 11:45






  • 2





    @Viesturs There is example-image-duck nowadays :)

    – TeXnician
    Oct 9 '18 at 15:33



















6














The documentation folder of PStricks contains some images in a separate folder. Most notably it holds tiger (in both EPS and PDF formats):



enter image description here



documentclass{article}
usepackage{graphicx}
begin{document}
includegraphics[width=150pt]{c:/texlive/2014/texmf-dist/doc/generic/pstricks/images/tiger}
end{document}


As can be seen above (under TeX Live 2014 in Windows) it's not that readily accessible.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f231738%2fexample-images-in-latex%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    50














    Thanks to Martin Scharrer, modern LaTeX systems offer you some ready-to-use images; the documentation for the mwe package (Section 4 Provided Images) describes all available images (initially you had to load to package to use the images, but then the images were made usable without the package):



    documentclass[12pt,a4paper]{article}
    usepackage{graphicx}

    begin{document}

    noindentincludegraphics[width=3cm]{example-image-a}qquad
    includegraphics[width=3cm]{example-image-golden}qquad
    includegraphics[width=3cm]{example-grid-100x100pt}

    noindentincludegraphics[height=5cm]{example-image-b}

    noindentincludegraphics[scale=0.5]{example-image-c}

    noindentincludegraphics[width=3cm]{example-image}

    end{document}


    enter image description here






    share|improve this answer


























    • It seams example-image stops at c. Is it possible to get example-image-d?

      – Viesturs
      Oct 5 '18 at 11:45






    • 2





      @Viesturs There is example-image-duck nowadays :)

      – TeXnician
      Oct 9 '18 at 15:33
















    50














    Thanks to Martin Scharrer, modern LaTeX systems offer you some ready-to-use images; the documentation for the mwe package (Section 4 Provided Images) describes all available images (initially you had to load to package to use the images, but then the images were made usable without the package):



    documentclass[12pt,a4paper]{article}
    usepackage{graphicx}

    begin{document}

    noindentincludegraphics[width=3cm]{example-image-a}qquad
    includegraphics[width=3cm]{example-image-golden}qquad
    includegraphics[width=3cm]{example-grid-100x100pt}

    noindentincludegraphics[height=5cm]{example-image-b}

    noindentincludegraphics[scale=0.5]{example-image-c}

    noindentincludegraphics[width=3cm]{example-image}

    end{document}


    enter image description here






    share|improve this answer


























    • It seams example-image stops at c. Is it possible to get example-image-d?

      – Viesturs
      Oct 5 '18 at 11:45






    • 2





      @Viesturs There is example-image-duck nowadays :)

      – TeXnician
      Oct 9 '18 at 15:33














    50












    50








    50







    Thanks to Martin Scharrer, modern LaTeX systems offer you some ready-to-use images; the documentation for the mwe package (Section 4 Provided Images) describes all available images (initially you had to load to package to use the images, but then the images were made usable without the package):



    documentclass[12pt,a4paper]{article}
    usepackage{graphicx}

    begin{document}

    noindentincludegraphics[width=3cm]{example-image-a}qquad
    includegraphics[width=3cm]{example-image-golden}qquad
    includegraphics[width=3cm]{example-grid-100x100pt}

    noindentincludegraphics[height=5cm]{example-image-b}

    noindentincludegraphics[scale=0.5]{example-image-c}

    noindentincludegraphics[width=3cm]{example-image}

    end{document}


    enter image description here






    share|improve this answer















    Thanks to Martin Scharrer, modern LaTeX systems offer you some ready-to-use images; the documentation for the mwe package (Section 4 Provided Images) describes all available images (initially you had to load to package to use the images, but then the images were made usable without the package):



    documentclass[12pt,a4paper]{article}
    usepackage{graphicx}

    begin{document}

    noindentincludegraphics[width=3cm]{example-image-a}qquad
    includegraphics[width=3cm]{example-image-golden}qquad
    includegraphics[width=3cm]{example-grid-100x100pt}

    noindentincludegraphics[height=5cm]{example-image-b}

    noindentincludegraphics[scale=0.5]{example-image-c}

    noindentincludegraphics[width=3cm]{example-image}

    end{document}


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 6 '15 at 18:49

























    answered Mar 6 '15 at 18:42









    Gonzalo MedinaGonzalo Medina

    401k4113131579




    401k4113131579













    • It seams example-image stops at c. Is it possible to get example-image-d?

      – Viesturs
      Oct 5 '18 at 11:45






    • 2





      @Viesturs There is example-image-duck nowadays :)

      – TeXnician
      Oct 9 '18 at 15:33



















    • It seams example-image stops at c. Is it possible to get example-image-d?

      – Viesturs
      Oct 5 '18 at 11:45






    • 2





      @Viesturs There is example-image-duck nowadays :)

      – TeXnician
      Oct 9 '18 at 15:33

















    It seams example-image stops at c. Is it possible to get example-image-d?

    – Viesturs
    Oct 5 '18 at 11:45





    It seams example-image stops at c. Is it possible to get example-image-d?

    – Viesturs
    Oct 5 '18 at 11:45




    2




    2





    @Viesturs There is example-image-duck nowadays :)

    – TeXnician
    Oct 9 '18 at 15:33





    @Viesturs There is example-image-duck nowadays :)

    – TeXnician
    Oct 9 '18 at 15:33











    6














    The documentation folder of PStricks contains some images in a separate folder. Most notably it holds tiger (in both EPS and PDF formats):



    enter image description here



    documentclass{article}
    usepackage{graphicx}
    begin{document}
    includegraphics[width=150pt]{c:/texlive/2014/texmf-dist/doc/generic/pstricks/images/tiger}
    end{document}


    As can be seen above (under TeX Live 2014 in Windows) it's not that readily accessible.






    share|improve this answer




























      6














      The documentation folder of PStricks contains some images in a separate folder. Most notably it holds tiger (in both EPS and PDF formats):



      enter image description here



      documentclass{article}
      usepackage{graphicx}
      begin{document}
      includegraphics[width=150pt]{c:/texlive/2014/texmf-dist/doc/generic/pstricks/images/tiger}
      end{document}


      As can be seen above (under TeX Live 2014 in Windows) it's not that readily accessible.






      share|improve this answer


























        6












        6








        6







        The documentation folder of PStricks contains some images in a separate folder. Most notably it holds tiger (in both EPS and PDF formats):



        enter image description here



        documentclass{article}
        usepackage{graphicx}
        begin{document}
        includegraphics[width=150pt]{c:/texlive/2014/texmf-dist/doc/generic/pstricks/images/tiger}
        end{document}


        As can be seen above (under TeX Live 2014 in Windows) it's not that readily accessible.






        share|improve this answer













        The documentation folder of PStricks contains some images in a separate folder. Most notably it holds tiger (in both EPS and PDF formats):



        enter image description here



        documentclass{article}
        usepackage{graphicx}
        begin{document}
        includegraphics[width=150pt]{c:/texlive/2014/texmf-dist/doc/generic/pstricks/images/tiger}
        end{document}


        As can be seen above (under TeX Live 2014 in Windows) it's not that readily accessible.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 6 '15 at 20:03









        WernerWerner

        448k709911697




        448k709911697






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f231738%2fexample-images-in-latex%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to send String Array data to Server using php in android

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Is anime1.com a legal site for watching anime?