ifPDFTeX does not recognize pdflatex

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











up vote
2
down vote

favorite












I downloaded iftex from CTAN and installed it. I think I'm using it according to the documentation:



documentclassarticle
usepackageiftex
ifPDFTeX
errmessageDon't use pdflatex. Use plain latex and dvipdf
else
errmessageGood. You aren't using pdflatex
fi
end


However, this construct does not recognize pdflatex . I get the message "Good. You aren't using pdflatex" whether I use latex or pdflatex.



$ latex iftex.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./iftex.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/iftex/iftex.sty)
! Good. You aren't using pdflatex.
l.6 errmessageGood. You aren't using pdflatex

? x
No pages of output.
Transcript written on iftex.log.
$
$ pdflatex iftex.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./iftex.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
[...]
nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/iftex/iftex.sty)
! Good. You aren't using pdflatex.
l.6 errmessageGood. You aren't using pdflatex

? x
No pages of output.
Transcript written on iftex.log.
$


Am I doing something wrong?










share|improve this question





















  • What system are you running this on? The sources seem outdated, including the compiler. I can't replicate your result on TeX Live 2018 with all content up-to-date.
    – Werner
    2 hours ago














up vote
2
down vote

favorite












I downloaded iftex from CTAN and installed it. I think I'm using it according to the documentation:



documentclassarticle
usepackageiftex
ifPDFTeX
errmessageDon't use pdflatex. Use plain latex and dvipdf
else
errmessageGood. You aren't using pdflatex
fi
end


However, this construct does not recognize pdflatex . I get the message "Good. You aren't using pdflatex" whether I use latex or pdflatex.



$ latex iftex.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./iftex.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/iftex/iftex.sty)
! Good. You aren't using pdflatex.
l.6 errmessageGood. You aren't using pdflatex

? x
No pages of output.
Transcript written on iftex.log.
$
$ pdflatex iftex.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./iftex.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
[...]
nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/iftex/iftex.sty)
! Good. You aren't using pdflatex.
l.6 errmessageGood. You aren't using pdflatex

? x
No pages of output.
Transcript written on iftex.log.
$


Am I doing something wrong?










share|improve this question





















  • What system are you running this on? The sources seem outdated, including the compiler. I can't replicate your result on TeX Live 2018 with all content up-to-date.
    – Werner
    2 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I downloaded iftex from CTAN and installed it. I think I'm using it according to the documentation:



documentclassarticle
usepackageiftex
ifPDFTeX
errmessageDon't use pdflatex. Use plain latex and dvipdf
else
errmessageGood. You aren't using pdflatex
fi
end


However, this construct does not recognize pdflatex . I get the message "Good. You aren't using pdflatex" whether I use latex or pdflatex.



$ latex iftex.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./iftex.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/iftex/iftex.sty)
! Good. You aren't using pdflatex.
l.6 errmessageGood. You aren't using pdflatex

? x
No pages of output.
Transcript written on iftex.log.
$
$ pdflatex iftex.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./iftex.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
[...]
nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/iftex/iftex.sty)
! Good. You aren't using pdflatex.
l.6 errmessageGood. You aren't using pdflatex

? x
No pages of output.
Transcript written on iftex.log.
$


Am I doing something wrong?










share|improve this question













I downloaded iftex from CTAN and installed it. I think I'm using it according to the documentation:



documentclassarticle
usepackageiftex
ifPDFTeX
errmessageDon't use pdflatex. Use plain latex and dvipdf
else
errmessageGood. You aren't using pdflatex
fi
end


However, this construct does not recognize pdflatex . I get the message "Good. You aren't using pdflatex" whether I use latex or pdflatex.



$ latex iftex.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./iftex.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/iftex/iftex.sty)
! Good. You aren't using pdflatex.
l.6 errmessageGood. You aren't using pdflatex

? x
No pages of output.
Transcript written on iftex.log.
$
$ pdflatex iftex.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./iftex.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
[...]
nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/iftex/iftex.sty)
! Good. You aren't using pdflatex.
l.6 errmessageGood. You aren't using pdflatex

? x
No pages of output.
Transcript written on iftex.log.
$


Am I doing something wrong?







pdftex






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 hours ago









hymie

1505




1505











  • What system are you running this on? The sources seem outdated, including the compiler. I can't replicate your result on TeX Live 2018 with all content up-to-date.
    – Werner
    2 hours ago
















  • What system are you running this on? The sources seem outdated, including the compiler. I can't replicate your result on TeX Live 2018 with all content up-to-date.
    – Werner
    2 hours ago















What system are you running this on? The sources seem outdated, including the compiler. I can't replicate your result on TeX Live 2018 with all content up-to-date.
– Werner
2 hours ago




What system are you running this on? The sources seem outdated, including the compiler. I can't replicate your result on TeX Live 2018 with all content up-to-date.
– Werner
2 hours ago










2 Answers
2






active

oldest

votes

















up vote
3
down vote













The ifPDFTEX test is checking the engine in use (TeX90 vs pdfTeX vs XeTeX vs LuaTeX), not the output format. For that, you want the ifpdf package



documentclassarticle
usepackageifpdf
ifpdf
errmessageDon't use pdflatex. Use plain latex and dvipdf
else
errmessageGood. You aren't using pdflatex
fi
end





share|improve this answer



























    up vote
    1
    down vote













    In recent TeX Distributions latex is actually a symbolic link (or the equivalent in systems that don't support symbolic links) to pdftex (actually pdfetex) which runs the latex format in dvi mode.






    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%2f456442%2fifpdftex-does-not-recognize-pdflatex%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      The ifPDFTEX test is checking the engine in use (TeX90 vs pdfTeX vs XeTeX vs LuaTeX), not the output format. For that, you want the ifpdf package



      documentclassarticle
      usepackageifpdf
      ifpdf
      errmessageDon't use pdflatex. Use plain latex and dvipdf
      else
      errmessageGood. You aren't using pdflatex
      fi
      end





      share|improve this answer
























        up vote
        3
        down vote













        The ifPDFTEX test is checking the engine in use (TeX90 vs pdfTeX vs XeTeX vs LuaTeX), not the output format. For that, you want the ifpdf package



        documentclassarticle
        usepackageifpdf
        ifpdf
        errmessageDon't use pdflatex. Use plain latex and dvipdf
        else
        errmessageGood. You aren't using pdflatex
        fi
        end





        share|improve this answer






















          up vote
          3
          down vote










          up vote
          3
          down vote









          The ifPDFTEX test is checking the engine in use (TeX90 vs pdfTeX vs XeTeX vs LuaTeX), not the output format. For that, you want the ifpdf package



          documentclassarticle
          usepackageifpdf
          ifpdf
          errmessageDon't use pdflatex. Use plain latex and dvipdf
          else
          errmessageGood. You aren't using pdflatex
          fi
          end





          share|improve this answer












          The ifPDFTEX test is checking the engine in use (TeX90 vs pdfTeX vs XeTeX vs LuaTeX), not the output format. For that, you want the ifpdf package



          documentclassarticle
          usepackageifpdf
          ifpdf
          errmessageDon't use pdflatex. Use plain latex and dvipdf
          else
          errmessageGood. You aren't using pdflatex
          fi
          end






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 1 hour ago









          Joseph Wright♦

          199k21549869




          199k21549869




















              up vote
              1
              down vote













              In recent TeX Distributions latex is actually a symbolic link (or the equivalent in systems that don't support symbolic links) to pdftex (actually pdfetex) which runs the latex format in dvi mode.






              share|improve this answer
























                up vote
                1
                down vote













                In recent TeX Distributions latex is actually a symbolic link (or the equivalent in systems that don't support symbolic links) to pdftex (actually pdfetex) which runs the latex format in dvi mode.






                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  In recent TeX Distributions latex is actually a symbolic link (or the equivalent in systems that don't support symbolic links) to pdftex (actually pdfetex) which runs the latex format in dvi mode.






                  share|improve this answer












                  In recent TeX Distributions latex is actually a symbolic link (or the equivalent in systems that don't support symbolic links) to pdftex (actually pdfetex) which runs the latex format in dvi mode.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 hours ago









                  Herb Schulz

                  1,597177




                  1,597177



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456442%2fifpdftex-does-not-recognize-pdflatex%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