GitBook is a command line tool (and Node.js library) for building books and exercises using GitHub/Git and Markdown.
Questions tagged [gitbook]
176 questions
33
votes
6 answers
Two column layout with markdown
I am working on a side-by-side text. I have to prepare this with two column layout. For example one column contains English text and other column/right column contains translation of preceding (English) text.
Markdown does not support table marking…

esquare
- 3,947
- 10
- 34
- 37
25
votes
9 answers
Gitbook-cli install error TypeError: cb.apply is not a function inside graceful-fs
When executing any gitbook command in the terminal, the following error is thrown:
/home/travis/.nvm/versions/node/v12.18.3/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287
if (cb) cb.apply(this,…

Ariel Mirra
- 1,117
- 1
- 10
- 17
17
votes
3 answers
Custom Gitbook Themes
Does anyone know how to modify the look of a git book? I've seen 2 books that have a different look from the default:
http://codac.co/
http://coalman.github.io/tott-gulpjs/book/
But can someone point me in the right direction of how to customize the…

FixMySync
- 313
- 2
- 3
- 12
11
votes
1 answer
How to change TOC depth in R Bookdown (GitBook)?
I use GitBook format through R bookdown. I need to use at least four levels in the table of contents (TOC). The default is three. How can I change the depth of TOC?
UPDATE
Now the toc-related contents of my _output.yml file look like…

GegznaV
- 4,938
- 4
- 23
- 43
11
votes
2 answers
R Bookdown The GitBook toolbar not visibile in IE11 in Minimal Book Example
A strange thing is happening browsing a A Minimal Book Example with Chrome and Edge shows the GitBook toolbar. However when using internet Explorer 11 with windows 10 the toolbar doesn't show but is working.
Versie: 11.98.16299.0
Updateversies:…

Floris Padt
- 796
- 5
- 10
8
votes
2 answers
How to create a only one row table using markdown
I use gitbook legacy editor to create a single row table
It looks fine on visual editor but looks really weird when it is on the server.
On visual editor, it is just a one-row table. On the server, it is a one-row table + an empty table body cell…

Jack Mulin
- 109
- 1
- 7
7
votes
1 answer
How to publish Gitbook in Dark mode
Is it possible to publish Gitbook in Dark mode.
Gitbook provides option to set dark mode in user settings. But I would like to set dark mode by default for everyone.

kanna
- 1,412
- 1
- 15
- 33
7
votes
1 answer
Is there a way to use latex expression of chemarr for `gitbook` format of bookdown package?
I would like to use latex expression of chemarr for gitbook format of bookdown package.
\begin{equation}
[C] + [R]
\xrightleftharpoons[k_{-1}]{k_1}
[CR] + [C]
\xrightleftharpoons[k_{-2}]{k_2}
…

Sungpil Han
- 638
- 6
- 11
7
votes
1 answer
How to justify whole text in Rmd with bookdown::gitbook as output
I would like to justify all the text in my gitbook, but I couldn't find a solution. So far I've tried:
Set the text-align as justified in the style/body, right after the YAML Header:
It doesn't…

Cainã Max Couto-Silva
- 4,839
- 1
- 11
- 35
7
votes
1 answer
R Bookdown - Customize width of TOC/Sidebar
Although I can change the width and position of different elements in the body of an r bookdown doc by modifying the page wrapper in the .css, is there a way to change the width of the sidebar by modifying the styles sheet?
I'm not looking to…
7
votes
1 answer
Can you download GitBook Files and Directories?
GitBook allow content transfers into different formats but is there an option to download files & directories as they are edited (as text)?
By example, GitHub code is stored on servers and locally on contributor's PCs too.

Jacob
- 14,949
- 19
- 51
- 74
7
votes
0 answers
Produce single page of HTML?
Is there a way to have gitbook produce a single page of HTML from a document? I've seen smatterings of conversations about an older option in the Issues, but don't see any documentation about it with the current version.
Was this option removed? …

Peter Wagener
- 2,073
- 13
- 20
6
votes
3 answers
Create a gitbook plugin locally without publishing it
I want to learn writing plugins for gitbook (because I want to use it and will need custom plugins).
However, I feel documentation is a bit sparse on the matter, and reading code from existing plugins doesn't help me very much in this question:
How…

uli_1973
- 705
- 1
- 5
- 22
5
votes
3 answers
gitbook init Error: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be
node: v14.0.0
CLI version: 2.3.2
GitBook version: 3.2.3
Windows10
When execute gitbook init in an empty folder, it pops up:
$ gitbook init
warn: no summary file in this book
info: create SUMMARY.md
TypeError [ERR_INVALID_ARG_TYPE]: The "data"…

Sentinel_15
- 51
- 1
- 2
5
votes
1 answer
Changing styles of TOC of Bookdown, Gitbook style
I like to tweak the styles (e.g. background-color, font) of the TOC of the Bookdown, Gitbook style HTML document.
Is this possible? If so, can someone be kind enough to point me to where I can start to do this?
Thank you.

Chammika Udalagama
- 63
- 2