Olivier Crouzet
2023-Nov-17 15:54 UTC
[R] Can someone please have a look at this query on stackoverflow?
Dear Ashim, I don't think the aspectratio is appropriate in this context because it would imply that the beamer (LaTeX) class is used but you're actually using the article (LaTeX) class. You may use specifications of the geometry package rather than specifying options to the class: e.g. replace your current header: --- title: "Testing landscape and aspect ratio" output: pdf_document: number_sections: true classoption: - landscape - "aspectratio=169" header-includes: - \usepackage{dcolumn} documentclass: article geometry: margin=1.5cm --- with this one: --- title: "Testing landscape and aspect ratio" output: pdf_document: number_sections: true header-includes: - \usepackage{dcolumn} documentclass: article geometry: margin=1.5cm, paperwidth=24cm, paperheight=13.5cm --- Of course, you may change the exact dimensions and it will impact the relative font sizes. I've tested it and it generates what you want. Yours. Olivier. On Tue, 14 Nov 2023 10:03:23 +0530 Ashim Kapoor <ashimkapoor at gmail.com> wrote:> Dear all, > > I have posted a query which has received a response but that is not > working on my computer. > > Here is the query: > > https://stackoverflow.com/questions/77387434/pdf-from-rmarkdown-landscape-and-aspectratio-169 > > Can someone please help me ? > > Best Regards, > Ashim > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html and provide commented, > minimal, self-contained, reproducible code.-- Olivier Crouzet, PhD http://olivier.ghostinthemachine.space /Ma?tre de Conf?rences/ @LLING - Laboratoire de Linguistique de Nantes UMR6310 CNRS / Universit? de Nantes
Ashim Kapoor
2023-Nov-18 04:23 UTC
[R] Can someone please have a look at this query on stackoverflow?
Dear Olivier, Many thanks for your reply. This works well for me. How did you come up with the pagewidth / pageheight numbers? I do understand that their ratio = 16:9, but how did you choose these numbers? Best Regards, Ashim On Fri, Nov 17, 2023 at 9:25?PM Olivier Crouzet <olivier.crouzet at univ-nantes.fr> wrote:> > Dear Ashim, > > I don't think the aspectratio is appropriate in this context because > it would imply that the beamer (LaTeX) class is used but you're actually > using the article (LaTeX) class. > > You may use specifications of the geometry package rather than > specifying options to the class: > > e.g. replace your current header: > > --- > title: "Testing landscape and aspect ratio" > output: > pdf_document: > number_sections: true > classoption: > - landscape > - "aspectratio=169" > header-includes: > - \usepackage{dcolumn} > documentclass: article > geometry: margin=1.5cm > --- > > with this one: > > --- > title: "Testing landscape and aspect ratio" > output: > pdf_document: > number_sections: true > header-includes: > - \usepackage{dcolumn} > documentclass: article > geometry: margin=1.5cm, paperwidth=24cm, paperheight=13.5cm > --- > > Of course, you may change the exact dimensions and it will impact the > relative font sizes. I've tested it and it generates what you want. > > Yours. > Olivier. > > > > > > On Tue, 14 Nov 2023 10:03:23 > +0530 Ashim Kapoor <ashimkapoor at gmail.com> wrote: > > > Dear all, > > > > I have posted a query which has received a response but that is not > > working on my computer. > > > > Here is the query: > > > > https://stackoverflow.com/questions/77387434/pdf-from-rmarkdown-landscape-and-aspectratio-169 > > > > Can someone please help me ? > > > > Best Regards, > > Ashim > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html and provide commented, > > minimal, self-contained, reproducible code. > > > -- > Olivier Crouzet, PhD > http://olivier.ghostinthemachine.space > /Ma?tre de Conf?rences/ > @LLING - Laboratoire de Linguistique de Nantes > UMR6310 CNRS / Universit? de Nantes > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Apparently Analagous Threads
- Can someone please have a look at this query on stackoverflow?
- Can someone please have a look at this query on stackoverflow?
- Can someone please have a look at this query on stackoverflow?
- Can someone please have a look at this query on stackoverflow?
- Can someone please have a look at this query on stackoverflow?