内容简介:Though you can easily override CSS stylesheets and add your own HTML themes, we can say (or write) that Org mode provides aShare this content by tweeting this page:
How to export Org mode files into awesome HTML in 2 minutes
Overview
Description
Though you can easily override CSS stylesheets and add your own HTML themes, we can say (or write) that Org mode provides a basic HTML support.
Org-HMTL themes is an open source framework for providing you with a list of very nice (cross-browser) themes for all your Org documents. Use them to style your docs , and your colleagues will come up to tell you that you are a genius!
Share this content by tweeting this page:
Follow f_niessen on Twitter for updates on Org-HTML themes!
Requirements
Org mode version 8 (or later) is required.
If such a version is not bundled with your Emacs, install one from ELPA.
Quotations
About Bigblow
“Very very nice, I enjoy it a lot.”
– Ista Zahn
“This is awesome. I love it!”
– Rainer M Krug
“This is awesome!!”
– Mehul Sanghvi
“This very nice html theme. […] I cannot use another emacs-theme than your emacs-leuven-theme , and it is going to be probably the same with your html theme!”
– Joseph Vidal-Rosset
“Thanks a lot for sharing […] the wonderful Bigblow theme. I create lot of specification for other team members to use. It has always been a trouble to share and maintain such spec. Now, I can create a much neater spec which is available for the team’s reference as a webpage.”
– Shankar R.
“I like Bigblow the best. I’ve exported most of my Org files using this theme and published them within my company’s intranet. Thanks for sharing this wonderful package!”
– Richard K.
About ReadTheOrg
“OMG. The ReadTheOrg theme for exported HTML from org mode files is eye wateringly beautiful. Thank you!”
– Rob Stewart
“It is fantastic, so beautiful. I will switch several of my pages over to this theme.”
– Carsten D.
“That is incredibly impressive. Thanks for this.”
– Noah R.
“Thank you! I enjoy your themes. The best ones I’ve ever found.”
– Kang T.
“Awesome theme. Wonderful job. You’re doing a wonderful thing — it will enable people (at least those who use Emacs and Org mode) to put together on-line reference works in a much-more usable fashion than is currently available.”
– D. C. Toedt
“Extremely useful.”
– Thomas S. Dye
Gallery
This is a list of available HTML themes for Org mode , which you can use right now! Well, I hope to have more than one in a couple of weeks…
Bigblow
Bigblow is perfect for your work: it is a clean design aimed at optimal Org mode experience in your browser . It looks just awesome!
Click on the image for a quick demo of Bigblow (2:49 min, no audio).
Keyboard shortcuts to save time and boost your productivity:
Shortcut | What it does |
---|---|
? or h |
Access the dashboard |
n |
Move to the next main heading |
p |
Move to the previous main heading |
b |
Scroll up |
< |
Scroll to top |
> |
Scroll to bottom |
- |
Collapse all |
+ |
Expand all |
r |
Go to next task in list |
R |
Go to previous task in list |
q |
Stop reviewing the list of tasks |
g |
Reload the page |
ReadTheOrg
ReadTheOrg is a clone of the official – and great! – theme used in the Read The Docs site. It gives a beautiful and professional style to all your Org docs.
Thanks to its creator(s)!
Demo
I’ve written a demo page for the themes that provides a maximal working support of Org mode syntax.
Please see the Org mode refcard page for full examples of headings, code, admonitions, footnotes, tables and other details.
Using a theme
Using a theme from the theme gallery for your own Org documents is very easy:
- You add a
#+SETUPFILE:
directivein the preamble of your document (to include the necessary CSS and JavaScript files).
You can either use an URL of the following type for the “setup file” of your chosen theme:
#+SETUPFILE: https://fniessen.github.io/org-html-themes/setup/THEME-NAME.setup
(where
THEME-NAME
istheme-bigblow
ortheme-readtheorg
)or, if you cloned or downloaded the Org-HTML themes project – to get no dependency on an Internet connection –, use a (relative or absolute) path to the local “setup file” and copy the “styles” folder from the cloned folder into the same folder as the file you want to export:
#+SETUPFILE: path/to/Git/repo/setup/THEME-NAME-local.setup
- Then, you export your Org mode file to HTML with
org-html-export-to-html
or withC-c C-e h h
.
Customizing a theme
You love those themes, but you still would like to override particular HTML tags? Some examples do follow…
Before doing that, though, if you think it really is an improvement that could server other persons as well, including me, you’re invited to submit your change…
Change the background code blocks
Here’s an example to insert into your Org documents:
# Change the background of source block. #+HTML_HEAD: <style>pre.src{background:#343131;color:white;} </style>
Unset body width limit of ReadTheOrg
Solution provided by Malcolm Cook:
#+HTML_HEAD: <style> #content{max-width:1800px;}</style> #+HTML_HEAD: <style> p{max-width:800px;}</style> #+HTML_HEAD: <style> li{max-width:800px;}</style
Contributing
Issues
Report issues and suggest features and improvements on the GitHub issue tracker .
Patches
I love contributions! Patches under any form are always welcome!
Donations
If you use the org-html-themes project (or any of my other projects ) and feel it is making your life better and easier, you can show your appreciation and help support future development by making today a donation through PayPal. Thank you!
Regardless of the donations, org-html-themes will always be free both as in beer and as in speech.
Follow me
I have an f_niessen account on Twitter. You should follow it.
License
Copyright (C) 2011-2020 Fabrice Niessen.
Author: Fabrice Niessen
Keywords: org-mode html themes
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ .
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
共鸣:内容运营方法论
舒扬 / 机械工业出版社 / 2017-5-8 / 59.00
近5年来网络信息量增长了近10倍,信息极度过剩。移动互联网以碎片化、强黏度以及惊人的覆盖率给传统的商业环境带来了巨大的影响,向陈旧的广告、公关、媒体行业展开了深度的冲击。 传统的以渠道为中心的传播思想几近失效,优秀内容成为了各行业最稀缺的资产,这是时代赋予内容生产者的巨大机会。本书作者在多年经验和大量案例研究的基础上,总结出了移动互联网时代的内容运营方法论——共鸣,它将告诉我们如何收获核心粉......一起来看看 《共鸣:内容运营方法论》 这本书的介绍吧!