Perfect positioning of an image on top of text












4















Out of curiosity, would it be possible to have the following layout in LaTeX?



That is image a top of text with the text automatically stopping on the border of the image. The left and right margin would probably be the same but is it possible to have different left and right margins?



enter image description here










share|improve this question




















  • 1





    It would be helpful for contributors if you give a minimal working example (MWE) to show how far you progressed to achieve what you need. Hopefully you can use the wrapfig package for this.

    – Partha D.
    6 hours ago











  • @ParthaD. I was not aware of the wrapfig and according to its documentation it looks it does exactly what I want, hence I suggest that you turn your comment into an answer.

    – 永劫回帰
    6 hours ago
















4















Out of curiosity, would it be possible to have the following layout in LaTeX?



That is image a top of text with the text automatically stopping on the border of the image. The left and right margin would probably be the same but is it possible to have different left and right margins?



enter image description here










share|improve this question




















  • 1





    It would be helpful for contributors if you give a minimal working example (MWE) to show how far you progressed to achieve what you need. Hopefully you can use the wrapfig package for this.

    – Partha D.
    6 hours ago











  • @ParthaD. I was not aware of the wrapfig and according to its documentation it looks it does exactly what I want, hence I suggest that you turn your comment into an answer.

    – 永劫回帰
    6 hours ago














4












4








4








Out of curiosity, would it be possible to have the following layout in LaTeX?



That is image a top of text with the text automatically stopping on the border of the image. The left and right margin would probably be the same but is it possible to have different left and right margins?



enter image description here










share|improve this question
















Out of curiosity, would it be possible to have the following layout in LaTeX?



That is image a top of text with the text automatically stopping on the border of the image. The left and right margin would probably be the same but is it possible to have different left and right margins?



enter image description here







positioning multicol






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 hours ago









Sebastiano

9,81041858




9,81041858










asked 7 hours ago









永劫回帰永劫回帰

1675




1675








  • 1





    It would be helpful for contributors if you give a minimal working example (MWE) to show how far you progressed to achieve what you need. Hopefully you can use the wrapfig package for this.

    – Partha D.
    6 hours ago











  • @ParthaD. I was not aware of the wrapfig and according to its documentation it looks it does exactly what I want, hence I suggest that you turn your comment into an answer.

    – 永劫回帰
    6 hours ago














  • 1





    It would be helpful for contributors if you give a minimal working example (MWE) to show how far you progressed to achieve what you need. Hopefully you can use the wrapfig package for this.

    – Partha D.
    6 hours ago











  • @ParthaD. I was not aware of the wrapfig and according to its documentation it looks it does exactly what I want, hence I suggest that you turn your comment into an answer.

    – 永劫回帰
    6 hours ago








1




1





It would be helpful for contributors if you give a minimal working example (MWE) to show how far you progressed to achieve what you need. Hopefully you can use the wrapfig package for this.

– Partha D.
6 hours ago





It would be helpful for contributors if you give a minimal working example (MWE) to show how far you progressed to achieve what you need. Hopefully you can use the wrapfig package for this.

– Partha D.
6 hours ago













@ParthaD. I was not aware of the wrapfig and according to its documentation it looks it does exactly what I want, hence I suggest that you turn your comment into an answer.

– 永劫回帰
6 hours ago





@ParthaD. I was not aware of the wrapfig and according to its documentation it looks it does exactly what I want, hence I suggest that you turn your comment into an answer.

– 永劫回帰
6 hours ago










1 Answer
1






active

oldest

votes


















6














Based on this perfect answer, using pullquote environment, following code maybe help:



documentclass{article}
usepackage{tikz}
usepackage{lipsum,graphicx}
usepackage[latin]{babel}
usepackage{pullquote}

usetikzlibrary{shapes,backgrounds,calc}

defmygraphic
{%
begin{tikzpicture}
node (0,0) {includegraphics[width=4cm]{example-image-a}};
end{tikzpicture}%
}

begin{document}

begin{pullquote}{shape=rectangular,object=mygraphic}
lipsum[1-4]
end{pullquote}

end{document}


enter image description here






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%2f473478%2fperfect-positioning-of-an-image-on-top-of-text%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    Based on this perfect answer, using pullquote environment, following code maybe help:



    documentclass{article}
    usepackage{tikz}
    usepackage{lipsum,graphicx}
    usepackage[latin]{babel}
    usepackage{pullquote}

    usetikzlibrary{shapes,backgrounds,calc}

    defmygraphic
    {%
    begin{tikzpicture}
    node (0,0) {includegraphics[width=4cm]{example-image-a}};
    end{tikzpicture}%
    }

    begin{document}

    begin{pullquote}{shape=rectangular,object=mygraphic}
    lipsum[1-4]
    end{pullquote}

    end{document}


    enter image description here






    share|improve this answer




























      6














      Based on this perfect answer, using pullquote environment, following code maybe help:



      documentclass{article}
      usepackage{tikz}
      usepackage{lipsum,graphicx}
      usepackage[latin]{babel}
      usepackage{pullquote}

      usetikzlibrary{shapes,backgrounds,calc}

      defmygraphic
      {%
      begin{tikzpicture}
      node (0,0) {includegraphics[width=4cm]{example-image-a}};
      end{tikzpicture}%
      }

      begin{document}

      begin{pullquote}{shape=rectangular,object=mygraphic}
      lipsum[1-4]
      end{pullquote}

      end{document}


      enter image description here






      share|improve this answer


























        6












        6








        6







        Based on this perfect answer, using pullquote environment, following code maybe help:



        documentclass{article}
        usepackage{tikz}
        usepackage{lipsum,graphicx}
        usepackage[latin]{babel}
        usepackage{pullquote}

        usetikzlibrary{shapes,backgrounds,calc}

        defmygraphic
        {%
        begin{tikzpicture}
        node (0,0) {includegraphics[width=4cm]{example-image-a}};
        end{tikzpicture}%
        }

        begin{document}

        begin{pullquote}{shape=rectangular,object=mygraphic}
        lipsum[1-4]
        end{pullquote}

        end{document}


        enter image description here






        share|improve this answer













        Based on this perfect answer, using pullquote environment, following code maybe help:



        documentclass{article}
        usepackage{tikz}
        usepackage{lipsum,graphicx}
        usepackage[latin]{babel}
        usepackage{pullquote}

        usetikzlibrary{shapes,backgrounds,calc}

        defmygraphic
        {%
        begin{tikzpicture}
        node (0,0) {includegraphics[width=4cm]{example-image-a}};
        end{tikzpicture}%
        }

        begin{document}

        begin{pullquote}{shape=rectangular,object=mygraphic}
        lipsum[1-4]
        end{pullquote}

        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 5 hours ago









        ferahfezaferahfeza

        5,57911830




        5,57911830






























            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%2f473478%2fperfect-positioning-of-an-image-on-top-of-text%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

            Callistus I

            Tabula Rosettana

            How to label and detect the document text images