且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

RMarkdown ioslides演示文稿中的“引用"页面被截断

更新时间:2023-02-14 09:15:08

这并不是您所要的,但这可能是您可以做的***的事情.在文档末尾(即,在将要插入引用的位置之前)插入以下嵌入式CSS,而不是将其截断,而是添加滚动条(第一部分)并取消页码(第二部分)

This isn't exactly what you're asking for, but it might be the best you can do. Insert the following inline CSS at the end of your document (i.e. just before where the references will be inserted), and instead of truncating them, it will add a scroll bar (the first part) and suppress the page number (the second part).

<style>
slides > slide { overflow: scroll; }
slides > slide:not(.nobackground):after {
  content: '';
}
</style>

您将无法一次看到所有参考,但至少可以滚动浏览它们. (您可以将其添加到任何长幻灯片的标题后面,以达到相同的效果.)

You won't be able to see all references at once, but at least you can scroll through them. (You can add this after the header on any long slide for the same effect.)

编辑后添加:

要隐藏徽标,这应该可行:

To suppress the logo, this should work:

<style>
slides > slide:not(.nobackground):before {
  background: none;
}
</style>

通常要弄清楚这种情况,请使用Firefox(或其他浏览器?),指向感兴趣的事物,右键单击并选择检查元素".这样可以告诉您它的来源,您也许可以猜测如何抑制它.

Generally to figure things like this out, use Firefox (or another browser?), point at the thing of interest, right click and choose Inspect Element. That will tell you where it came from, and you might be able to guess how to suppress it.