Automatic sheet size in text label in QGIS Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Accessing and/or manipulating table data in QGIS composer label?QGIS use item id in print composer for relationsPopulating label fields in print composerDynamic label generated by python in composer template?Creating QGIS text label in composer calculating values from attribute table?Adding text label with currently joined field name in QGIS?Adding short CRS description to composer template?PyQGIS - Print Layout Label text sizeAdjust label/symbol size in print composer automatically when choosing different scale for atlasShowing some feature in text label in Print Composer from Print Layout itself in QGIS 3.4.5
How many time has Arya actually used Needle?
How do living politicians protect their readily obtainable signatures from misuse?
Simple Http Server
What is a more techy Technical Writer job title that isn't cutesy or confusing?
Trying to understand entropy as a novice in thermodynamics
What is the origin of 落第?
How can I prevent/balance waiting and turtling as a response to cooldown mechanics
The test team as an enemy of development? And how can this be avoided?
Is openssl rand command cryptographically secure?
Mounting TV on a weird wall that has some material between the drywall and stud
Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?
Why datecode is SO IMPORTANT to chip manufacturers?
Flight departed from the gate 5 min before scheduled departure time. Refund options
How does light 'choose' between wave and particle behaviour?
Can an iPhone 7 be made to function as a NFC Tag?
Monty Hall Problem-Probability Paradox
How much damage would a cupful of neutron star matter do to the Earth?
What does Turing mean by this statement?
AppleTVs create a chatty alternate WiFi network
Why do early math courses focus on the cross sections of a cone and not on other 3D objects?
Is there hard evidence that the grant peer review system performs significantly better than random?
If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?
Tips to organize LaTeX presentations for a semester
What would you call this weird metallic apparatus that allows you to lift people?
Automatic sheet size in text label in QGIS
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Accessing and/or manipulating table data in QGIS composer label?QGIS use item id in print composer for relationsPopulating label fields in print composerDynamic label generated by python in composer template?Creating QGIS text label in composer calculating values from attribute table?Adding text label with currently joined field name in QGIS?Adding short CRS description to composer template?PyQGIS - Print Layout Label text sizeAdjust label/symbol size in print composer automatically when choosing different scale for atlasShowing some feature in text label in Print Composer from Print Layout itself in QGIS 3.4.5
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm in Print Composer and want to develop a template. In that template, I would like to add a text Label which automatically represents the size of the sheet in the format "Sheet size: 841x1189".
There is got to be an expression for that but I can't find it. Can someone recap it for me?
qgis labeling print-composer
add a comment |
I'm in Print Composer and want to develop a template. In that template, I would like to add a text Label which automatically represents the size of the sheet in the format "Sheet size: 841x1189".
There is got to be an expression for that but I can't find it. Can someone recap it for me?
qgis labeling print-composer
add a comment |
I'm in Print Composer and want to develop a template. In that template, I would like to add a text Label which automatically represents the size of the sheet in the format "Sheet size: 841x1189".
There is got to be an expression for that but I can't find it. Can someone recap it for me?
qgis labeling print-composer
I'm in Print Composer and want to develop a template. In that template, I would like to add a text Label which automatically represents the size of the sheet in the format "Sheet size: 841x1189".
There is got to be an expression for that but I can't find it. Can someone recap it for me?
qgis labeling print-composer
qgis labeling print-composer
edited Apr 16 at 10:16
Taras
2,3703730
2,3703730
asked Apr 16 at 9:42
Dennis JanDennis Jan
403
403
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Go with
'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'
For the future: In any template text field, go to "add expression" and check the bullet point "variables".
Additional input from csk: In order for the formula to work you need to add [% in the front and %] in the end. Forgot about this, my bad.
So we have:
[%'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'%]
This works in the expression builder. To paste it directly into the text label, you need to add[%before and%]after.
– csk
Apr 16 at 18:08
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318956%2fautomatic-sheet-size-in-text-label-in-qgis%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
Go with
'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'
For the future: In any template text field, go to "add expression" and check the bullet point "variables".
Additional input from csk: In order for the formula to work you need to add [% in the front and %] in the end. Forgot about this, my bad.
So we have:
[%'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'%]
This works in the expression builder. To paste it directly into the text label, you need to add[%before and%]after.
– csk
Apr 16 at 18:08
add a comment |
Go with
'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'
For the future: In any template text field, go to "add expression" and check the bullet point "variables".
Additional input from csk: In order for the formula to work you need to add [% in the front and %] in the end. Forgot about this, my bad.
So we have:
[%'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'%]
This works in the expression builder. To paste it directly into the text label, you need to add[%before and%]after.
– csk
Apr 16 at 18:08
add a comment |
Go with
'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'
For the future: In any template text field, go to "add expression" and check the bullet point "variables".
Additional input from csk: In order for the formula to work you need to add [% in the front and %] in the end. Forgot about this, my bad.
So we have:
[%'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'%]
Go with
'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'
For the future: In any template text field, go to "add expression" and check the bullet point "variables".
Additional input from csk: In order for the formula to work you need to add [% in the front and %] in the end. Forgot about this, my bad.
So we have:
[%'Sheet size: '||@layout_pageheight ||' x '|| @layout_pagewidth ||' mm'%]
edited Apr 17 at 7:15
answered Apr 16 at 9:44
ErikErik
3,486322
3,486322
This works in the expression builder. To paste it directly into the text label, you need to add[%before and%]after.
– csk
Apr 16 at 18:08
add a comment |
This works in the expression builder. To paste it directly into the text label, you need to add[%before and%]after.
– csk
Apr 16 at 18:08
This works in the expression builder. To paste it directly into the text label, you need to add
[% before and %] after.– csk
Apr 16 at 18:08
This works in the expression builder. To paste it directly into the text label, you need to add
[% before and %] after.– csk
Apr 16 at 18:08
add a comment |
Thanks for contributing an answer to Geographic Information Systems 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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f318956%2fautomatic-sheet-size-in-text-label-in-qgis%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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