Bioconductor / BiocStyle

Issues and pull requests for BiocStyle should go here.
12 stars 20 forks source link

Code formatting overflows in magin note #5

Closed lgatto closed 8 years ago

lgatto commented 8 years ago

As shown below, the \Rcode{times = 10} inline code formatting somehow overflows in the side margin.

2016-06-26-005728_978x322_scrot

If I remove the formatting (remove \Rcode), the margin note displays as expected

2016-06-26-005959_975x300_scrot

aoles commented 8 years ago

That's kind of weird, I'm not sure how this can happen and I was also not able to reproduce it. Could you maybe share some minimal example intermediate .tex source file which illustrates this issue? Don't forget to include the BiocStyle version number. Thanks!

lgatto commented 8 years ago

Very weird indeed. The file/lines that produced this is are here https://github.com/lgatto/pRoloc/blob/7efa415ebdb05bcf24fa81a7f33e3e9a4cef83d2/vignettes/pRoloc-tutorial.Rnw#L856-L860. The corresponding tex file is here.

It's not a minimal reproducible example - I'll try to prepare one later. In the meantime, I have fixed it by rephrasing my sentence a bit.

aoles commented 8 years ago

Thank you Laurent for spotting and for reporting this! I was able to reproduce the described behavior. It's rather unexpected and I'm surprised to see this side effect. I will need to investigate it further, maybe it is related to the other issues with side notes reported in https://github.com/Bioconductor/BiocStyle/issues/3.

lgatto commented 8 years ago

Thanks, Andrzej for following up this and issue #3.