parse.rb
def title(t,symbol=nil,**kwds)
			unless kwds[:titletype]
				#we can't use outtype here because we are usually not inside Biblio#out
				kwds[:titletype]=:bib if kwds[:out]==:bib
				kwds[:titletype]=:web if kwds[:out]==:web
				kwds[:titletype]=:tex if kwds[:out].to_s=~/^tex/
			end
			case kwds[:titletype]
			when :web
				return "# #{t}"
			when :tex
				return "\\section{#{t}}"
			when :bib
				return "% "+t
			when :symbol
				return "# #{symbol}: "+t
			when :none
				return ''
			else
				return t.to_s
			end
		end
#Output a title; symbol may be the symbol which defined the title
Output a title; symbol may be the symbol which defined the title
Output a title ; symbol may be the symbol which defined the title
def title(t,symbol=nil,**kwds)
			unless kwds[:titletype]
				kwds[:titletype]=:bib if kwds[:out]==:bib
				kwds[:titletype]=:web if kwds[:out]==:web
				kwds[:titletype]=:tex if kwds[:out].to_s=~/^tex/
			end
			case kwds[:titletype]
			when :web
				return "# #{t}"
			when :tex
				return "\\section{#{t}}"
			when :bib
				return "% "+t
			when :symbol
				return "# #{symbol}: "+t
			when :none
				return ''
			else
				return t.to_s
			end
		end
def title ( t , symbol = nil , ** kwds ) unless kwds [ :titletype ] kwds [ :titletype ] = :bib if kwds [ :out ] == :bib kwds [ :titletype ] = :web if kwds [ :out ] == :web kwds [ :titletype ] = :tex if kwds [ :out ] . to_s =~ / ^tex / end case kwds [ :titletype ] when :web return "# #{t}" when :tex return "\\section{#{t}}" when :bib return "% " + t when :symbol return "# #{symbol}: " + t when :none return '' else return t . to_s end end
Output a title; symbol may be the symbol which defined the title
Output a title ; symbol may be the symbol which defined the title
#we can't use outtype here because we are usually not inside Biblio#out
t
symbol
kwds