Re:VIEW Quick Start Guide
Re:VIEW is a toolset to convert from Re:VIEW format documents into various formats.
Re:VIEW uses original lightweight markup language like EWB, RD or Wiki. Its syntax is simple but powerful for writing IT documents. When you write your documents in Re:VIEW format, you can convert them with Re:VIEW tools into LaTeX, HTML, EPUB, InDesign, Text, and so on.
Re:VIEW is free software under the terms of the GNU Lesser General Public License Version 2.1, so you can use, modify and redistribute it. This license has no relations with your documents using Re:VIEW, so your documents are not forced to use this license. When you want to distribute Re:VIEW software itself or the system including Re:VIEW software, you should read COPYING file carefully.
This article describes how to setup Re:VIEW and use it.
The supported version of the article is Re:VIEW 5.1.
Set up Re:VIEW
Re:VIEW is a software in Ruby and worked in Linux/Unix, macOS, and Windows. You can install Re:VIEW with RubyGems or Git.
Note that Re:VIEW format is plain texts with simple markups in UTF-8, so you can write it on any editors and OSes.
using RubyGems
Re:VIEW is released as RubyGems.
https://rubygems.org/gems/review
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
using Git
You can get latest Re:VIEW sources from GitHub.
You can use Re:VIEW to add review/bin
directory to $PATH
variable.
You can update the sources as follows:
Writing Re:VIEW Document
Generating template files
After setup, you can use review-init
command to generate Re:VIEW project directory.
To generate hello
project:
If your purpose is to create a PDF using TeX, it is a good idea to use the wizard mode for basic layouting in a web browser. Add -w
option to review-init.
(notice: currently wizard UI supports only Japanese language)
In hello
directory, many files are generated.
*.re
: Re:VIEW format file.config.yml : configuration file
config-ebook.yml : configuration file for ebook (when using the wizard mode)
catalog.yml : catalog file (for TOC)
Rakefile : rule file for
rake
commandimages : folder for images
style.css : sample stylesheet
sty : style files for LaTeX
doc : various documents (including this document)
lib : detailed rule files of rake command and etc.
writing Re:VIEW documents and converting them
You should use UTF-8 as encodings in text files.
generating PDF, EPUB, plain-text, and InDesign XML
To convert files in the project, use review-*maker command.
review-pdfmaker: generate PDF
review-epubmaker: generate EPUB
review-textmaker: genrate plaintext
review-idgxmlmaker: genrate InDesign XML
Each maker need config.yml
, configuration YAML files. review-init
command generates config.yml
in default.
You also can generate them with Rake.
generate PDF using Vivliostyle CLI
add chapters and modify them
catalog.yml
file is a catalog of Re:VIEW format files.
If you create new *.re
files as new chapters, you should add the name of files into catalog.yml
.
more information
convert file by file
You can convert a *.re file with review-compile
command.
When you want to convert sample.re, you can do as belows:
review-compile
and other commands in Re:VIEW has --help
option to output help. review-compile
has many options, so you may see them.
preprocessor and other commands
With Re:VIEW tags such as #@mapfile
, #@maprange
and #@mapoutput
, you can include content of files or result of command execution. To do so, you use review-preproc
command.
You can use review-vol
command to know the volume of the document.
You can also use review-index
command to generate header list.
review-vol and review-index can have large differences in the number of characters, lines, and pages. While review-vol only estimates from the file, review-index actually compiles and calculates.
how to update the document folder to the new Re:VIEW version
Re:VIEW is updated regularly. We Re:VIEW team watch the backward compatibility carefully, but if you want to use the features in the new version, you can use review-update command to update the project folder.
Copyright
The original author of Re:VIEW is Minero Aoki. The current maintainer is Kenshi Muto(@kmuto), and committers are Masayoshi Takahashi and Masanori Kado (March 2020).
If you want to report bugs and patches, or to get more information, see:
http://reviewml.org/
https://github.com/kmuto/review/wiki
Last updated