Is `strip@pt` removing the hundreds as well as the `pt`?











up vote
1
down vote

favorite












I was getting some strange results trying to position things in beamer, and I realised that strip@pt was removing not only the pt, but also the hundreds from the number.



Here's my MWE:



documentclass{beamer} 

makeatletter
newcommand{testOne}{dimexpr100ptrelax}
newcommand{testTwo}{strip@ptdimexpr100ptrelax}
makeatother

begin{document}
begin{frame}
thetestOne

thetestTwo
end{frame}
end{document}


and the result:



enter image description here



This is a bug, right? Or is there something I'm doing wrong?



For the record, I need to remove the dimensions to avoid a warning from putat. In case this is an XY problem, I'm open for suggestions on better ways to position things on the slide.










share|improve this question


















  • 1




    it's not strip@pt removing the 1, but the the that you added (as the error message shows)
    – David Carlisle
    Dec 6 at 0:12










  • thetestTwo yields thestrip@ptdimexpr100ptrelax yields the100 . Here the does not find that kind of expression it expects but the digit 1 and thus delivers an error-message and the digit 0, so in the end you have an error-message and the sequence 000. So the answer is: It is not a bug. You are doing something wrong.
    – Ulrich Diez
    Dec 6 at 0:24















up vote
1
down vote

favorite












I was getting some strange results trying to position things in beamer, and I realised that strip@pt was removing not only the pt, but also the hundreds from the number.



Here's my MWE:



documentclass{beamer} 

makeatletter
newcommand{testOne}{dimexpr100ptrelax}
newcommand{testTwo}{strip@ptdimexpr100ptrelax}
makeatother

begin{document}
begin{frame}
thetestOne

thetestTwo
end{frame}
end{document}


and the result:



enter image description here



This is a bug, right? Or is there something I'm doing wrong?



For the record, I need to remove the dimensions to avoid a warning from putat. In case this is an XY problem, I'm open for suggestions on better ways to position things on the slide.










share|improve this question


















  • 1




    it's not strip@pt removing the 1, but the the that you added (as the error message shows)
    – David Carlisle
    Dec 6 at 0:12










  • thetestTwo yields thestrip@ptdimexpr100ptrelax yields the100 . Here the does not find that kind of expression it expects but the digit 1 and thus delivers an error-message and the digit 0, so in the end you have an error-message and the sequence 000. So the answer is: It is not a bug. You are doing something wrong.
    – Ulrich Diez
    Dec 6 at 0:24













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I was getting some strange results trying to position things in beamer, and I realised that strip@pt was removing not only the pt, but also the hundreds from the number.



Here's my MWE:



documentclass{beamer} 

makeatletter
newcommand{testOne}{dimexpr100ptrelax}
newcommand{testTwo}{strip@ptdimexpr100ptrelax}
makeatother

begin{document}
begin{frame}
thetestOne

thetestTwo
end{frame}
end{document}


and the result:



enter image description here



This is a bug, right? Or is there something I'm doing wrong?



For the record, I need to remove the dimensions to avoid a warning from putat. In case this is an XY problem, I'm open for suggestions on better ways to position things on the slide.










share|improve this question













I was getting some strange results trying to position things in beamer, and I realised that strip@pt was removing not only the pt, but also the hundreds from the number.



Here's my MWE:



documentclass{beamer} 

makeatletter
newcommand{testOne}{dimexpr100ptrelax}
newcommand{testTwo}{strip@ptdimexpr100ptrelax}
makeatother

begin{document}
begin{frame}
thetestOne

thetestTwo
end{frame}
end{document}


and the result:



enter image description here



This is a bug, right? Or is there something I'm doing wrong?



For the record, I need to remove the dimensions to avoid a warning from putat. In case this is an XY problem, I'm open for suggestions on better ways to position things on the slide.







dimension-expressions






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 6 at 0:01









craq

2081416




2081416








  • 1




    it's not strip@pt removing the 1, but the the that you added (as the error message shows)
    – David Carlisle
    Dec 6 at 0:12










  • thetestTwo yields thestrip@ptdimexpr100ptrelax yields the100 . Here the does not find that kind of expression it expects but the digit 1 and thus delivers an error-message and the digit 0, so in the end you have an error-message and the sequence 000. So the answer is: It is not a bug. You are doing something wrong.
    – Ulrich Diez
    Dec 6 at 0:24














  • 1




    it's not strip@pt removing the 1, but the the that you added (as the error message shows)
    – David Carlisle
    Dec 6 at 0:12










  • thetestTwo yields thestrip@ptdimexpr100ptrelax yields the100 . Here the does not find that kind of expression it expects but the digit 1 and thus delivers an error-message and the digit 0, so in the end you have an error-message and the sequence 000. So the answer is: It is not a bug. You are doing something wrong.
    – Ulrich Diez
    Dec 6 at 0:24








1




1




it's not strip@pt removing the 1, but the the that you added (as the error message shows)
– David Carlisle
Dec 6 at 0:12




it's not strip@pt removing the 1, but the the that you added (as the error message shows)
– David Carlisle
Dec 6 at 0:12












thetestTwo yields thestrip@ptdimexpr100ptrelax yields the100 . Here the does not find that kind of expression it expects but the digit 1 and thus delivers an error-message and the digit 0, so in the end you have an error-message and the sequence 000. So the answer is: It is not a bug. You are doing something wrong.
– Ulrich Diez
Dec 6 at 0:24




thetestTwo yields thestrip@ptdimexpr100ptrelax yields the100 . Here the does not find that kind of expression it expects but the digit 1 and thus delivers an error-message and the digit 0, so in the end you have an error-message and the sequence 000. So the answer is: It is not a bug. You are doing something wrong.
– Ulrich Diez
Dec 6 at 0:24










1 Answer
1






active

oldest

votes

















up vote
5
down vote



accepted










After an error message you should not even look at the generated PDF. the posted document produces



! You can't use `the character 1' after the.
<argument> 1
00
l.13 end{frame}

?


You can not use the on 100



documentclass{beamer} 

makeatletter
newcommand{testOne}{dimexpr100ptrelax}
newcommand{testTwo}{strip@ptdimexpr100ptrelax}
makeatother

begin{document}
begin{frame}
thetestOne

testTwo
end{frame}
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%2f463431%2fis-strippt-removing-the-hundreds-as-well-as-the-pt%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
    5
    down vote



    accepted










    After an error message you should not even look at the generated PDF. the posted document produces



    ! You can't use `the character 1' after the.
    <argument> 1
    00
    l.13 end{frame}

    ?


    You can not use the on 100



    documentclass{beamer} 

    makeatletter
    newcommand{testOne}{dimexpr100ptrelax}
    newcommand{testTwo}{strip@ptdimexpr100ptrelax}
    makeatother

    begin{document}
    begin{frame}
    thetestOne

    testTwo
    end{frame}
    end{document}


    enter image description here






    share|improve this answer

























      up vote
      5
      down vote



      accepted










      After an error message you should not even look at the generated PDF. the posted document produces



      ! You can't use `the character 1' after the.
      <argument> 1
      00
      l.13 end{frame}

      ?


      You can not use the on 100



      documentclass{beamer} 

      makeatletter
      newcommand{testOne}{dimexpr100ptrelax}
      newcommand{testTwo}{strip@ptdimexpr100ptrelax}
      makeatother

      begin{document}
      begin{frame}
      thetestOne

      testTwo
      end{frame}
      end{document}


      enter image description here






      share|improve this answer























        up vote
        5
        down vote



        accepted







        up vote
        5
        down vote



        accepted






        After an error message you should not even look at the generated PDF. the posted document produces



        ! You can't use `the character 1' after the.
        <argument> 1
        00
        l.13 end{frame}

        ?


        You can not use the on 100



        documentclass{beamer} 

        makeatletter
        newcommand{testOne}{dimexpr100ptrelax}
        newcommand{testTwo}{strip@ptdimexpr100ptrelax}
        makeatother

        begin{document}
        begin{frame}
        thetestOne

        testTwo
        end{frame}
        end{document}


        enter image description here






        share|improve this answer












        After an error message you should not even look at the generated PDF. the posted document produces



        ! You can't use `the character 1' after the.
        <argument> 1
        00
        l.13 end{frame}

        ?


        You can not use the on 100



        documentclass{beamer} 

        makeatletter
        newcommand{testOne}{dimexpr100ptrelax}
        newcommand{testTwo}{strip@ptdimexpr100ptrelax}
        makeatother

        begin{document}
        begin{frame}
        thetestOne

        testTwo
        end{frame}
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 6 at 0:08









        David Carlisle

        480k3811121848




        480k3811121848






























            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%2f463431%2fis-strippt-removing-the-hundreds-as-well-as-the-pt%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?

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

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents