bookdownplus: an R package for writing assorted books and documents | 将你的帖子整理成一本漂亮的书steemCreated with Sketch.

in #utopian-io7 years ago (edited)

Hi guys! This is my first post on utopian.io. Hopefully it goes on the right way. This post was written bilingually, in English and Chinese.

嘿,你好!这是我在 utopian.io 发布的第一篇帖子。但愿我的发布方式没出什么岔子。本文用英文和中文写作,中文在后半部分。

Introduction

This post is to introduce an open-source package called bookdownplus I have been developing with R language for writing assorted books and documents in bookdown environment.

If you are a Steemian, or a markdown user, you might want to organize your posts in a friendly and elegant way. As far as I know, R bookdown package is the best tool to convert markdown files into a nice book. However, bookdown is not easy for beginners. An R beginner might be confused or depressed in struggling in the flood of LaTeX, YAML, Markdown, Pandoc, etc.

bookdownplus is the easiest shortcut to the world of bookdown. With just one single command users can get a demo book (or multiple demo books) in pdf, Word document, html, epub, or even more formats. bookdownplus extends the features of bookdown, and simplifies the procedure. Users only have to choose a template, clarify the book title and author name, and then focus on writing the text. No need to struggle in YAML and LaTeX.

Features

Multiple templates are included in bookdownplus. With these templates bookdownplus helps you write academic journal articles, guitar books, chemical equations, mails, calendars, diaries, etc.. For instance, the theisis_classic can convet your markdown file into a pdf book like this:

and the poem template can make a nice poem book like this:

Even a book with guitar chords:

If you have programing codes especially R codes in your posts, they can be integrated into your book in a reproducible way owing to the feature of R markdown, which looks like this:

Quick start

-1. Download R and install it.

-2. Download LaTeX and install it.

-3. In R environment, run the following codes to install bookdown and bookdownplus.

install.packages('bookdown')
devtools::install_github("pzhaonet/bookdownplus") # the development version 
# or the stable version from CRAN
install.package("bookdownplus")

-4. Generate a demo book.

require(bookdownplus)
bookdownplus()

Link to the repo

https://github.com/pzhaonet/bookdownplus

Proof of work

Here is a sreenshot of my login webpage.

bdp.jpg

Conclusion

Wouldn't it be cool to make your steem posts into such a book?

Enjoy R bookdownplus !


本文介绍的是我开发的一个开源程序包,唤作 bookdownplus,可以在 R 语言环境下制作各种书籍和文档。

如果你是 steem 或者 markdown 用户,你可能会想把你的帖子整理成一本漂亮的书跟别人分享。据我所知。R 'bookdown' 是将 markdown 格式的文件转化成书的最佳工具。可惜的是,bookdown 并不容易上手。R 语言初学者可能要为 LaTeX, YAML, Markdown, Pandoc 等折腾很久,也享受不到 bookdown 带来 的快乐。

于是我开发了 bookdownplus。

bookdownplus 是对 bookdown 的增强和简化, 是快速使用 bookdown 的最简洁方法。bookdownplus 提供了很多有用的模板,可以很方便地在 bookdown 平台写文集、期刊论文、学位论文、学术海报、化学分子式、信件、日记、日历、诗集、吉他谱等各种常用文档和书籍。这是功能上的增强(+)。bookdownplus 使用时只需指定一个模板,给定作者和书名,就可以一键生成模板文件,用户在模板文件里照猫画虎写自己的文字就可以了,不必再花力气上网找模板、设置 YAML 和 LaTeX。这是操作上的简化(-)。

上文给了几个图示,分别展示了 bookdownplus 生成的文章合集、诗集、吉他谱、编程书籍的示例。

怎么样,快来用 bookdownplus 把你的 steem 帖子做成一本漂亮的书吧!



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hey @dapeng I am @utopian-io. I have just upvoted you at 13% Power!

Achievements

  • This is your first accepted contribution here in Utopian. Welcome!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Great! Thank you!

你好!cn区点赞机器人 @cnbuddy 感谢你对cn区作出成长的贡献。 @cnbuddy 旨在助力cn区快速发展,更多cn区动态,请查看我的主页。欢迎关注我们的大股东 @skenan,并注册使用由其开发的 CNsteem.com。假如我的留言打扰到你,请回复“取消”。

Thank you for your contribution.
Yet, it cannot be approved at the moment because it does not have proof of work.
You posted in the development category, and we need confirmation that this work is yours.

See the Utopian Rules. Please edit your contribution and add proof (links, screenshots, commits, etc) of your work, to reapply for approval.

You may edit your post here, as shown below:

You can contact us on Discord.
[utopian-moderator]

Thank you for the information. I have inserted a sreenshot of my login webpage on my repo as a proof of work. If it is insufficient, please let me know.

Thank you, this is approved now

Thank you! Now I know how it works on utopian.io.

这么好的东东,必须给大鹏赞一个

谢谢大伟哥!

要是微信朋友圈也能支持这个功能就好了

据说可以用“微信书”。

貌似需要授权 还是有点敏感
而且那边也是人工处理

怎麼沒看到任何範例呢?可以當成付費服務嗎?

劉前輩對做書感興趣啦?範例的話,倒是有兩個。

  1. 爲華語區 谷哥點名活動做的文集,有在綫的 gitbook 格式和離綫的 epub格式

  2. 我自己的博客選集,有在綫的 gibook 格式和離綫的 pdf 格式

都是用 bookdownplus 在 R bookdown 框架下做的。可以把 steem 上的帖子做成漂亮的 pdf 或 epub 離綫書籍,然而需要一些格式的轉換,目前需要用戶自己小小折騰一下。未來我會做個方便的轉換器,不過目前還沒有完全做好(最近有點忙)。

Great, looks good. 你有沒telegram?如果你要戒微信的話... 方便以後談事情。

還有,別再叫前輩了,好像在演武俠片啊 ...

沒有 telegram。email 就好啦!劉前輩美女有我的電郵哦。

Coin Marketplace

STEEM 0.19
TRX 0.12
JST 0.027
BTC 60647.08
ETH 3349.71
USDT 1.00
SBD 2.47