diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-12-16 23:19:35 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-12-16 23:46:13 -0500 |
commit | ff4ceb260ae3931072810a0ada124841d3b8e032 (patch) | |
tree | a736b8a7c4d7ce046d23f3cc834619e374f9bf68 /lib/sisu/v2/texpdf.rb | |
parent | dal_syntax, sisu syntax modification (insist on curly braces) (diff) |
document objects: page break; object separator (introduced & used, adjust later)
* object separator introduced
(requested Cory Doctorow, implementation not discussed)
* dal_syntax, object separator syntax (<:---> or <:ols>)
* constants, object separator
* vim syntax highlighting, match object separator
* document objects: page break; object separator
(introduced & used)
* dal, page break and object separator objects
* represent page break and object separator: plaintext, html, epub, odf,
texpdf (adjust later)
Diffstat (limited to 'lib/sisu/v2/texpdf.rb')
-rw-r--r-- | lib/sisu/v2/texpdf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sisu/v2/texpdf.rb b/lib/sisu/v2/texpdf.rb index 3a868cd8..a1a2813f 100644 --- a/lib/sisu/v2/texpdf.rb +++ b/lib/sisu/v2/texpdf.rb @@ -72,7 +72,7 @@ module SiSU_TeX @@tex_pattern_margin_number=/\\\\begin\\\{tiny\\\}\\\\hspace\\\{0mm\\\}\\\\end\\\{tiny\\\}\\\{\\\\marginpar.+?\s+/ @@n=@@tableheader=@@rights=nil @@date ||=SiSU_Env::Info_date.new - class Source #Songsheet #<SiSU_Param::MyFiles + class Source require 'pstore' require "#{SiSU_lib}/sysenv" # sysenv.rb include SiSU_Env @@ -146,7 +146,7 @@ module SiSU_TeX end end private - class LaTeX_to_pdf #<Songsheet + class LaTeX_to_pdf require 'fileutils' include FileUtils #::Verbose @@n_lpdf||=0 #change @@ -344,6 +344,7 @@ module SiSU_TeX elsif dob.is =='break' if dob.obj==Mx[:br_page]; dob.tmp='\newpage' elsif dob.obj==Mx[:br_page_new]; dob.tmp='\clearpage' + elsif dob.obj==Mx[:obj_ln_sep]; dob.tmp='\parasep' end elsif dob.is=='comment' \ or dob.is=='meta' @@ -571,6 +572,7 @@ module SiSU_TeX \\definecolor{Light}{gray}{.92} \\newcommand{\\Codeblock}[1]{\\normaltext\\raggedright\\small\\ttfamily\\texbackslash#1} \\newcommand{\\monosp}[1]{\\normaltext\\ttfamily\\texbackslash#1} +\\newcommand{\\parasep}{\\\\ \\begin{center}*\\hspace{2em}*\\hspace{2em}*\\end{center} \\\\} % \\sloppy \\begin{document} WOK |