[Bioc-devel] BiocStyle not acknowledging fig.wide=TRUE in knitr

Andrzej Oleś andrzej.oles at gmail.com
Fri Sep 15 13:15:01 CEST 2017


Hi Aaron,

thanks fo reporting this! I've fixed it in BiocStyle 2.5.38.

Best,
Andrzej

On Fri, Sep 15, 2017 at 9:23 AM, Aaron Lun <alun at wehi.edu.au> wrote:

> Dear list,
>
>
> I'm playing around with the BiocStyle aesthetics for my csaw user's guide,
> and it looks pretty good in general. However, setting fig.wide=TRUE doesn't
> seem to be respected by knitr during compilation. To give an example:
>
>
> %%% Latex code start %%%
>
>
> \documentclass{article}
>
>
> <<style-knitr, eval=TRUE, echo=FALSE, results="asis">>=
>
> BiocStyle::latex()
>
> @
>
>
> \bioctitle[Test]{Testing}
>
> %% also: \bioctitle{Title used for both header and title page}
>
> %% or... \title{Title used for both header and title page}
>
> \author{Aaron Lun}
>
>
> \begin{document}
>
> \maketitle
>
>
>
> \begin{abstract}
>
> yayayayaya
>
> \end{abstract}
>
>
> \packageVersion{\Sexpr{BiocStyle::pkg_ver("csaw")}}
>
>
> \tableofcontents
>
> \newpage
>
> \chapter{blasdh}
>
> \section{Introduction}
>
> \subsection{Introduction}
>
> \subsubsection{Introduction}
>
> \paragraph{XXX}
>
>
> asdasd
>
> asdasd
>
>
> <<testfig, fig.wide=TRUE>>=
>
> plot(1, 1)
>
> @
>
>
> \end{document}
>
> %%% End %%%
>
> Running this with "R CMD Sweave --engine=knitr::knitr --pdf <filename>"
> gives me a TeX file. But setting "fig.wide=FALSE" in the testfig chunk and
> re-Sweaving gives me the exact same TeX file.
>
> I would have expected something to manifest differently when I ask for a
> figure to be wide. in this case, it seems like it never becomes wide,
> regardless of how much I ask. Am I missing something?
>
> Cheers,
>
> Aaron
>
> P.S. Running on BiocStyle 2.5.37.
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>

	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list