How to use subfig package in articleclass: spieman?











up vote
2
down vote

favorite












I am using class article spieman to prepare my document. However, I am not able to use subfig package. Can anybody guide me about splitting a figure window into the multiple figures in articleclass spieman?



Sample code is pasted below and screenshot of the error message is attached herewith. Please help.



 documentclass[12pt]{spieman}  % 12pt font required by SPIE;

usepackage{graphicx}
usepackage{subfig}
usepackage{setspace}
%onehalfspacing
usepackage{tocloft}

title{Sample Paper}

author[a]{Samadhan }
renewcommand{cftdotsep}{cftnodots}
cftpagenumbersoff{figure}
cftpagenumbersoff{table}
begin{document}
maketitle

begin{abstract}

end{abstract}

keywords{a,b,c}

begin{spacing}{1} % use double spacing for rest of manuscript
section{Introduction}
label{sect:intro} % label{} allows reference to this section
begin{figure}[!h]
begin{center}
graphicspath{{F:/Figures/spie_figures}}
subfloat[Original Multispectral ]{
includegraphics[width=60 mm, height=60 mm]{a.jpg}
}
subfloat[Subscene]{
includegraphics[width=60 mm, height=60 mm]{b.jpg}
}\
caption{original and processed dataset}
label{fig:fuse_Figure}
end{figure}

section{Conclusions}

listoffigures
listoftables

end{spacing}
end{document}









share|improve this question
























  • Where does the class spieman comes from? Do you have a link? Please add the complete error message you get to your question (just copy it from your log file)!
    – Kurt
    Dec 2 at 20:55















up vote
2
down vote

favorite












I am using class article spieman to prepare my document. However, I am not able to use subfig package. Can anybody guide me about splitting a figure window into the multiple figures in articleclass spieman?



Sample code is pasted below and screenshot of the error message is attached herewith. Please help.



 documentclass[12pt]{spieman}  % 12pt font required by SPIE;

usepackage{graphicx}
usepackage{subfig}
usepackage{setspace}
%onehalfspacing
usepackage{tocloft}

title{Sample Paper}

author[a]{Samadhan }
renewcommand{cftdotsep}{cftnodots}
cftpagenumbersoff{figure}
cftpagenumbersoff{table}
begin{document}
maketitle

begin{abstract}

end{abstract}

keywords{a,b,c}

begin{spacing}{1} % use double spacing for rest of manuscript
section{Introduction}
label{sect:intro} % label{} allows reference to this section
begin{figure}[!h]
begin{center}
graphicspath{{F:/Figures/spie_figures}}
subfloat[Original Multispectral ]{
includegraphics[width=60 mm, height=60 mm]{a.jpg}
}
subfloat[Subscene]{
includegraphics[width=60 mm, height=60 mm]{b.jpg}
}\
caption{original and processed dataset}
label{fig:fuse_Figure}
end{figure}

section{Conclusions}

listoffigures
listoftables

end{spacing}
end{document}









share|improve this question
























  • Where does the class spieman comes from? Do you have a link? Please add the complete error message you get to your question (just copy it from your log file)!
    – Kurt
    Dec 2 at 20:55













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I am using class article spieman to prepare my document. However, I am not able to use subfig package. Can anybody guide me about splitting a figure window into the multiple figures in articleclass spieman?



Sample code is pasted below and screenshot of the error message is attached herewith. Please help.



 documentclass[12pt]{spieman}  % 12pt font required by SPIE;

usepackage{graphicx}
usepackage{subfig}
usepackage{setspace}
%onehalfspacing
usepackage{tocloft}

title{Sample Paper}

author[a]{Samadhan }
renewcommand{cftdotsep}{cftnodots}
cftpagenumbersoff{figure}
cftpagenumbersoff{table}
begin{document}
maketitle

begin{abstract}

end{abstract}

keywords{a,b,c}

begin{spacing}{1} % use double spacing for rest of manuscript
section{Introduction}
label{sect:intro} % label{} allows reference to this section
begin{figure}[!h]
begin{center}
graphicspath{{F:/Figures/spie_figures}}
subfloat[Original Multispectral ]{
includegraphics[width=60 mm, height=60 mm]{a.jpg}
}
subfloat[Subscene]{
includegraphics[width=60 mm, height=60 mm]{b.jpg}
}\
caption{original and processed dataset}
label{fig:fuse_Figure}
end{figure}

section{Conclusions}

listoffigures
listoftables

end{spacing}
end{document}









share|improve this question















I am using class article spieman to prepare my document. However, I am not able to use subfig package. Can anybody guide me about splitting a figure window into the multiple figures in articleclass spieman?



Sample code is pasted below and screenshot of the error message is attached herewith. Please help.



 documentclass[12pt]{spieman}  % 12pt font required by SPIE;

usepackage{graphicx}
usepackage{subfig}
usepackage{setspace}
%onehalfspacing
usepackage{tocloft}

title{Sample Paper}

author[a]{Samadhan }
renewcommand{cftdotsep}{cftnodots}
cftpagenumbersoff{figure}
cftpagenumbersoff{table}
begin{document}
maketitle

begin{abstract}

end{abstract}

keywords{a,b,c}

begin{spacing}{1} % use double spacing for rest of manuscript
section{Introduction}
label{sect:intro} % label{} allows reference to this section
begin{figure}[!h]
begin{center}
graphicspath{{F:/Figures/spie_figures}}
subfloat[Original Multispectral ]{
includegraphics[width=60 mm, height=60 mm]{a.jpg}
}
subfloat[Subscene]{
includegraphics[width=60 mm, height=60 mm]{b.jpg}
}\
caption{original and processed dataset}
label{fig:fuse_Figure}
end{figure}

section{Conclusions}

listoffigures
listoftables

end{spacing}
end{document}






subfig






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 2 at 20:49









AndréC

6,89711140




6,89711140










asked Dec 2 at 20:44









sckulkarni

713




713












  • Where does the class spieman comes from? Do you have a link? Please add the complete error message you get to your question (just copy it from your log file)!
    – Kurt
    Dec 2 at 20:55


















  • Where does the class spieman comes from? Do you have a link? Please add the complete error message you get to your question (just copy it from your log file)!
    – Kurt
    Dec 2 at 20:55
















Where does the class spieman comes from? Do you have a link? Please add the complete error message you get to your question (just copy it from your log file)!
– Kurt
Dec 2 at 20:55




Where does the class spieman comes from? Do you have a link? Please add the complete error message you get to your question (just copy it from your log file)!
– Kurt
Dec 2 at 20:55










1 Answer
1






active

oldest

votes

















up vote
1
down vote













A sample file for spieman.cls uses the deprecated subfigure package. You can and should use subfig, but with the caption=false option.



Here's an example.



I removed all setting about setspace and tocloft: the copy editors will not be happy at all if you customize the format they want.



Don't specify both width and height for images: this would likely distort them.



documentclass[12pt]{spieman}  % 12pt font required by SPIE;

usepackage{graphicx}
usepackage[caption=false]{subfig}

title{Sample Paper}

author[a]{Samadhan}

begin{document}

maketitle

begin{abstract}
Abstract
end{abstract}

keywords{a,b,c}

section{Introduction}
label{sect:intro} % label{} allows reference to this section

begin{figure}[!htp]
centering

subfloat[Original Multispectral]{%
includegraphics[width=60mm]{example-image-a}%
}quad
subfloat[Subscene]{%
includegraphics[width=60 mm]{example-image-b}
}

caption{original and processed dataset}
label{fig:fuse_Figure}
end{figure}

section{Conclusions}

listoffigures
listoftables

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',
    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%2f462854%2fhow-to-use-subfig-package-in-articleclass-spieman%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








    up vote
    1
    down vote













    A sample file for spieman.cls uses the deprecated subfigure package. You can and should use subfig, but with the caption=false option.



    Here's an example.



    I removed all setting about setspace and tocloft: the copy editors will not be happy at all if you customize the format they want.



    Don't specify both width and height for images: this would likely distort them.



    documentclass[12pt]{spieman}  % 12pt font required by SPIE;

    usepackage{graphicx}
    usepackage[caption=false]{subfig}

    title{Sample Paper}

    author[a]{Samadhan}

    begin{document}

    maketitle

    begin{abstract}
    Abstract
    end{abstract}

    keywords{a,b,c}

    section{Introduction}
    label{sect:intro} % label{} allows reference to this section

    begin{figure}[!htp]
    centering

    subfloat[Original Multispectral]{%
    includegraphics[width=60mm]{example-image-a}%
    }quad
    subfloat[Subscene]{%
    includegraphics[width=60 mm]{example-image-b}
    }

    caption{original and processed dataset}
    label{fig:fuse_Figure}
    end{figure}

    section{Conclusions}

    listoffigures
    listoftables

    end{document}


    enter image description here






    share|improve this answer

























      up vote
      1
      down vote













      A sample file for spieman.cls uses the deprecated subfigure package. You can and should use subfig, but with the caption=false option.



      Here's an example.



      I removed all setting about setspace and tocloft: the copy editors will not be happy at all if you customize the format they want.



      Don't specify both width and height for images: this would likely distort them.



      documentclass[12pt]{spieman}  % 12pt font required by SPIE;

      usepackage{graphicx}
      usepackage[caption=false]{subfig}

      title{Sample Paper}

      author[a]{Samadhan}

      begin{document}

      maketitle

      begin{abstract}
      Abstract
      end{abstract}

      keywords{a,b,c}

      section{Introduction}
      label{sect:intro} % label{} allows reference to this section

      begin{figure}[!htp]
      centering

      subfloat[Original Multispectral]{%
      includegraphics[width=60mm]{example-image-a}%
      }quad
      subfloat[Subscene]{%
      includegraphics[width=60 mm]{example-image-b}
      }

      caption{original and processed dataset}
      label{fig:fuse_Figure}
      end{figure}

      section{Conclusions}

      listoffigures
      listoftables

      end{document}


      enter image description here






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        A sample file for spieman.cls uses the deprecated subfigure package. You can and should use subfig, but with the caption=false option.



        Here's an example.



        I removed all setting about setspace and tocloft: the copy editors will not be happy at all if you customize the format they want.



        Don't specify both width and height for images: this would likely distort them.



        documentclass[12pt]{spieman}  % 12pt font required by SPIE;

        usepackage{graphicx}
        usepackage[caption=false]{subfig}

        title{Sample Paper}

        author[a]{Samadhan}

        begin{document}

        maketitle

        begin{abstract}
        Abstract
        end{abstract}

        keywords{a,b,c}

        section{Introduction}
        label{sect:intro} % label{} allows reference to this section

        begin{figure}[!htp]
        centering

        subfloat[Original Multispectral]{%
        includegraphics[width=60mm]{example-image-a}%
        }quad
        subfloat[Subscene]{%
        includegraphics[width=60 mm]{example-image-b}
        }

        caption{original and processed dataset}
        label{fig:fuse_Figure}
        end{figure}

        section{Conclusions}

        listoffigures
        listoftables

        end{document}


        enter image description here






        share|improve this answer












        A sample file for spieman.cls uses the deprecated subfigure package. You can and should use subfig, but with the caption=false option.



        Here's an example.



        I removed all setting about setspace and tocloft: the copy editors will not be happy at all if you customize the format they want.



        Don't specify both width and height for images: this would likely distort them.



        documentclass[12pt]{spieman}  % 12pt font required by SPIE;

        usepackage{graphicx}
        usepackage[caption=false]{subfig}

        title{Sample Paper}

        author[a]{Samadhan}

        begin{document}

        maketitle

        begin{abstract}
        Abstract
        end{abstract}

        keywords{a,b,c}

        section{Introduction}
        label{sect:intro} % label{} allows reference to this section

        begin{figure}[!htp]
        centering

        subfloat[Original Multispectral]{%
        includegraphics[width=60mm]{example-image-a}%
        }quad
        subfloat[Subscene]{%
        includegraphics[width=60 mm]{example-image-b}
        }

        caption{original and processed dataset}
        label{fig:fuse_Figure}
        end{figure}

        section{Conclusions}

        listoffigures
        listoftables

        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 2 at 21:00









        egreg

        703k8618743151




        703k8618743151






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f462854%2fhow-to-use-subfig-package-in-articleclass-spieman%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?