Vertical alignment of arrow between images












1















I'm struggling with template given for my article. I've got four images and I'd like to place right arrow between them.



Problem



Problem is that arrows should be in the middle instead of at the bottom.



Teaser{
TeaserImage{orig.png}
Rightarrow
TeaserImage{grid.png}
Rightarrow
TeaserImage{map.png}
Rightarrow
TeaserImage{predictions.png}
}


Commands Teaser and TeaserImage are defined in template like so



newcommand{Teaser}[1]{globalHaveTeasertruedef@Teaser{#1}}
newcommand{TeaserImage}[1]{includegraphics[height=1in]{#1}}


I've tried to use vspace, but without any luck.










share|improve this question


















  • 1





    Welcome to TeX.SE! Please -- as usual here -- make your code snippet compilable!

    – Kurt
    Mar 22 at 1:16











  • Try to use vcenter{hbox{...}}. It is hard to test or be more detailed since you do not provide a complete code.

    – marmot
    Mar 22 at 1:19
















1















I'm struggling with template given for my article. I've got four images and I'd like to place right arrow between them.



Problem



Problem is that arrows should be in the middle instead of at the bottom.



Teaser{
TeaserImage{orig.png}
Rightarrow
TeaserImage{grid.png}
Rightarrow
TeaserImage{map.png}
Rightarrow
TeaserImage{predictions.png}
}


Commands Teaser and TeaserImage are defined in template like so



newcommand{Teaser}[1]{globalHaveTeasertruedef@Teaser{#1}}
newcommand{TeaserImage}[1]{includegraphics[height=1in]{#1}}


I've tried to use vspace, but without any luck.










share|improve this question


















  • 1





    Welcome to TeX.SE! Please -- as usual here -- make your code snippet compilable!

    – Kurt
    Mar 22 at 1:16











  • Try to use vcenter{hbox{...}}. It is hard to test or be more detailed since you do not provide a complete code.

    – marmot
    Mar 22 at 1:19














1












1








1








I'm struggling with template given for my article. I've got four images and I'd like to place right arrow between them.



Problem



Problem is that arrows should be in the middle instead of at the bottom.



Teaser{
TeaserImage{orig.png}
Rightarrow
TeaserImage{grid.png}
Rightarrow
TeaserImage{map.png}
Rightarrow
TeaserImage{predictions.png}
}


Commands Teaser and TeaserImage are defined in template like so



newcommand{Teaser}[1]{globalHaveTeasertruedef@Teaser{#1}}
newcommand{TeaserImage}[1]{includegraphics[height=1in]{#1}}


I've tried to use vspace, but without any luck.










share|improve this question














I'm struggling with template given for my article. I've got four images and I'd like to place right arrow between them.



Problem



Problem is that arrows should be in the middle instead of at the bottom.



Teaser{
TeaserImage{orig.png}
Rightarrow
TeaserImage{grid.png}
Rightarrow
TeaserImage{map.png}
Rightarrow
TeaserImage{predictions.png}
}


Commands Teaser and TeaserImage are defined in template like so



newcommand{Teaser}[1]{globalHaveTeasertruedef@Teaser{#1}}
newcommand{TeaserImage}[1]{includegraphics[height=1in]{#1}}


I've tried to use vspace, but without any luck.







graphics vertical-alignment arrows






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 22 at 1:13









Filip KočicaFilip Kočica

1084




1084








  • 1





    Welcome to TeX.SE! Please -- as usual here -- make your code snippet compilable!

    – Kurt
    Mar 22 at 1:16











  • Try to use vcenter{hbox{...}}. It is hard to test or be more detailed since you do not provide a complete code.

    – marmot
    Mar 22 at 1:19














  • 1





    Welcome to TeX.SE! Please -- as usual here -- make your code snippet compilable!

    – Kurt
    Mar 22 at 1:16











  • Try to use vcenter{hbox{...}}. It is hard to test or be more detailed since you do not provide a complete code.

    – marmot
    Mar 22 at 1:19








1




1





Welcome to TeX.SE! Please -- as usual here -- make your code snippet compilable!

– Kurt
Mar 22 at 1:16





Welcome to TeX.SE! Please -- as usual here -- make your code snippet compilable!

– Kurt
Mar 22 at 1:16













Try to use vcenter{hbox{...}}. It is hard to test or be more detailed since you do not provide a complete code.

– marmot
Mar 22 at 1:19





Try to use vcenter{hbox{...}}. It is hard to test or be more detailed since you do not provide a complete code.

– marmot
Mar 22 at 1:19










2 Answers
2






active

oldest

votes


















3














documentclass{article}
usepackage[margin=50pt]{geometry}
usepackage{graphicx,amssymb}
%newcommand{Teaser}[1]{globalHaveTeasertruedef@Teaser{#1}}
newcommand{TeaserImage}[1]{raisebox{%
.5dimexpr-height+htstrutbox-dpstrutbox}{%
includegraphics[height=1in]{#1}}}
begin{document}
$%Teaser{
TeaserImage{example-image}
Rightarrow
TeaserImage{example-image-a}
Rightarrow
TeaserImage{example-image-b}
Rightarrow
TeaserImage{example-image-c}
$%}
end{document}


enter image description here






share|improve this answer
























  • Thanks @Steven - this did the job well. Also is there any other way without modification of the template (TeaserImage)?

    – Filip Kočica
    Mar 22 at 1:31











  • @FilipKočica You can redefine includegraphics, but I don't recommend it. You could modify the template by one letter, capitalizing includegraphics to Includegraphics, and define the latter to perform the raisebox accordingly.

    – Steven B. Segletes
    Mar 22 at 1:47











  • @FilipKočica after loading the template, you could letsvTeaserImageTeaserImage renewcommand{TeaserImage}[1]{raisebox{.5dimexpr-height+htstrutbox-dpstrutbox}{svTeaserImage{#1}}}

    – Steven B. Segletes
    Mar 22 at 1:50













  • Thanks @Steven, that's very helpful.

    – Filip Kočica
    Mar 22 at 8:49



















3














Just spelling out my comment.



documentclass{article}
usepackage{graphicx}
usepackage[margin=1in]{geometry}
newcommand{TeaserImage}[1]{vcenter{hbox{includegraphics[height=1in]{#1}}}}
begin{document}
$TeaserImage{example-image-duck}
Rightarrow
TeaserImage{example-image-duck}
Rightarrow
TeaserImage{example-image-duck}
Rightarrow
TeaserImage{example-image-duck}$
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%2f480810%2fvertical-alignment-of-arrow-between-images%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









    3














    documentclass{article}
    usepackage[margin=50pt]{geometry}
    usepackage{graphicx,amssymb}
    %newcommand{Teaser}[1]{globalHaveTeasertruedef@Teaser{#1}}
    newcommand{TeaserImage}[1]{raisebox{%
    .5dimexpr-height+htstrutbox-dpstrutbox}{%
    includegraphics[height=1in]{#1}}}
    begin{document}
    $%Teaser{
    TeaserImage{example-image}
    Rightarrow
    TeaserImage{example-image-a}
    Rightarrow
    TeaserImage{example-image-b}
    Rightarrow
    TeaserImage{example-image-c}
    $%}
    end{document}


    enter image description here






    share|improve this answer
























    • Thanks @Steven - this did the job well. Also is there any other way without modification of the template (TeaserImage)?

      – Filip Kočica
      Mar 22 at 1:31











    • @FilipKočica You can redefine includegraphics, but I don't recommend it. You could modify the template by one letter, capitalizing includegraphics to Includegraphics, and define the latter to perform the raisebox accordingly.

      – Steven B. Segletes
      Mar 22 at 1:47











    • @FilipKočica after loading the template, you could letsvTeaserImageTeaserImage renewcommand{TeaserImage}[1]{raisebox{.5dimexpr-height+htstrutbox-dpstrutbox}{svTeaserImage{#1}}}

      – Steven B. Segletes
      Mar 22 at 1:50













    • Thanks @Steven, that's very helpful.

      – Filip Kočica
      Mar 22 at 8:49
















    3














    documentclass{article}
    usepackage[margin=50pt]{geometry}
    usepackage{graphicx,amssymb}
    %newcommand{Teaser}[1]{globalHaveTeasertruedef@Teaser{#1}}
    newcommand{TeaserImage}[1]{raisebox{%
    .5dimexpr-height+htstrutbox-dpstrutbox}{%
    includegraphics[height=1in]{#1}}}
    begin{document}
    $%Teaser{
    TeaserImage{example-image}
    Rightarrow
    TeaserImage{example-image-a}
    Rightarrow
    TeaserImage{example-image-b}
    Rightarrow
    TeaserImage{example-image-c}
    $%}
    end{document}


    enter image description here






    share|improve this answer
























    • Thanks @Steven - this did the job well. Also is there any other way without modification of the template (TeaserImage)?

      – Filip Kočica
      Mar 22 at 1:31











    • @FilipKočica You can redefine includegraphics, but I don't recommend it. You could modify the template by one letter, capitalizing includegraphics to Includegraphics, and define the latter to perform the raisebox accordingly.

      – Steven B. Segletes
      Mar 22 at 1:47











    • @FilipKočica after loading the template, you could letsvTeaserImageTeaserImage renewcommand{TeaserImage}[1]{raisebox{.5dimexpr-height+htstrutbox-dpstrutbox}{svTeaserImage{#1}}}

      – Steven B. Segletes
      Mar 22 at 1:50













    • Thanks @Steven, that's very helpful.

      – Filip Kočica
      Mar 22 at 8:49














    3












    3








    3







    documentclass{article}
    usepackage[margin=50pt]{geometry}
    usepackage{graphicx,amssymb}
    %newcommand{Teaser}[1]{globalHaveTeasertruedef@Teaser{#1}}
    newcommand{TeaserImage}[1]{raisebox{%
    .5dimexpr-height+htstrutbox-dpstrutbox}{%
    includegraphics[height=1in]{#1}}}
    begin{document}
    $%Teaser{
    TeaserImage{example-image}
    Rightarrow
    TeaserImage{example-image-a}
    Rightarrow
    TeaserImage{example-image-b}
    Rightarrow
    TeaserImage{example-image-c}
    $%}
    end{document}


    enter image description here






    share|improve this answer













    documentclass{article}
    usepackage[margin=50pt]{geometry}
    usepackage{graphicx,amssymb}
    %newcommand{Teaser}[1]{globalHaveTeasertruedef@Teaser{#1}}
    newcommand{TeaserImage}[1]{raisebox{%
    .5dimexpr-height+htstrutbox-dpstrutbox}{%
    includegraphics[height=1in]{#1}}}
    begin{document}
    $%Teaser{
    TeaserImage{example-image}
    Rightarrow
    TeaserImage{example-image-a}
    Rightarrow
    TeaserImage{example-image-b}
    Rightarrow
    TeaserImage{example-image-c}
    $%}
    end{document}


    enter image description here







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 22 at 1:19









    Steven B. SegletesSteven B. Segletes

    160k9205413




    160k9205413













    • Thanks @Steven - this did the job well. Also is there any other way without modification of the template (TeaserImage)?

      – Filip Kočica
      Mar 22 at 1:31











    • @FilipKočica You can redefine includegraphics, but I don't recommend it. You could modify the template by one letter, capitalizing includegraphics to Includegraphics, and define the latter to perform the raisebox accordingly.

      – Steven B. Segletes
      Mar 22 at 1:47











    • @FilipKočica after loading the template, you could letsvTeaserImageTeaserImage renewcommand{TeaserImage}[1]{raisebox{.5dimexpr-height+htstrutbox-dpstrutbox}{svTeaserImage{#1}}}

      – Steven B. Segletes
      Mar 22 at 1:50













    • Thanks @Steven, that's very helpful.

      – Filip Kočica
      Mar 22 at 8:49



















    • Thanks @Steven - this did the job well. Also is there any other way without modification of the template (TeaserImage)?

      – Filip Kočica
      Mar 22 at 1:31











    • @FilipKočica You can redefine includegraphics, but I don't recommend it. You could modify the template by one letter, capitalizing includegraphics to Includegraphics, and define the latter to perform the raisebox accordingly.

      – Steven B. Segletes
      Mar 22 at 1:47











    • @FilipKočica after loading the template, you could letsvTeaserImageTeaserImage renewcommand{TeaserImage}[1]{raisebox{.5dimexpr-height+htstrutbox-dpstrutbox}{svTeaserImage{#1}}}

      – Steven B. Segletes
      Mar 22 at 1:50













    • Thanks @Steven, that's very helpful.

      – Filip Kočica
      Mar 22 at 8:49

















    Thanks @Steven - this did the job well. Also is there any other way without modification of the template (TeaserImage)?

    – Filip Kočica
    Mar 22 at 1:31





    Thanks @Steven - this did the job well. Also is there any other way without modification of the template (TeaserImage)?

    – Filip Kočica
    Mar 22 at 1:31













    @FilipKočica You can redefine includegraphics, but I don't recommend it. You could modify the template by one letter, capitalizing includegraphics to Includegraphics, and define the latter to perform the raisebox accordingly.

    – Steven B. Segletes
    Mar 22 at 1:47





    @FilipKočica You can redefine includegraphics, but I don't recommend it. You could modify the template by one letter, capitalizing includegraphics to Includegraphics, and define the latter to perform the raisebox accordingly.

    – Steven B. Segletes
    Mar 22 at 1:47













    @FilipKočica after loading the template, you could letsvTeaserImageTeaserImage renewcommand{TeaserImage}[1]{raisebox{.5dimexpr-height+htstrutbox-dpstrutbox}{svTeaserImage{#1}}}

    – Steven B. Segletes
    Mar 22 at 1:50







    @FilipKočica after loading the template, you could letsvTeaserImageTeaserImage renewcommand{TeaserImage}[1]{raisebox{.5dimexpr-height+htstrutbox-dpstrutbox}{svTeaserImage{#1}}}

    – Steven B. Segletes
    Mar 22 at 1:50















    Thanks @Steven, that's very helpful.

    – Filip Kočica
    Mar 22 at 8:49





    Thanks @Steven, that's very helpful.

    – Filip Kočica
    Mar 22 at 8:49











    3














    Just spelling out my comment.



    documentclass{article}
    usepackage{graphicx}
    usepackage[margin=1in]{geometry}
    newcommand{TeaserImage}[1]{vcenter{hbox{includegraphics[height=1in]{#1}}}}
    begin{document}
    $TeaserImage{example-image-duck}
    Rightarrow
    TeaserImage{example-image-duck}
    Rightarrow
    TeaserImage{example-image-duck}
    Rightarrow
    TeaserImage{example-image-duck}$
    end{document}


    enter image description here






    share|improve this answer




























      3














      Just spelling out my comment.



      documentclass{article}
      usepackage{graphicx}
      usepackage[margin=1in]{geometry}
      newcommand{TeaserImage}[1]{vcenter{hbox{includegraphics[height=1in]{#1}}}}
      begin{document}
      $TeaserImage{example-image-duck}
      Rightarrow
      TeaserImage{example-image-duck}
      Rightarrow
      TeaserImage{example-image-duck}
      Rightarrow
      TeaserImage{example-image-duck}$
      end{document}


      enter image description here






      share|improve this answer


























        3












        3








        3







        Just spelling out my comment.



        documentclass{article}
        usepackage{graphicx}
        usepackage[margin=1in]{geometry}
        newcommand{TeaserImage}[1]{vcenter{hbox{includegraphics[height=1in]{#1}}}}
        begin{document}
        $TeaserImage{example-image-duck}
        Rightarrow
        TeaserImage{example-image-duck}
        Rightarrow
        TeaserImage{example-image-duck}
        Rightarrow
        TeaserImage{example-image-duck}$
        end{document}


        enter image description here






        share|improve this answer













        Just spelling out my comment.



        documentclass{article}
        usepackage{graphicx}
        usepackage[margin=1in]{geometry}
        newcommand{TeaserImage}[1]{vcenter{hbox{includegraphics[height=1in]{#1}}}}
        begin{document}
        $TeaserImage{example-image-duck}
        Rightarrow
        TeaserImage{example-image-duck}
        Rightarrow
        TeaserImage{example-image-duck}
        Rightarrow
        TeaserImage{example-image-duck}$
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 22 at 1:25









        marmotmarmot

        113k5145275




        113k5145275






























            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%2f480810%2fvertical-alignment-of-arrow-between-images%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 change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?