File: README

package info (click to toggle)
context-modules 20120611-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,060 kB
  • sloc: xml: 608; makefile: 49; sh: 36
file content (43 lines) | stat: -rw-r--r-- 854 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Modulename : t-ruby
Author     : Wolfgang Schuster
License    : Public Domain


Description
-----------

The 'ruby' module allows users to write ruby annotations in ConTeXt.


Usage
-----

The module is loaded with the command:

  \usemodule[ruby]

Ruby text can be set with the command:

  \ruby{base text}{ruy text}

The layout of the base and ruby text could be changed with:

  \setupruby
    [basestyle=...,
     basecolor=...,
     textstyle=...,
     textcolor=...]

Whether ruby text overlaps with the surrounding text or not can be configured with:

  \setupruby
    [overhang=auto|start|end|none] % default: yes

The last option is the distance between the ruby and the base text:

  \setupruby
    [inbetween=...] % default: \blank[small]

All of these parameters can also be changed for a single ruby command:

  \ruby[..,..=..,..]{...}{...}