eddelbuettel / pinp

Pinp Is Not PNAS -- Two-Column PDF Template
147 stars 25 forks source link

add columns mode used by pandoc's :::::: and ::: blocks (closes #87) #88

Closed eddelbuettel closed 3 years ago

eddelbuettel commented 3 years ago

See #87 for discussion. Works as tested on the vignette that previously needed it in the header.

coatless commented 3 years ago

Maybe add a documentation note the README vignette and pinp layout call mentioning this is supported?

https://github.com/eddelbuettel/pinp/blob/4fc965b9a9bd35a3899c431651de750cfe9fa7f9/vignettes/pinp.Rmd#L55-L62

https://github.com/eddelbuettel/pinp/blob/4fc965b9a9bd35a3899c431651de750cfe9fa7f9/R/pinp.R#L68-L71

eddelbuettel commented 3 years ago

Could do but not urgent and can be done later. It's optional anyway at the pandoc level. Just that before the additional it broke :crying_cat_face: and now it no longer does.

It also very much does not need a YAML option. Hence "maybe not".

eddelbuettel commented 3 years ago

The other issue for 'maybe not' is that the side-by-side view of code .... pretty much needs one-column mode which does not fit into our default vignette (as easily). We could try to prove a point and have two columns side-by-side inside one column but it likely going to be awkward.

Your reminder about documenting options is good though.

eddelbuettel commented 3 years ago

For completeness, I tried it. Outer \begin{widetext} ... \end{widetext} then clashes with the width setting pandoc supports. Switching with \onecolumn and back to \twocolumn works, but forces a pagebreak. So not really a candidate for our default vignette.