JLimperg/rcite — Issue #3: Formatting options
Author: JLimperg
Created: 2011-12-03 14:54:38+00:00
State: open
Labels: feature

Style authors should be able to create styles that support multiple formats (e.g. html, markdown, latex etc.). This could be accomplished in two ways:

1) Format methods
There could be a 'format' method similar to RoR's, to indicate that certain portions of a citation/bibliography entry shall only be printed if the according format is specified. This would look like

```ruby
def cite_book
format 'md' do
add "**" + author + "**"
end

format 'latex' do
add "\emph{" + author + "}"
end
end
```

2) Methods for specific formatting options
In addition to the former approach, specific methods could be added for common formatting markup like 'b', 'it' etc. This would look like

```ruby
def cite_book
add bold author
add sep "; "
add italic title
end
```

Both approaches could be combined with each other for maximum flexibility and power.