*Disclaimer:
The script is developed from RStudio Team's convert_ipynb
code. This simple app is developed for my personal purpose to ease the process of converting multiple ipynb
into a tidy pdf.
-
Open the R project
-
In your R console, run
to_Rmd()
function fromR/converter.R
script. You can define your prefered input/output directory but the default location is in/documents/
folder of this repository (input & output).
source('R/converter.R')
to_Rmd()
- Make sure all files (including images attached, related script, etc.) related to the notebook are included in
/documents
(or, if you change the input/output directory, make sure it's in the same location of your Rmd). - Open
parent.Rmd
- Adjust YAML options & chunk titles
- Knit it to pdf
Note: Please make sure the formatting of your notebook has followed the formatting rules below:
Please follow the formatting below:
- Heading
#
: Indicates the Title of the document. DO NOT use this heading for sectioning.##
,###
, ...: Marks the section heading
- Bullets
- Please add breaks after paragraph and before bullet! Example:
- Others:
- Do NOT use
%matplotlib inline
- Do NOT use space(
$
when creating latex equation:
# WRONG:
$ f(x) = x^2 $
# CORRECT:
$f(x) = x^2$