Including large images in landscape formatting
I'm having issues including large images in landscape mode
This is about as large as the image will render
Changing the size makes the orientation switch
Ideally I'd like to be able to have a large image on this landscape page, that's the reason that I've made the page landscape.
Also, it's important that the page within the pdf is rotated 90 degrees (which is currently the case), so that when reading the document on a screen I don't have to tilt my head to view landscape pages. I would like to retain that in any solution please.
Here's the example code
documentclass{article}
usepackage[margin=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{lscape}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
usepackage{showframe}
usepackage[paper=portrait,pagesize]{typearea}
% this is needed for positioning images
usepackage{float}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
newpage
% Probably don't want the header for this page, so suppress it
% thispagestyle{plain}
thispagestyle{empty}
newgeometry{left=1cm,bottom=0.1cm}
KOMAoptions{paper=landscape,pagesize}
recalctypearea
begin{figure}[ht]
fbox{%
includegraphics[width=0.7textwidth]{test.png}
}
end{figure}
newpage
KOMAoptions{paper=portrait,pagesize}
recalctypearea
restoregeometry
cleardoublepage
end{document}
For when / if the image stops being hosted here's it's size :
file image-testing.png
image-testing.png: PNG image data, 1600 x 1200, 8-bit/color RGBA, non-interlaced
Edit - code for zarko
documentclass{article}
usepackage[margin=1.0in,bottom=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
% this is needed for positioning images
usepackage{float}
usepackage{lipsum}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
newpage
thispagestyle{empty}
begin{landscape}
centering
thispagestyle{empty}
begin{figure}%[htb]
includegraphics[width=linewidth]{test.png}
caption{This is some caption text that I'm using to see what this looks like with caption text. I'm not too sure about
adding text in the landscape environment, as I }
end{figure}
end{landscape}
end{document}
graphics formatting margins landscape
add a comment |
I'm having issues including large images in landscape mode
This is about as large as the image will render
Changing the size makes the orientation switch
Ideally I'd like to be able to have a large image on this landscape page, that's the reason that I've made the page landscape.
Also, it's important that the page within the pdf is rotated 90 degrees (which is currently the case), so that when reading the document on a screen I don't have to tilt my head to view landscape pages. I would like to retain that in any solution please.
Here's the example code
documentclass{article}
usepackage[margin=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{lscape}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
usepackage{showframe}
usepackage[paper=portrait,pagesize]{typearea}
% this is needed for positioning images
usepackage{float}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
newpage
% Probably don't want the header for this page, so suppress it
% thispagestyle{plain}
thispagestyle{empty}
newgeometry{left=1cm,bottom=0.1cm}
KOMAoptions{paper=landscape,pagesize}
recalctypearea
begin{figure}[ht]
fbox{%
includegraphics[width=0.7textwidth]{test.png}
}
end{figure}
newpage
KOMAoptions{paper=portrait,pagesize}
recalctypearea
restoregeometry
cleardoublepage
end{document}
For when / if the image stops being hosted here's it's size :
file image-testing.png
image-testing.png: PNG image data, 1600 x 1200, 8-bit/color RGBA, non-interlaced
Edit - code for zarko
documentclass{article}
usepackage[margin=1.0in,bottom=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
% this is needed for positioning images
usepackage{float}
usepackage{lipsum}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
newpage
thispagestyle{empty}
begin{landscape}
centering
thispagestyle{empty}
begin{figure}%[htb]
includegraphics[width=linewidth]{test.png}
caption{This is some caption text that I'm using to see what this looks like with caption text. I'm not too sure about
adding text in the landscape environment, as I }
end{figure}
end{landscape}
end{document}
graphics formatting margins landscape
1
Do you really need KOMAscript ? Because without it much simple to do: tex.stackexchange.com/questions/50070/landscape-figure-in-latex
– G. Bay
1 hour ago
I'm not sure, I know that this seems to work with regards to (1) formatting the page into landscape (2) rotating the page 90 degrees in the PDF file so that I don't have to tilt my head. If there's a version that does that without KOMAscript then that's alright, but this seems to work. I'm not sure how this relates to increasing the actual size of the image though? Thanks
– baxx
1 hour ago
add a comment |
I'm having issues including large images in landscape mode
This is about as large as the image will render
Changing the size makes the orientation switch
Ideally I'd like to be able to have a large image on this landscape page, that's the reason that I've made the page landscape.
Also, it's important that the page within the pdf is rotated 90 degrees (which is currently the case), so that when reading the document on a screen I don't have to tilt my head to view landscape pages. I would like to retain that in any solution please.
Here's the example code
documentclass{article}
usepackage[margin=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{lscape}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
usepackage{showframe}
usepackage[paper=portrait,pagesize]{typearea}
% this is needed for positioning images
usepackage{float}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
newpage
% Probably don't want the header for this page, so suppress it
% thispagestyle{plain}
thispagestyle{empty}
newgeometry{left=1cm,bottom=0.1cm}
KOMAoptions{paper=landscape,pagesize}
recalctypearea
begin{figure}[ht]
fbox{%
includegraphics[width=0.7textwidth]{test.png}
}
end{figure}
newpage
KOMAoptions{paper=portrait,pagesize}
recalctypearea
restoregeometry
cleardoublepage
end{document}
For when / if the image stops being hosted here's it's size :
file image-testing.png
image-testing.png: PNG image data, 1600 x 1200, 8-bit/color RGBA, non-interlaced
Edit - code for zarko
documentclass{article}
usepackage[margin=1.0in,bottom=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
% this is needed for positioning images
usepackage{float}
usepackage{lipsum}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
newpage
thispagestyle{empty}
begin{landscape}
centering
thispagestyle{empty}
begin{figure}%[htb]
includegraphics[width=linewidth]{test.png}
caption{This is some caption text that I'm using to see what this looks like with caption text. I'm not too sure about
adding text in the landscape environment, as I }
end{figure}
end{landscape}
end{document}
graphics formatting margins landscape
I'm having issues including large images in landscape mode
This is about as large as the image will render
Changing the size makes the orientation switch
Ideally I'd like to be able to have a large image on this landscape page, that's the reason that I've made the page landscape.
Also, it's important that the page within the pdf is rotated 90 degrees (which is currently the case), so that when reading the document on a screen I don't have to tilt my head to view landscape pages. I would like to retain that in any solution please.
Here's the example code
documentclass{article}
usepackage[margin=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{lscape}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
usepackage{showframe}
usepackage[paper=portrait,pagesize]{typearea}
% this is needed for positioning images
usepackage{float}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
newpage
% Probably don't want the header for this page, so suppress it
% thispagestyle{plain}
thispagestyle{empty}
newgeometry{left=1cm,bottom=0.1cm}
KOMAoptions{paper=landscape,pagesize}
recalctypearea
begin{figure}[ht]
fbox{%
includegraphics[width=0.7textwidth]{test.png}
}
end{figure}
newpage
KOMAoptions{paper=portrait,pagesize}
recalctypearea
restoregeometry
cleardoublepage
end{document}
For when / if the image stops being hosted here's it's size :
file image-testing.png
image-testing.png: PNG image data, 1600 x 1200, 8-bit/color RGBA, non-interlaced
Edit - code for zarko
documentclass{article}
usepackage[margin=1.0in,bottom=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
% this is needed for positioning images
usepackage{float}
usepackage{lipsum}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
newpage
thispagestyle{empty}
begin{landscape}
centering
thispagestyle{empty}
begin{figure}%[htb]
includegraphics[width=linewidth]{test.png}
caption{This is some caption text that I'm using to see what this looks like with caption text. I'm not too sure about
adding text in the landscape environment, as I }
end{figure}
end{landscape}
end{document}
graphics formatting margins landscape
graphics formatting margins landscape
edited 35 mins ago
asked 2 hours ago
baxx
347216
347216
1
Do you really need KOMAscript ? Because without it much simple to do: tex.stackexchange.com/questions/50070/landscape-figure-in-latex
– G. Bay
1 hour ago
I'm not sure, I know that this seems to work with regards to (1) formatting the page into landscape (2) rotating the page 90 degrees in the PDF file so that I don't have to tilt my head. If there's a version that does that without KOMAscript then that's alright, but this seems to work. I'm not sure how this relates to increasing the actual size of the image though? Thanks
– baxx
1 hour ago
add a comment |
1
Do you really need KOMAscript ? Because without it much simple to do: tex.stackexchange.com/questions/50070/landscape-figure-in-latex
– G. Bay
1 hour ago
I'm not sure, I know that this seems to work with regards to (1) formatting the page into landscape (2) rotating the page 90 degrees in the PDF file so that I don't have to tilt my head. If there's a version that does that without KOMAscript then that's alright, but this seems to work. I'm not sure how this relates to increasing the actual size of the image though? Thanks
– baxx
1 hour ago
1
1
Do you really need KOMAscript ? Because without it much simple to do: tex.stackexchange.com/questions/50070/landscape-figure-in-latex
– G. Bay
1 hour ago
Do you really need KOMAscript ? Because without it much simple to do: tex.stackexchange.com/questions/50070/landscape-figure-in-latex
– G. Bay
1 hour ago
I'm not sure, I know that this seems to work with regards to (1) formatting the page into landscape (2) rotating the page 90 degrees in the PDF file so that I don't have to tilt my head. If there's a version that does that without KOMAscript then that's alright, but this seems to work. I'm not sure how this relates to increasing the actual size of the image though? Thanks
– baxx
1 hour ago
I'm not sure, I know that this seems to work with regards to (1) formatting the page into landscape (2) rotating the page 90 degrees in the PDF file so that I don't have to tilt my head. If there's a version that does that without KOMAscript then that's alright, but this seems to work. I'm not sure how this relates to increasing the actual size of the image though? Thanks
– baxx
1 hour ago
add a comment |
2 Answers
2
active
oldest
votes
showframe
in document with some page inlandscape
environment doesn't show correct page borders for landscape pages- in landscape page you should for image width use
linewidth
sincetextwidth
is not changed - please use just one package for landscape orientation, not both:
lscape
andpdflscape
the following mwe
documentclass{article}
usepackage[demo]{graphicx}
usepackage{pdflscape}
usepackage{showframe}
usepackage{lipsum}
begin{document}
thispagestyle{empty}
lipsum[1]
begin{landscape}
noindent%
XXX hfill XXX % for show width of text area
begin{figure}[htb]
fbox{
includegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
}
end{figure}
end{landscape}
lipsum[2]
end{document}
gives
I'm not sure why you have usedincludegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
rather thanincludegraphics[width=linewidth]{test.png}
for thewidth
parameter? The image is larger though, thank you. It seems as though the image is off centre though, is there a way to make it so that the image is formatted more centrally? I've tried addingcentering
to your code, which didn't seem to work. When there's a caption the image looks particularly skew on the page.
– baxx
1 hour ago
@baxx, i reduce size of image so mach that frame around it is not larger than available space for it. if you will not use afbox
, than the image with should be simplelinewidth
. image will be better centered if you will remove figure positioning option[htb]
and added text inlandscape
environment.
– Zarko
57 mins ago
Thanks, I'm not too sure what you mean about adding the text to the landscape section, as ideally I'd be adding an image caption like I would to any other image? Here's a screen shot of what I mean : i.imgur.com/9m71yPE.png , it's a bit skewed on the page? I can't seem to find examples of this being formatted nicely though. I have edited the post to include the code used for this image.
– baxx
34 mins ago
@baxx, i added text only to show the size of text area (see comment at this line!). since i haven't your image, i just usedemo
option for black box. please test proposed solution with your image (and before removedemo
option).
– Zarko
30 mins ago
Right, I meant that I wanted to add a caption to the image, I wasn't referring to the temporary text that you had added, sorry. And I'm wondering how to do so and have the image centred on the page. I have used the proposed solution with my image, and I'm commenting with respect to that
– baxx
22 mins ago
add a comment |
Just using landscape
works fine ( I did my own version of your image, lol).
This solution ensures that when/if printing the page will be printed as usual and the person reading will have to tilt the book but in digital form the pdf is generated with tilted page.
documentclass{article}
usepackage[margin=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
A normal text page
newpage
begin{landscape}
begin{figure}[t]
includegraphics[width=linewidth,]{image.png}
end{figure}
end{landscape}
newpage
A normal text page
end{document}
Thanks, I've tested that and landscape seems to work, though my image doesn't seem to be centred the same as yours ( is your image the same size as mine? Would this make a difference? Are you able to use the image that I created to see if it changes anything please?) Here's the result that I have : i.imgur.com/VB4KQzI.png (note that I've removed the page style there). It still seems as though there's quite a bit of dead space, and that the image isn't very central. I don't mind having margins, but to my eye that image looks a bit off.
– baxx
1 hour ago
Thats strange, using your image I get this result: imgur.com/a/GpZ28eA
– G. Bay
56 mins ago
Ah - it seems that the KOMAscript was interfering with things, when removing that it appears to be similar
– baxx
50 mins ago
you don't need thenewpage
before and afterlandscape
(as it doesclearpage
there anyway.)
– David Carlisle
37 mins ago
add a comment |
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
});
}
});
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%2ftex.stackexchange.com%2fquestions%2f468393%2fincluding-large-images-in-landscape-formatting%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
showframe
in document with some page inlandscape
environment doesn't show correct page borders for landscape pages- in landscape page you should for image width use
linewidth
sincetextwidth
is not changed - please use just one package for landscape orientation, not both:
lscape
andpdflscape
the following mwe
documentclass{article}
usepackage[demo]{graphicx}
usepackage{pdflscape}
usepackage{showframe}
usepackage{lipsum}
begin{document}
thispagestyle{empty}
lipsum[1]
begin{landscape}
noindent%
XXX hfill XXX % for show width of text area
begin{figure}[htb]
fbox{
includegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
}
end{figure}
end{landscape}
lipsum[2]
end{document}
gives
I'm not sure why you have usedincludegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
rather thanincludegraphics[width=linewidth]{test.png}
for thewidth
parameter? The image is larger though, thank you. It seems as though the image is off centre though, is there a way to make it so that the image is formatted more centrally? I've tried addingcentering
to your code, which didn't seem to work. When there's a caption the image looks particularly skew on the page.
– baxx
1 hour ago
@baxx, i reduce size of image so mach that frame around it is not larger than available space for it. if you will not use afbox
, than the image with should be simplelinewidth
. image will be better centered if you will remove figure positioning option[htb]
and added text inlandscape
environment.
– Zarko
57 mins ago
Thanks, I'm not too sure what you mean about adding the text to the landscape section, as ideally I'd be adding an image caption like I would to any other image? Here's a screen shot of what I mean : i.imgur.com/9m71yPE.png , it's a bit skewed on the page? I can't seem to find examples of this being formatted nicely though. I have edited the post to include the code used for this image.
– baxx
34 mins ago
@baxx, i added text only to show the size of text area (see comment at this line!). since i haven't your image, i just usedemo
option for black box. please test proposed solution with your image (and before removedemo
option).
– Zarko
30 mins ago
Right, I meant that I wanted to add a caption to the image, I wasn't referring to the temporary text that you had added, sorry. And I'm wondering how to do so and have the image centred on the page. I have used the proposed solution with my image, and I'm commenting with respect to that
– baxx
22 mins ago
add a comment |
showframe
in document with some page inlandscape
environment doesn't show correct page borders for landscape pages- in landscape page you should for image width use
linewidth
sincetextwidth
is not changed - please use just one package for landscape orientation, not both:
lscape
andpdflscape
the following mwe
documentclass{article}
usepackage[demo]{graphicx}
usepackage{pdflscape}
usepackage{showframe}
usepackage{lipsum}
begin{document}
thispagestyle{empty}
lipsum[1]
begin{landscape}
noindent%
XXX hfill XXX % for show width of text area
begin{figure}[htb]
fbox{
includegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
}
end{figure}
end{landscape}
lipsum[2]
end{document}
gives
I'm not sure why you have usedincludegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
rather thanincludegraphics[width=linewidth]{test.png}
for thewidth
parameter? The image is larger though, thank you. It seems as though the image is off centre though, is there a way to make it so that the image is formatted more centrally? I've tried addingcentering
to your code, which didn't seem to work. When there's a caption the image looks particularly skew on the page.
– baxx
1 hour ago
@baxx, i reduce size of image so mach that frame around it is not larger than available space for it. if you will not use afbox
, than the image with should be simplelinewidth
. image will be better centered if you will remove figure positioning option[htb]
and added text inlandscape
environment.
– Zarko
57 mins ago
Thanks, I'm not too sure what you mean about adding the text to the landscape section, as ideally I'd be adding an image caption like I would to any other image? Here's a screen shot of what I mean : i.imgur.com/9m71yPE.png , it's a bit skewed on the page? I can't seem to find examples of this being formatted nicely though. I have edited the post to include the code used for this image.
– baxx
34 mins ago
@baxx, i added text only to show the size of text area (see comment at this line!). since i haven't your image, i just usedemo
option for black box. please test proposed solution with your image (and before removedemo
option).
– Zarko
30 mins ago
Right, I meant that I wanted to add a caption to the image, I wasn't referring to the temporary text that you had added, sorry. And I'm wondering how to do so and have the image centred on the page. I have used the proposed solution with my image, and I'm commenting with respect to that
– baxx
22 mins ago
add a comment |
showframe
in document with some page inlandscape
environment doesn't show correct page borders for landscape pages- in landscape page you should for image width use
linewidth
sincetextwidth
is not changed - please use just one package for landscape orientation, not both:
lscape
andpdflscape
the following mwe
documentclass{article}
usepackage[demo]{graphicx}
usepackage{pdflscape}
usepackage{showframe}
usepackage{lipsum}
begin{document}
thispagestyle{empty}
lipsum[1]
begin{landscape}
noindent%
XXX hfill XXX % for show width of text area
begin{figure}[htb]
fbox{
includegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
}
end{figure}
end{landscape}
lipsum[2]
end{document}
gives
showframe
in document with some page inlandscape
environment doesn't show correct page borders for landscape pages- in landscape page you should for image width use
linewidth
sincetextwidth
is not changed - please use just one package for landscape orientation, not both:
lscape
andpdflscape
the following mwe
documentclass{article}
usepackage[demo]{graphicx}
usepackage{pdflscape}
usepackage{showframe}
usepackage{lipsum}
begin{document}
thispagestyle{empty}
lipsum[1]
begin{landscape}
noindent%
XXX hfill XXX % for show width of text area
begin{figure}[htb]
fbox{
includegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
}
end{figure}
end{landscape}
lipsum[2]
end{document}
gives
answered 1 hour ago
Zarko
121k865156
121k865156
I'm not sure why you have usedincludegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
rather thanincludegraphics[width=linewidth]{test.png}
for thewidth
parameter? The image is larger though, thank you. It seems as though the image is off centre though, is there a way to make it so that the image is formatted more centrally? I've tried addingcentering
to your code, which didn't seem to work. When there's a caption the image looks particularly skew on the page.
– baxx
1 hour ago
@baxx, i reduce size of image so mach that frame around it is not larger than available space for it. if you will not use afbox
, than the image with should be simplelinewidth
. image will be better centered if you will remove figure positioning option[htb]
and added text inlandscape
environment.
– Zarko
57 mins ago
Thanks, I'm not too sure what you mean about adding the text to the landscape section, as ideally I'd be adding an image caption like I would to any other image? Here's a screen shot of what I mean : i.imgur.com/9m71yPE.png , it's a bit skewed on the page? I can't seem to find examples of this being formatted nicely though. I have edited the post to include the code used for this image.
– baxx
34 mins ago
@baxx, i added text only to show the size of text area (see comment at this line!). since i haven't your image, i just usedemo
option for black box. please test proposed solution with your image (and before removedemo
option).
– Zarko
30 mins ago
Right, I meant that I wanted to add a caption to the image, I wasn't referring to the temporary text that you had added, sorry. And I'm wondering how to do so and have the image centred on the page. I have used the proposed solution with my image, and I'm commenting with respect to that
– baxx
22 mins ago
add a comment |
I'm not sure why you have usedincludegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
rather thanincludegraphics[width=linewidth]{test.png}
for thewidth
parameter? The image is larger though, thank you. It seems as though the image is off centre though, is there a way to make it so that the image is formatted more centrally? I've tried addingcentering
to your code, which didn't seem to work. When there's a caption the image looks particularly skew on the page.
– baxx
1 hour ago
@baxx, i reduce size of image so mach that frame around it is not larger than available space for it. if you will not use afbox
, than the image with should be simplelinewidth
. image will be better centered if you will remove figure positioning option[htb]
and added text inlandscape
environment.
– Zarko
57 mins ago
Thanks, I'm not too sure what you mean about adding the text to the landscape section, as ideally I'd be adding an image caption like I would to any other image? Here's a screen shot of what I mean : i.imgur.com/9m71yPE.png , it's a bit skewed on the page? I can't seem to find examples of this being formatted nicely though. I have edited the post to include the code used for this image.
– baxx
34 mins ago
@baxx, i added text only to show the size of text area (see comment at this line!). since i haven't your image, i just usedemo
option for black box. please test proposed solution with your image (and before removedemo
option).
– Zarko
30 mins ago
Right, I meant that I wanted to add a caption to the image, I wasn't referring to the temporary text that you had added, sorry. And I'm wondering how to do so and have the image centred on the page. I have used the proposed solution with my image, and I'm commenting with respect to that
– baxx
22 mins ago
I'm not sure why you have used
includegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
rather than includegraphics[width=linewidth]{test.png}
for the width
parameter? The image is larger though, thank you. It seems as though the image is off centre though, is there a way to make it so that the image is formatted more centrally? I've tried adding centering
to your code, which didn't seem to work. When there's a caption the image looks particularly skew on the page.– baxx
1 hour ago
I'm not sure why you have used
includegraphics[width=dimexprlinewidth-4fboxsep-2fboxrule]{test.png}
rather than includegraphics[width=linewidth]{test.png}
for the width
parameter? The image is larger though, thank you. It seems as though the image is off centre though, is there a way to make it so that the image is formatted more centrally? I've tried adding centering
to your code, which didn't seem to work. When there's a caption the image looks particularly skew on the page.– baxx
1 hour ago
@baxx, i reduce size of image so mach that frame around it is not larger than available space for it. if you will not use a
fbox
, than the image with should be simple linewidth
. image will be better centered if you will remove figure positioning option [htb]
and added text in landscape
environment.– Zarko
57 mins ago
@baxx, i reduce size of image so mach that frame around it is not larger than available space for it. if you will not use a
fbox
, than the image with should be simple linewidth
. image will be better centered if you will remove figure positioning option [htb]
and added text in landscape
environment.– Zarko
57 mins ago
Thanks, I'm not too sure what you mean about adding the text to the landscape section, as ideally I'd be adding an image caption like I would to any other image? Here's a screen shot of what I mean : i.imgur.com/9m71yPE.png , it's a bit skewed on the page? I can't seem to find examples of this being formatted nicely though. I have edited the post to include the code used for this image.
– baxx
34 mins ago
Thanks, I'm not too sure what you mean about adding the text to the landscape section, as ideally I'd be adding an image caption like I would to any other image? Here's a screen shot of what I mean : i.imgur.com/9m71yPE.png , it's a bit skewed on the page? I can't seem to find examples of this being formatted nicely though. I have edited the post to include the code used for this image.
– baxx
34 mins ago
@baxx, i added text only to show the size of text area (see comment at this line!). since i haven't your image, i just use
demo
option for black box. please test proposed solution with your image (and before remove demo
option).– Zarko
30 mins ago
@baxx, i added text only to show the size of text area (see comment at this line!). since i haven't your image, i just use
demo
option for black box. please test proposed solution with your image (and before remove demo
option).– Zarko
30 mins ago
Right, I meant that I wanted to add a caption to the image, I wasn't referring to the temporary text that you had added, sorry. And I'm wondering how to do so and have the image centred on the page. I have used the proposed solution with my image, and I'm commenting with respect to that
– baxx
22 mins ago
Right, I meant that I wanted to add a caption to the image, I wasn't referring to the temporary text that you had added, sorry. And I'm wondering how to do so and have the image centred on the page. I have used the proposed solution with my image, and I'm commenting with respect to that
– baxx
22 mins ago
add a comment |
Just using landscape
works fine ( I did my own version of your image, lol).
This solution ensures that when/if printing the page will be printed as usual and the person reading will have to tilt the book but in digital form the pdf is generated with tilted page.
documentclass{article}
usepackage[margin=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
A normal text page
newpage
begin{landscape}
begin{figure}[t]
includegraphics[width=linewidth,]{image.png}
end{figure}
end{landscape}
newpage
A normal text page
end{document}
Thanks, I've tested that and landscape seems to work, though my image doesn't seem to be centred the same as yours ( is your image the same size as mine? Would this make a difference? Are you able to use the image that I created to see if it changes anything please?) Here's the result that I have : i.imgur.com/VB4KQzI.png (note that I've removed the page style there). It still seems as though there's quite a bit of dead space, and that the image isn't very central. I don't mind having margins, but to my eye that image looks a bit off.
– baxx
1 hour ago
Thats strange, using your image I get this result: imgur.com/a/GpZ28eA
– G. Bay
56 mins ago
Ah - it seems that the KOMAscript was interfering with things, when removing that it appears to be similar
– baxx
50 mins ago
you don't need thenewpage
before and afterlandscape
(as it doesclearpage
there anyway.)
– David Carlisle
37 mins ago
add a comment |
Just using landscape
works fine ( I did my own version of your image, lol).
This solution ensures that when/if printing the page will be printed as usual and the person reading will have to tilt the book but in digital form the pdf is generated with tilted page.
documentclass{article}
usepackage[margin=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
A normal text page
newpage
begin{landscape}
begin{figure}[t]
includegraphics[width=linewidth,]{image.png}
end{figure}
end{landscape}
newpage
A normal text page
end{document}
Thanks, I've tested that and landscape seems to work, though my image doesn't seem to be centred the same as yours ( is your image the same size as mine? Would this make a difference? Are you able to use the image that I created to see if it changes anything please?) Here's the result that I have : i.imgur.com/VB4KQzI.png (note that I've removed the page style there). It still seems as though there's quite a bit of dead space, and that the image isn't very central. I don't mind having margins, but to my eye that image looks a bit off.
– baxx
1 hour ago
Thats strange, using your image I get this result: imgur.com/a/GpZ28eA
– G. Bay
56 mins ago
Ah - it seems that the KOMAscript was interfering with things, when removing that it appears to be similar
– baxx
50 mins ago
you don't need thenewpage
before and afterlandscape
(as it doesclearpage
there anyway.)
– David Carlisle
37 mins ago
add a comment |
Just using landscape
works fine ( I did my own version of your image, lol).
This solution ensures that when/if printing the page will be printed as usual and the person reading will have to tilt the book but in digital form the pdf is generated with tilted page.
documentclass{article}
usepackage[margin=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
A normal text page
newpage
begin{landscape}
begin{figure}[t]
includegraphics[width=linewidth,]{image.png}
end{figure}
end{landscape}
newpage
A normal text page
end{document}
Just using landscape
works fine ( I did my own version of your image, lol).
This solution ensures that when/if printing the page will be printed as usual and the person reading will have to tilt the book but in digital form the pdf is generated with tilted page.
documentclass{article}
usepackage[margin=1.0in]{geometry}
% so that i can crop images
usepackage{graphicx}
usepackage{wrapfig}
usepackage{rotating}
usepackage{epstopdf}
usepackage{pdflscape}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save the image from this link : https://i.imgur.com/CN1gsF4.png
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required this package for including graphics and landscaping
% usepackage[paper=portrait,pagesize]{typearea}
% Link to the stack post
% https://tex.stackexchange.com/a/430619/69118
%%%%%%%%%%%%%%%%
% IMAGE TEST ONE
%%%%%%%%%%%%%%%%
clearpage
A normal text page
newpage
begin{landscape}
begin{figure}[t]
includegraphics[width=linewidth,]{image.png}
end{figure}
end{landscape}
newpage
A normal text page
end{document}
edited 48 mins ago
answered 1 hour ago
G. Bay
1,0831825
1,0831825
Thanks, I've tested that and landscape seems to work, though my image doesn't seem to be centred the same as yours ( is your image the same size as mine? Would this make a difference? Are you able to use the image that I created to see if it changes anything please?) Here's the result that I have : i.imgur.com/VB4KQzI.png (note that I've removed the page style there). It still seems as though there's quite a bit of dead space, and that the image isn't very central. I don't mind having margins, but to my eye that image looks a bit off.
– baxx
1 hour ago
Thats strange, using your image I get this result: imgur.com/a/GpZ28eA
– G. Bay
56 mins ago
Ah - it seems that the KOMAscript was interfering with things, when removing that it appears to be similar
– baxx
50 mins ago
you don't need thenewpage
before and afterlandscape
(as it doesclearpage
there anyway.)
– David Carlisle
37 mins ago
add a comment |
Thanks, I've tested that and landscape seems to work, though my image doesn't seem to be centred the same as yours ( is your image the same size as mine? Would this make a difference? Are you able to use the image that I created to see if it changes anything please?) Here's the result that I have : i.imgur.com/VB4KQzI.png (note that I've removed the page style there). It still seems as though there's quite a bit of dead space, and that the image isn't very central. I don't mind having margins, but to my eye that image looks a bit off.
– baxx
1 hour ago
Thats strange, using your image I get this result: imgur.com/a/GpZ28eA
– G. Bay
56 mins ago
Ah - it seems that the KOMAscript was interfering with things, when removing that it appears to be similar
– baxx
50 mins ago
you don't need thenewpage
before and afterlandscape
(as it doesclearpage
there anyway.)
– David Carlisle
37 mins ago
Thanks, I've tested that and landscape seems to work, though my image doesn't seem to be centred the same as yours ( is your image the same size as mine? Would this make a difference? Are you able to use the image that I created to see if it changes anything please?) Here's the result that I have : i.imgur.com/VB4KQzI.png (note that I've removed the page style there). It still seems as though there's quite a bit of dead space, and that the image isn't very central. I don't mind having margins, but to my eye that image looks a bit off.
– baxx
1 hour ago
Thanks, I've tested that and landscape seems to work, though my image doesn't seem to be centred the same as yours ( is your image the same size as mine? Would this make a difference? Are you able to use the image that I created to see if it changes anything please?) Here's the result that I have : i.imgur.com/VB4KQzI.png (note that I've removed the page style there). It still seems as though there's quite a bit of dead space, and that the image isn't very central. I don't mind having margins, but to my eye that image looks a bit off.
– baxx
1 hour ago
Thats strange, using your image I get this result: imgur.com/a/GpZ28eA
– G. Bay
56 mins ago
Thats strange, using your image I get this result: imgur.com/a/GpZ28eA
– G. Bay
56 mins ago
Ah - it seems that the KOMAscript was interfering with things, when removing that it appears to be similar
– baxx
50 mins ago
Ah - it seems that the KOMAscript was interfering with things, when removing that it appears to be similar
– baxx
50 mins ago
you don't need the
newpage
before and after landscape
(as it does clearpage
there anyway.)– David Carlisle
37 mins ago
you don't need the
newpage
before and after landscape
(as it does clearpage
there anyway.)– David Carlisle
37 mins ago
add a comment |
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.
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%2ftex.stackexchange.com%2fquestions%2f468393%2fincluding-large-images-in-landscape-formatting%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
1
Do you really need KOMAscript ? Because without it much simple to do: tex.stackexchange.com/questions/50070/landscape-figure-in-latex
– G. Bay
1 hour ago
I'm not sure, I know that this seems to work with regards to (1) formatting the page into landscape (2) rotating the page 90 degrees in the PDF file so that I don't have to tilt my head. If there's a version that does that without KOMAscript then that's alright, but this seems to work. I'm not sure how this relates to increasing the actual size of the image though? Thanks
– baxx
1 hour ago