Browse Source

Demonstrate color arguments

pull/184/head
Oliverpool 9 years ago
parent
commit
a46e42bfce
  1. 12
      examples/example-all.yaml.sb
  2. 12
      patacrep/data/templates/patacrep.tex

12
examples/example-all.yaml.sb

@ -13,4 +13,14 @@ authors:
separators: separators:
- "and" - "and"
- "et" - "et"
content: [["sorted"]] content: [["sorted"]]
template:
patacrep.tex:
color:
songlink: FF0000
hyperlink: 0000FF
bgcolor:
note: D1E4AE
songnumber: AED1E4
index: E4AED1 #not enough songs to see it

12
patacrep/data/templates/patacrep.tex

@ -30,6 +30,11 @@ schema:
picture: //str picture: //str
picturecopyright: //str picturecopyright: //str
footer: //str footer: //str
color:
type: //rec
required:
songlink: //str
hyperlink: //str
bgcolor: bgcolor:
type: //rec type: //rec
required: required:
@ -45,6 +50,9 @@ default:
picture: img/treble_a picture: img/treble_a
picturecopyright: "Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}" picturecopyright: "Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"
footer: "Generated using Songbook (\\url{http://www.patacrep.com})" footer: "Generated using Songbook (\\url{http://www.patacrep.com})"
color:
songlink: 4e9a06
hyperlink: 204a87
bgcolor: bgcolor:
songnumber: D1E4AE songnumber: D1E4AE
note: D1E4AE note: D1E4AE
@ -84,8 +92,8 @@ default:
\renewcommand{\notebgcolor}{NoteBgColor} \renewcommand{\notebgcolor}{NoteBgColor}
\renewcommand{\idxbgcolor}{IndexBgColor} \renewcommand{\idxbgcolor}{IndexBgColor}
\definecolor{tango-green-3}{HTML}{4e9a06} \definecolor{tango-green-3}{HTML}{(( template_var.color.songlink ))}
\definecolor{tango-blue-3}{HTML}{204a87} \definecolor{tango-blue-3}{HTML}{(( template_var.color.hyperlink ))}
\usepackage[ \usepackage[
bookmarks, bookmarks,
bookmarksopen, bookmarksopen,

Loading…
Cancel
Save