R Markdown - specific issues with header and footer - r

I am using R Markdown for showing the results of statistical analyses that I am conducting for my company. I would like to include the company logo at the upper right corner of the first page and company info in the footer of each page.
I browsed around this site to find potential answers, however they weren't very helpful for my purpose. I found this thread, but the procedures described within simply result with the logo being present on each page, whereas I only want it on the first page.
Since I couldn't find a way to do it, I gave up and tried to include only company info in the footer. I managed to properly include the company information in the footer; however, each page also contained a header with the name of the current chapter and the name of the document. I couldn't find a way to remove that header.
Is there a way to achieve what I want? Company logo in the header, only on the first page and company info in the footer on each page, with no chapter/document names in the header?

Are you printing an html file? If yes this should work:
htmltools::img(src = knitr::image_uri("logo.png"),
alt = 'logo',
style = 'position:absolute;top:0;right:100px;width:180px;height:100px;padding:10px;')
This is basic HTML so if you need to adjust the size of your logo you can do it using this part of the code: top:0;right:100px;width:180px;height:100px;

Related

remove header space from 2nd page of markdown pdf after creating custom header on page one

I am trying to add a custom header to a pdf via markdown. This page has been very helpfull. My working solution is below.
\addtolength{\headheight}{1cm}
\fancypagestyle{plain}{}
\rhead{\center\includegraphics[height=3cm]{path}}
\renewcommand{\headrulewidth}{0pt}
While this provides the desired solution on the title page with the correctly sized logo and space between the header and the text, there is extra blank space on the following pages. How can I remove (or control) the header spacing on pages > 1?
In your current working solution, you are using some LaTeX commands to build a custom header. If you want a custom header to exist only on the title page, then you could use the LaTeX commands that control the title page. Specifically, \begin{titlepage} \end{titlepage} and nest your header within. For more information on title pages, see this overleaf post.
For directly solving issues with spacing on all pages, you can use the geometry package in LaTeX. Here are some resources describing how it works: rmarkdown - set margins, overleaf geometry package. This will allow you more direct control over the spacing on every page.

Add a separate table of content in a HTML bookdown output

I created a website using bookdown package and I have a nice table of content on the left, which is fine.
But now I would like to add the same table of content in a separate chapter (while keeping the toc on the left). I am looking to something somehow similar to what I can do in Latex when using \tableofcontent and be able to put the table of content whenever I want in any section. Is there a simple way to do so, without having to manually copy paste content from the html output?
Maybe I am not using the right keywords but I can't find any suggestions on how to do it.

Body content not showing for nodes

For some reason, all body content from all my nodes has suddenly disappeared. It is neither showing up in front- or backende anymore.
I have checked the database, and the content is still present there. It is simply not showing up anymore..
Any ideas?
Did you check that the Main Content Block is enabled? Look at the list at Structure -> Blocks and put the block inside the desired region (mostly the Content region).

Confluence: Is there a way to use space variables in Global PDF Stylesheet? Or somehow include it on PDF Exports

For PDF exports, I'm trying to export the space name to the bottom center of the export.
I tried the following but no luck so far:
#bottom-center
{
content: $space.getName();
}
I think the space variables do not work within the PDF CSS Stylesheet.
Is there another way of possibly achieving this?
I look forward to your ideas.
You might want to have a look at our Scroll PDF Exporter for Confluence.
Scroll PDF Exporter is an app for Confluence Server and Cloud that allows you to further customize your exports using a graphical template designer.
One key feature of the app is the possibility to use placeholders for specific metadata (e.g. the space name). Those placeholders can be used in the header or footer of your exported file and will be replaced during export with the wanted information.
You can find further information about all available placeholders in our Scroll PDF Exporter documentation.
For your specific use case the placeholder "Space Name" should work.
You can try out Scroll PDF Exporter using a 30 day trial license via the Atlassian Marketplace.
In case you have any further questions regarding the app, please get in touch with us via support[at]k15t.com.
We'll be happy to help.
Best,
Nils

Where insert main and css attributes for logo

I'm beginner in web programing and I'have small problem with understanding of HTML5 tags. The main tag is for main content but filedset can be in this tag or main tag should be in filedset tag ?
And web site logo how tags I should set for this ? I should insert img in other div or I should set all tags from this div to img ?
https://jsfiddle.net/adriansikora344/5t0Lzs0y/
or
https://jsfiddle.net/adriansikora344/ug3adstu/
Main tag (quoted from w3c):
The content inside the element should be unique to the document. It should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms.
The fieldset tag is intended to group some form fields, so if you have a form in your web it's fine to get it wrapped by the main tag.
About the logo... This is a very open question. There is not a correct structure, I mean, depending on how you would like to organize contents or views you will need an HTML composition or another. I suggest you to try to create your page. Then, when you get stuck in some concrete problem, you can came back and create a new question with a detailed explanation of your problem and (this is important) an example of what are you tryin to accomplish your target.

Resources