rbbeamer 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.md +6 -4
  2. data/bin/rbbeamer +10 -9
  3. data/changes.txt +3 -0
  4. metadata +2 -2
data/README.md CHANGED
@@ -3,9 +3,11 @@ rbbeamer - ruby-beamer
3
3
 
4
4
  rbbeamer is a preprocessor script to convert a structured file with informations about your slides into a .tex file. If pdflatex is installed, rbbeamer can go on and start pdflatex to build your PDF.
5
5
 
6
- Most of work is done by the LaTeX-Beamer-package. But writing TEX-Files for beamer can be a little bit annoying if you usually use only a small (and everytime the same) part of the things beamer is capable to do. So if you need individual slides using all beamer-capbilities, you should use beamer directly by writing a .tex-file.
6
+ Most of work is done by the LaTeX-Beamer-package. But writing TEX-Files for beamer can be a little bit annoying if you usually use only a small (and everytime the same) part of the things
7
+ beamer is capable to do. So if you need individual slides using all beamer-capabilities, you should use beamer directly by writing a .tex-file.
7
8
 
8
- rbbeamer gives you access to (right now) just a small part of beamer-capabilities. But you can input your data very fast with nearly no hazzle about formatting and counting clicks and all this stuff.
9
+ rbbeamer enables you (right now) to access just a small part of beamer-capabilities. But you can input your data very fast with nearly no hazzle about formatting and counting clicks and all
10
+ this stuff.
9
11
 
10
12
  Example
11
13
  -------
@@ -55,7 +57,7 @@ The resulting .TEX file will create a presentation with a title page, a table of
55
57
 
56
58
  Install with `gem install rbbeamer`.
57
59
 
58
- rbbeamer compiles .rbt-files into .tex-files. If you want to create your PDF, you should also have a latex-installation (otherwise rbbeamer will just create a TEX-file that you can use to work with at your own). If latex is not in your $PATH, you can specify a path in ~/.rbbeamer.conf. Default binary-name ist pdflatex.
60
+ rbbeamer compiles .rbt-files into .tex-files. If you want to create your PDF, you should also have a latex-installation (otherwise rbbeamer will just create a TEX-file that you can use to work with at your own). If latex is not in your $PATH, you can specify a path in ~/.rbbeamer/rbbeamer.conf. Default binary-name ist pdflatex.
59
61
 
60
62
  ### System prerequisites
61
63
 
@@ -143,7 +145,7 @@ Starting rbbeamer at least you will have to specify your .rbt-file to compile. B
143
145
  to filename)
144
146
  --theme, -t <s>: Beamer-Theme to use (see Beamer-Doc for more info)
145
147
  (default: Luebeck)
146
- --handoutcolor,-n <s>: Colortheme for printing handouts (try DOVE to save ink) (default: default)
148
+ --handoutcolor,-n <s>: Colortheme for printing handouts (use 'handoutcolor = ' to deactivate this option) (default: dove)
147
149
  --babel, -b <s>: Language-option for babel-Package (default: english)
148
150
  --backend, -a <s>: Backend for biblatex setting up references (default:
149
151
  bibtex)
data/bin/rbbeamer CHANGED
@@ -23,12 +23,12 @@ require 'parseconfig.rb'
23
23
  require 'open3'
24
24
  require 'pathname'
25
25
 
26
- Version = "0.5.6 (2014-02-21)"
26
+ Version = "0.5.7 (2014-04-06)"
27
27
 
28
28
  sep = '|' # seperator-string to split different parts of a line / command
29
29
  SAVESEP = '<-saveThisAsSeperatorForLaterUse->'
30
30
  Defaulttheme = 'Luebeck'
31
- Defaulthandoutcolor = 'default' #'dove'
31
+ Defaulthandoutcolor = 'dove' # to save ink printing the handout
32
32
  DefaultLanguage = 'english'
33
33
  Backend = 'bibtex'
34
34
  Logofile = 'logo' # should be .png or .jpg or ...
@@ -78,7 +78,7 @@ intro = <<-'EOF'
78
78
  \usepackage{eurosym}
79
79
  \usepackage[style=authortitle,backend=/<-KVAR-TBR->/]{biblatex}
80
80
  \usetheme{/<-KVAR-TBR->/}
81
- \usecolortheme{/<-KVAR-TBR->/}
81
+ /<-KVAR-TBR->/
82
82
  \usepackage{tikz}
83
83
  \usetikzlibrary{shapes,arrows}
84
84
  /<-KVAR-TBR->/
@@ -209,7 +209,7 @@ opts = Trollop::options do
209
209
  opt :logo, "Logo-File (without extension) for slides", :type => :string, :short => 'o', :default => Logofile
210
210
  opt :pdf, "Start pdflatex after creating tex-file", :default => false
211
211
  opt :handout, "build a handout (no animations in pdf, add _handout to filename)", :default => false
212
- opt :handoutcolor, "Colortheme for printing handouts (try DOVE to save ink)", :type => :string, :short => 'n', :default => Defaulthandoutcolor
212
+ opt :handoutcolor, "Colortheme for printing handouts (use 'handoutcolor = ' to deactivate this option)", :type => :string, :short => 'n', :default => Defaulthandoutcolor
213
213
  opt :theme, "Beamer-Theme to use (see Beamer-Doc for more info)", :type => :string, :default => Defaulttheme
214
214
  opt :babel, "Language-option for babel-Package", :type => :string, :short => 'b', :default => DefaultLanguage
215
215
  opt :backend, "Backend for biblatex setting up references", :type => :string, :default => Backend
@@ -331,9 +331,9 @@ fbasename = File.basename(filename,'.rbt')
331
331
  fbasename += '_handout' if cfg[:handout]
332
332
  fn = fbasename + '.tex'
333
333
 
334
- # Handout mode: We will use Defaulthandoutcolor-Theme or specified handoutcolor-Theme
335
- # Presentation mode: We always will use Defaulthandoutcolor
336
- cfg[:handoutcolor] = cfg[:handout] ? cfg[:handoutcolor] : Defaulthandoutcolor
334
+ # Handout mode: We will use Defaulthandoutcolor or specified handoutcolor
335
+ # Presentation mode: We do not specify a color scheme
336
+ handoutcolorLine = cfg[:handout] ? '\usecolortheme{' + cfg[:handoutcolor] + '}' : '% No colortheme specified'
337
337
  # Do we have to preprocess graphviz-pictures?
338
338
  picmake = FALSE
339
339
  puts "Processing #{filename}"
@@ -473,7 +473,7 @@ File.open(fn,'w') do |out|
473
473
  scalefaktor = content.first.to_f
474
474
  when '#[' # copy content without change but restore saved sep.symbols (this line only)
475
475
  out.puts content.join.gsub(SAVESEP,sep)
476
- when '#sd' # Start eines Beamer Documents, Vorspann schreiben
476
+ when '#sd' # Starting beamer document, writing head of document
477
477
  raise "Need title,author and date in #sd-Command: " + line if content.size < 3
478
478
  Titel,Autor,Datum = content[0..2]
479
479
  opt_handout = cfg[:handout] ? 'handout' : '' # we include this in \documentclass-command
@@ -498,7 +498,8 @@ File.open(fn,'w') do |out|
498
498
  vorspann = intro_beamer
499
499
  vorspann.gsub!('%','/PROZENT!/')
500
500
  vorspann.gsub!('/<-KVAR-TBR->/','%s')
501
- vorspann = vorspann % [opt_handout,cfg[:babel],cfg[:backend],cfg[:theme],cfg[:handoutcolor],addpackage,bibline,Titel,Titel,Autor,Datum]
501
+ # vorspann = vorspann % [opt_handout,cfg[:babel],cfg[:backend],cfg[:theme],cfg[:handoutcolor],addpackage,bibline,Titel,Titel,Autor,Datum]
502
+ vorspann = vorspann % [opt_handout,cfg[:babel],cfg[:backend],cfg[:theme],handoutcolorLine,addpackage,bibline,Titel,Titel,Autor,Datum]
502
503
  vorspann.gsub!('/<-LOGOFILE->/',cfg[:logo])
503
504
  vorspann.gsub!('/PROZENT!/','%')
504
505
  out.puts vorspann
data/changes.txt CHANGED
@@ -1,3 +1,6 @@
1
+ 0.5.7:
2
+ Fixed a problem in processing option handoutcolor
3
+ Fixed some typos in README
1
4
  0.5.6:
2
5
  Hotfix: handoutcolor-theme was not only used for handouts but also for presentations
3
6
  0.5.5:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbeamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-21 00:00:00.000000000 Z
12
+ date: 2014-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop