Comments (8)
Also, I found that we can use listings
package instead of minted
in LaTeX and pandoc
handle the lstlisting
environment well.
from lkmpg.
After creating and running with a custom pandoc filter for minted
package. Now it can handle the code block environment with minted
package well:
It may take me some time for creating the pandoc filter to deal with the \newminted[codebash]
environment that @jserv created.
from lkmpg.
make4ht is used for HTML generation (#20), and I would like to stick to LaTeX script at present.
from lkmpg.
Sure that we can keep the source files in *.tex
format but find out another solution for HTML/EPUB generating. It's not really convenient to use TeX4ht
with custom HTML template although it's enough at present.
from lkmpg.
I think build a markdown file then convert it into html sounds promising.
However pandoc
doesn't support some extensions used in lkmpg.tex
and caused several code blocks to be omitted.
from lkmpg.
More packages make more possible dependency issue but we don't have bunch of packages.
I've check that currently the format conversion of code block from tex
to md
would be like something below:
LaTeX | Markdown |
|
|
It seems that we can do something tricky: TeX -> Markdown -> HTML
. Just replace ":::"
with "```"
and "codebash"
(or something else programming languages) with "bash"
before converting to HTML
from Markdown
.
from lkmpg.
Consider using \begin{minted}[linenos]{c}
instead of \begin{minted}{c}
so the line number can be shown.
from lkmpg.
There is a POC (Proof of Concept) site building with Pandoc + Hugo (theme: book)
could be check at here. It seems that:
- The lua-filters
minted
given by Pandoc officially could not deal with the[linenos]
options well. And I need to modify it for custom use. - The
\samplec{}
macro for including*.c
source code into document is not work when converting withpandoc
. This could be resolve with hardcoded replacing before converting.
Now, waiting for #26 resolved so that I could split one page into several chapters.
from lkmpg.
Related Issues (20)
- procfs3.ko used by -1 HOT 2
- procfs2.c vs. procfs3.c HOT 1
- 11.1 Sleep chapter. API module_interruptible_sleep_on HOT 1
- Reason to reset the offset HOT 2
- Smatch repository is unavailable HOT 1
- Build kernel module for Rpi3MB HOT 1
- Building kernel modules in RpiOS32bit/Rpi3MB platform HOT 2
- lkmpg on RpiOsLite/rpi3MB HOT 1
- Consistent usage of __init and __exit HOT 1
- About 16.2 Symmetric key encryption sample code HOT 2
- examples/kbleds.c:64:55: error: ‘struct tty_driver’ has no member named ‘magic’
- Building kbleds.ko on RpiOSLite64bit (Linux 6.1.21-v8+) HOT 4
- examples/sched.ko HOT 4
- Module parameters callback : be notified when a parameter is updated
- Little introduction to debugfs
- About /proc, try_module_get and python3 HOT 3
- If you want to build device drivers for an cross target (yocto build) ... HOT 1
- typo
- Linux HOT 1
- Talking to other subsystems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lkmpg.