-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add ird sty * fix jsbook config * update for ird * update README
- Loading branch information
Showing
7 changed files
with
435 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
review-retrovert (0.9.6) | ||
review-retrovert (0.9.7) | ||
review (>= 3.0.0) | ||
thor | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
## | ||
## ReVIEW::LATEXBuilderクラスを拡張する | ||
## | ||
|
||
require 'review/latexbuilder' | ||
|
||
|
||
module ReVIEW | ||
|
||
defined?(LATEXBuilder) or raise "internal error: LATEXBuilder not found." | ||
|
||
|
||
module LATEXBuilderForIRD | ||
# def headline(level, label, caption) | ||
# if level >= 4 | ||
# puts '\needspace{3zh}' | ||
# end | ||
# super(level,label,caption) | ||
# puts '\nopagebreak[4]' | ||
# end | ||
|
||
def ul_begin | ||
blank | ||
puts '\begin{reviewitemize}' | ||
end | ||
def ul_end | ||
puts '\end{reviewitemize}' | ||
blank | ||
end | ||
end | ||
|
||
class LATEXBuilder | ||
prepend LATEXBuilderForIRD | ||
|
||
# def headline(level, label, caption) | ||
# _, anchor = headline_prefix(level) | ||
# headline_name = HEADLINE[level] | ||
# if @chapter.is_a?(ReVIEW::Book::Part) | ||
# if @book.config.check_version('2', exception: false) | ||
# headline_name = 'part' | ||
# elsif level == 1 | ||
# headline_name = 'part' | ||
# puts '\begin{reviewpart}' | ||
# end | ||
# end | ||
# prefix = '' | ||
# if level > @book.config['secnolevel'] || (@chapter.number.to_s.empty? && level > 1) | ||
# prefix = '*' | ||
# end | ||
# blank unless @output.pos == 0 | ||
# @doc_status[:caption] = true | ||
# puts macro(headline_name + prefix, compile_inline(caption)) | ||
# puts '\nopagebreak[4]' | ||
# @doc_status[:caption] = nil | ||
# if prefix == '*' && level <= @book.config['toclevel'].to_i | ||
# puts "\\addcontentsline{toc}{#{headline_name}}{#{compile_inline(caption)}}" | ||
# end | ||
# if level == 1 | ||
# puts macro('label', chapter_label) | ||
# else | ||
# puts macro('label', sec_label(anchor)) | ||
# puts macro('label', label) if label | ||
# end | ||
# puts '\nopagebreak[4]' | ||
# rescue | ||
# error "unknown level: #{level}" | ||
# end | ||
end | ||
end |
Oops, something went wrong.