Export pages from Knowen
Knowen allows you to export arbitrary subtree into single HTML file. Your browser can convert it into PDF for you. For example, there is an option Save to PDF at the Print menu in Google Chrome.
We are working now on one-click export to $\LaTeX$ and PDF. Meanwhile you will need to use a third-party converter. We recommend Pandoc, which is available on Windows, Mac and Linux. It can produce, among others, $\LaTeX$, epub and docx outputs. The downside is that you will have to run it from the console.
To convert an exported HTML file into $\LaTeX$, follow the steps below:
- Open the file with your favorite text editor. Remove the last 9 lines at the end (starting with
<script src="http://cdn.mathjax.org/...
). Save this file with.md
extension. - Remove the table of contents from the beginning of the file.
- To obtain a $\LaTeX$ file, invoke Pandoc with the following command:
pandoc -f markdown_github+tex_math_dollars -s -V lang=english -o output_filename.tex input_filename.md
. Hereinput_filename.md
is the file you saved at step 1, and the output will be written tooutput_filename.tex
. If needed, substituteenglish
with your language name (it will be passed to the babel package in $\LaTeX$). You can substitute.tex
with other supported extension like.docx
or.epub
. - You might want to tweak the $\LaTeX$ source you have gotten before compiling it to PDF. Here is some advice:
- You might want to comment out
\usepackage{lmodern}
- Insert
\usepackage{cmap}
to support searching in PDF
- You might want to comment out
If you are experiencing problems with conversion, please leave a Feedback or write us an e-mail!