Class: CiteProc::Ruby::Formats::Latex
Class Attribute Summary collapse
Instance Attribute Summary collapse
#locale
Instance Method Summary
collapse
#apply, #apply_prefix, #apply_quotes, #apply_suffix, #apply_text_case, #close_inner_quote, #close_quote, #join, #keys, load, #prefix, #punctuation_in_quotes?, #split_closing_quotes, squeezable, #squeezable?, squeezable?, #squeeze_prefix, #squeeze_suffix, stopword?, #strip, #suffix
Constructor Details
#initialize(config = nil) ⇒ Latex
Returns a new instance of Latex.
23
24
25
26
27
28
29
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 23
def initialize(config = nil)
if config.nil?
@config = Latex.defaults.dup
else
@config = Latex.defaults.merge(config)
end
end
|
Class Attribute Details
.defaults ⇒ Object
Returns the value of attribute defaults.
18
19
20
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 18
def defaults
@defaults
end
|
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
21
22
23
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 21
def config
@config
end
|
Instance Method Details
#apply_display ⇒ Object
63
64
65
66
67
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 63
def apply_display
output.replace(
content_tag(config[:display], output)
)
end
|
#apply_font_style ⇒ Object
42
43
44
45
46
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 42
def apply_font_style
if options[:'font-style'] == 'italic'
output.replace content_tag(config[:italic], output)
end
end
|
#apply_font_variant ⇒ Object
48
49
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 48
def apply_font_variant
end
|
#apply_font_weight ⇒ Object
51
52
53
54
55
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 51
def apply_font_weight
if options[:'font-weight'] == 'bold'
output.replace content_tag(config[:bold], output)
end
end
|
#apply_text_decoration ⇒ Object
57
58
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 57
def apply_text_decoration
end
|
#apply_vertical_align ⇒ Object
60
61
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 60
def apply_vertical_align
end
|
#bibliography(bibliography) ⇒ Object
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 31
def bibliography(bibliography)
bibliography. = "\\begin{enumerate}"
bibliography. = "\\end{enumerate}"
bibliography.prefix = "\\item "
bibliography.suffix = ""
bibliography.connector = "\n"
bibliography
end
|
#escape_quotes? ⇒ Boolean
69
70
71
|
# File 'lib/citeproc/ruby/formats/latex.rb', line 69
def escape_quotes?
false
end
|