How to change markdown cell font size Jupyter notebook? - jupyter-notebook

I have the following markdown cell in jupytre book:
***
import action items:
- item 1
- item 2
***
I would like to increase the font size of the entire cell to make this markdown cell standout between other markdown cells. Is there a way to do that? (I know it is possible to increase the size of a single line by using ### prefix, but it does not work for the entire cell)

Related

How to add more spaces between two rows of images in Quarto for PDF output?

I have three images aligned in three rows.
In the same block layout, I have to use
:::{layout="[[1], [-1], [1], [-1], [1]]"}
![](iamge1)
![](image2)
![](image3)
:::
to increase the space between them. But the space is still small.
If I put them into separate blocks, it looks like the same as above.
How can I add more spaces between two rows of images in an PDF output?
Since your output format is pdf, you can use latex command \vspace to increase the vertical space between the figures.
---
title: "Spaces"
format: pdf
---
## Quarto
![](placeholder.png){width=20%}
\vspace{2em}
![](placeholder.png){width=20%}
\vspace{2em}
![](placeholder.png){width=20%}
If you need more space increase the value of \vspace{} from 2em to 3em or 4em etc.

R markdown to MS Word: keep paragraphs together

I am creating a report in MS Word and am using a RMarkdown document. I have managed to use a reference.docx file where I adjusted the styles of titles, headers, text, and figure captions to my need. Now I would like to make sure some lines, paragraphs and pictures are kept together on the same page. Is there a way to do this?
Here's my sample code
---
title: "Test"
output:
word_document:
reference_docx: reference.docx
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
Here is some text.
### I Use This as Figure Caption Above the Figure
(Index, 2015=100, seasonally adjusted series)
![Source: World Bank](https://previews.123rf.com/images/lovjane/lovjane1610/lovjane161000009/64921112-hand-drawn-sun-with-face-and-eyes-alchemy-medieval-occult-mystic-symbol-of-sun-vector-illustration-.jpg){ width=10cm }
The last 3 lines are the ones I would like to be kept together in my MS-Word output file, i.e. Caption+(Comment)+Figure.
You can include certain properties in your style definitions - that's the best way. You'll want to test this in the Word environment to get a feel for how these work as they can be confusing.
For all paragraphs that should stay together on the same page (as long as the total length does not exceed the space available on the page):
Paragraph dialog box (P-dlg)/Line and Page Breaks tab (LPB-tab)/Keep with Next
In the Word object model corresponds to: Paragraph.KeepWithNext = true/false
For the last paragraph in this group, make sure to remove this property. This means a separate style for the last paragraph!
To force lines to stay together:
P-dlg/LPB-tab/Keep lines together
In the Word object model corresponds to: Paragraph.KeepTogether = true/false
The same commands will apply to any pictures formatted in-line with the text. You may want to define separate styles for pictures if they need special alignment or spacing.
For pictures with text-wrap formatting the trick to keeping them together with specific text is to lock the anchor to the Range of that text. This cannot be part of a style, however.

Controlling space between lines or rows in tables using papaja with r markdown for pdf

I'm working on APA tables with the package papaja and r markdown together with Latex and I want to adjust the vertical space between rows in a relatively big table so it will fit on one page. Additionally, if needed, i also want to reduce font size and column width. Is this possible with papaja's apa_table() function? Just using the small argument to TRUE did not do the trick.
As mentioned in the papaja manual you can adjust line spacing in tables by adding some lines to the document preamble. The following will result in single-spaced tables with double-spaced caption and table note:
header-includes:
- \usepackage{setspace}
- \AtBeginEnvironment{tabular}{\singlespacing}
- \AtBeginEnvironment{lltable}{\singlespacing}
- \AtBeginEnvironment{tablenotes}{\doublespacing}
- \captionsetup[table]{font={stretch=1.5}}
- \captionsetup[figure]{font={stretch=1.5}}
The column width is currently not controllable with apa_table() but you can use landscape = TRUE if the table doesn't fit in portrait mode. Font size can currently only be adjusted with small = TRUE.

pander control column width

table output
I am trying to create a table to hold some basic information using Kable in RMarkdown that will be generated in HTML, PDF, and Word.
I have used pander function to do that and adjust some options such as split.table, split.cells, but it did not work out.
I also tried changing font size of the whole file by setting
classoption: a1paper
fontsize: 3pt
Then the table becomes pretty small but 5 columns are still not in the same line. Besides, fontsizeļ¼š3pt only changes the text size but the font size in the table does not change.
I just want the 5 columns of the data frame to be on the same line, any methods workable are welcome.

R markdown- change font size in Knit Word

I have a chunk of R code that I'm trying to put into a word doc using "Knit Word" in R Markdown. The R Markdown chunk is as follows:
```{r}
all <- readHTMLTable('http://en.wikipedia.org/wiki/Demographics_of_the_United_States')
```
When I Knit Word, however, the line of code goes across three lines because the font size is too large.
I tried using size = 'tiny' as an option in the chunk, but this doesn't change the font size at all. How can I change the font size of this line of code, so that it is all on one line, without manually changing the font size in the Word doc? Thank you!

Resources