Drawing lines on top and bottom on figures

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I would like to create a figure with one line on top of it, and another one at the bottom, that separate the figure form the text. I have tried using the following code:



beginfigure[h]
parnoindentruletextwidth0.1pt
centering
includegraphics[width=0.5textwidth]capacidad_campo.png
captionDiagrama que muestra los diferentes posibles estados sobre la capacidad de campo del suelo. Fuente: urlhttp://www.soilwater.com.au/laboratory.html
parnoindentruletextwidth0.1pt
endfigure


The bottom line works just fine, but the top line gets stuck to the figure image, and the vspace is just separating the image from the caption.



Thank you for your help.










share|improve this question





















  • Is this what you want: parnoindentruletextwidth0.1ptparmedskip?
    – Sigur
    24 mins ago














up vote
1
down vote

favorite












I would like to create a figure with one line on top of it, and another one at the bottom, that separate the figure form the text. I have tried using the following code:



beginfigure[h]
parnoindentruletextwidth0.1pt
centering
includegraphics[width=0.5textwidth]capacidad_campo.png
captionDiagrama que muestra los diferentes posibles estados sobre la capacidad de campo del suelo. Fuente: urlhttp://www.soilwater.com.au/laboratory.html
parnoindentruletextwidth0.1pt
endfigure


The bottom line works just fine, but the top line gets stuck to the figure image, and the vspace is just separating the image from the caption.



Thank you for your help.










share|improve this question





















  • Is this what you want: parnoindentruletextwidth0.1ptparmedskip?
    – Sigur
    24 mins ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I would like to create a figure with one line on top of it, and another one at the bottom, that separate the figure form the text. I have tried using the following code:



beginfigure[h]
parnoindentruletextwidth0.1pt
centering
includegraphics[width=0.5textwidth]capacidad_campo.png
captionDiagrama que muestra los diferentes posibles estados sobre la capacidad de campo del suelo. Fuente: urlhttp://www.soilwater.com.au/laboratory.html
parnoindentruletextwidth0.1pt
endfigure


The bottom line works just fine, but the top line gets stuck to the figure image, and the vspace is just separating the image from the caption.



Thank you for your help.










share|improve this question













I would like to create a figure with one line on top of it, and another one at the bottom, that separate the figure form the text. I have tried using the following code:



beginfigure[h]
parnoindentruletextwidth0.1pt
centering
includegraphics[width=0.5textwidth]capacidad_campo.png
captionDiagrama que muestra los diferentes posibles estados sobre la capacidad de campo del suelo. Fuente: urlhttp://www.soilwater.com.au/laboratory.html
parnoindentruletextwidth0.1pt
endfigure


The bottom line works just fine, but the top line gets stuck to the figure image, and the vspace is just separating the image from the caption.



Thank you for your help.







line






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 28 mins ago









Daniel Díez

347




347











  • Is this what you want: parnoindentruletextwidth0.1ptparmedskip?
    – Sigur
    24 mins ago
















  • Is this what you want: parnoindentruletextwidth0.1ptparmedskip?
    – Sigur
    24 mins ago















Is this what you want: parnoindentruletextwidth0.1ptparmedskip?
– Sigur
24 mins ago




Is this what you want: parnoindentruletextwidth0.1ptparmedskip?
– Sigur
24 mins ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote













try the following:



documentclassarticle
usepackage[demo]graphicx
usepackageurl

begindocument
beginfigure[h]
centering
rule[1ex]textwidth0.1pt
includegraphics[width=0.5textwidth]capacidad_campo.png
captionDiagrama que muestra los diferentes posibles estados sobre la capacidad de campo del suelo. Fuente: protecturlhttp://www.soilwater.com.au/laboratory.html
rule[1ex]textwidth0.1pt
endfigure
enddocument


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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f456007%2fdrawing-lines-on-top-and-bottom-on-figures%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    try the following:



    documentclassarticle
    usepackage[demo]graphicx
    usepackageurl

    begindocument
    beginfigure[h]
    centering
    rule[1ex]textwidth0.1pt
    includegraphics[width=0.5textwidth]capacidad_campo.png
    captionDiagrama que muestra los diferentes posibles estados sobre la capacidad de campo del suelo. Fuente: protecturlhttp://www.soilwater.com.au/laboratory.html
    rule[1ex]textwidth0.1pt
    endfigure
    enddocument


    enter image description here






    share|improve this answer
























      up vote
      3
      down vote













      try the following:



      documentclassarticle
      usepackage[demo]graphicx
      usepackageurl

      begindocument
      beginfigure[h]
      centering
      rule[1ex]textwidth0.1pt
      includegraphics[width=0.5textwidth]capacidad_campo.png
      captionDiagrama que muestra los diferentes posibles estados sobre la capacidad de campo del suelo. Fuente: protecturlhttp://www.soilwater.com.au/laboratory.html
      rule[1ex]textwidth0.1pt
      endfigure
      enddocument


      enter image description here






      share|improve this answer






















        up vote
        3
        down vote










        up vote
        3
        down vote









        try the following:



        documentclassarticle
        usepackage[demo]graphicx
        usepackageurl

        begindocument
        beginfigure[h]
        centering
        rule[1ex]textwidth0.1pt
        includegraphics[width=0.5textwidth]capacidad_campo.png
        captionDiagrama que muestra los diferentes posibles estados sobre la capacidad de campo del suelo. Fuente: protecturlhttp://www.soilwater.com.au/laboratory.html
        rule[1ex]textwidth0.1pt
        endfigure
        enddocument


        enter image description here






        share|improve this answer












        try the following:



        documentclassarticle
        usepackage[demo]graphicx
        usepackageurl

        begindocument
        beginfigure[h]
        centering
        rule[1ex]textwidth0.1pt
        includegraphics[width=0.5textwidth]capacidad_campo.png
        captionDiagrama que muestra los diferentes posibles estados sobre la capacidad de campo del suelo. Fuente: protecturlhttp://www.soilwater.com.au/laboratory.html
        rule[1ex]textwidth0.1pt
        endfigure
        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 19 mins ago









        Zarko

        115k863152




        115k863152



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456007%2fdrawing-lines-on-top-and-bottom-on-figures%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery