What units are pgfphysicalheight and pgfphysicalwidth defined in?












2















I often use pgfphysicalheight and pgfphysicalwidth from the pgfpages package to define sizes dynamically based on the dimensions of my page (which vary). For example, here's a "dynamic" vertical space:



vspace*{.04pgfphysicalheight}


What units are these pgf values actually in? In other words, what is the value of pgfphysicalheight if my document height is 10in?



I found nothing in the pgfpages docs. Also tried logging the values with show, but got something cryptic like "dimen195" which I couldn't decipher further.










share|improve this question




















  • 2





    use showthe not show

    – David Carlisle
    5 hours ago
















2















I often use pgfphysicalheight and pgfphysicalwidth from the pgfpages package to define sizes dynamically based on the dimensions of my page (which vary). For example, here's a "dynamic" vertical space:



vspace*{.04pgfphysicalheight}


What units are these pgf values actually in? In other words, what is the value of pgfphysicalheight if my document height is 10in?



I found nothing in the pgfpages docs. Also tried logging the values with show, but got something cryptic like "dimen195" which I couldn't decipher further.










share|improve this question




















  • 2





    use showthe not show

    – David Carlisle
    5 hours ago














2












2








2








I often use pgfphysicalheight and pgfphysicalwidth from the pgfpages package to define sizes dynamically based on the dimensions of my page (which vary). For example, here's a "dynamic" vertical space:



vspace*{.04pgfphysicalheight}


What units are these pgf values actually in? In other words, what is the value of pgfphysicalheight if my document height is 10in?



I found nothing in the pgfpages docs. Also tried logging the values with show, but got something cryptic like "dimen195" which I couldn't decipher further.










share|improve this question
















I often use pgfphysicalheight and pgfphysicalwidth from the pgfpages package to define sizes dynamically based on the dimensions of my page (which vary). For example, here's a "dynamic" vertical space:



vspace*{.04pgfphysicalheight}


What units are these pgf values actually in? In other words, what is the value of pgfphysicalheight if my document height is 10in?



I found nothing in the pgfpages docs. Also tried logging the values with show, but got something cryptic like "dimen195" which I couldn't decipher further.







tikz-pgf lengths pgfpages






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 5 hours ago









David Carlisle

501k4211471897




501k4211471897










asked 5 hours ago









kontextifykontextify

1765




1765








  • 2





    use showthe not show

    – David Carlisle
    5 hours ago














  • 2





    use showthe not show

    – David Carlisle
    5 hours ago








2




2





use showthe not show

– David Carlisle
5 hours ago





use showthe not show

– David Carlisle
5 hours ago










1 Answer
1






active

oldest

votes


















5














A TeX length (dimen or skip) register does not store the units used when the value is set, whether you use pt or cm or whatever is not recorded and it just saves the value as an integer which is the length in sp, if you look at the value using the or showthe then TeX will show the value using pt units (that is, the stored integer divided by 65536)



On the terminal you could see this for example by:



$ latex 
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=latex)
restricted write18 enabled.
**relax
entering extended mode
LaTeX2e <2018-12-01>

*textheight=10in

*showthetextheight
> 722.7pt.
<*> showthetextheight





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%2f487411%2fwhat-units-are-pgfphysicalheight-and-pgfphysicalwidth-defined-in%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









    5














    A TeX length (dimen or skip) register does not store the units used when the value is set, whether you use pt or cm or whatever is not recorded and it just saves the value as an integer which is the length in sp, if you look at the value using the or showthe then TeX will show the value using pt units (that is, the stored integer divided by 65536)



    On the terminal you could see this for example by:



    $ latex 
    This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=latex)
    restricted write18 enabled.
    **relax
    entering extended mode
    LaTeX2e <2018-12-01>

    *textheight=10in

    *showthetextheight
    > 722.7pt.
    <*> showthetextheight





    share|improve this answer






























      5














      A TeX length (dimen or skip) register does not store the units used when the value is set, whether you use pt or cm or whatever is not recorded and it just saves the value as an integer which is the length in sp, if you look at the value using the or showthe then TeX will show the value using pt units (that is, the stored integer divided by 65536)



      On the terminal you could see this for example by:



      $ latex 
      This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=latex)
      restricted write18 enabled.
      **relax
      entering extended mode
      LaTeX2e <2018-12-01>

      *textheight=10in

      *showthetextheight
      > 722.7pt.
      <*> showthetextheight





      share|improve this answer




























        5












        5








        5







        A TeX length (dimen or skip) register does not store the units used when the value is set, whether you use pt or cm or whatever is not recorded and it just saves the value as an integer which is the length in sp, if you look at the value using the or showthe then TeX will show the value using pt units (that is, the stored integer divided by 65536)



        On the terminal you could see this for example by:



        $ latex 
        This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=latex)
        restricted write18 enabled.
        **relax
        entering extended mode
        LaTeX2e <2018-12-01>

        *textheight=10in

        *showthetextheight
        > 722.7pt.
        <*> showthetextheight





        share|improve this answer















        A TeX length (dimen or skip) register does not store the units used when the value is set, whether you use pt or cm or whatever is not recorded and it just saves the value as an integer which is the length in sp, if you look at the value using the or showthe then TeX will show the value using pt units (that is, the stored integer divided by 65536)



        On the terminal you could see this for example by:



        $ latex 
        This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=latex)
        restricted write18 enabled.
        **relax
        entering extended mode
        LaTeX2e <2018-12-01>

        *textheight=10in

        *showthetextheight
        > 722.7pt.
        <*> showthetextheight






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 5 hours ago

























        answered 5 hours ago









        David CarlisleDavid Carlisle

        501k4211471897




        501k4211471897






























            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%2f487411%2fwhat-units-are-pgfphysicalheight-and-pgfphysicalwidth-defined-in%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

            Statuo de Libereco

            Tanganjiko

            Liste der Baudenkmäler in Enneberg