Knitr document additions

Tyler Smith <[email protected]> Thu, 11 Sep 2014 17:05:33 -0400
Newsgroups gmane.comp.tex.latex.latex2rtf.devel
Message-ID <1410469533.3657110.166486441.684905B9@webmail.messagingengine.com>
Hello Scott, Wilfried,

I am using latex2rtf for the first time in some years, and found a few
new bits I need for processing the output of knitr files [1]. This
format produces a new environment called an Schunk. The easiest way to
deal with this is just to ignore it:

diff -c commands.c commands.c-orig 
*** commands.c  2014-09-11 16:16:04.558799720 -0400
--- commands.c-orig     2014-09-11 16:55:09.942186626 -0400
***************
*** 786,792 ****
      {"latexonly", CmdIgnore, 0},
      {"htmlonly", CmdIgnoreEnviron, IGNORE_HTMLONLY},
      {"rawhtml", CmdIgnoreEnviron, IGNORE_RAWHTML},
-     {"Schunk", CmdIgnoreEnviron, 0},
      {"theindex", CmdIgnoreEnviron, 0},
      {"landscape", CmdTolerateEnviron, 0},
      {"sloppypar", CmdTolerateEnviron, 0},
--- 786,791 ---- 

I am also using the \micro and \gram symbols from the SI package. These
are easily added to the direct.cfg file:

diff -c cfg/direct.cfg cfg/direct.cfg-orig 
*** cfg/direct.cfg      2014-09-11 16:51:35.011036810 -0400
--- cfg/direct.cfg-orig 2014-09-11 16:54:03.869227150 -0400
***************
*** 229,235 ****
  \gimel,{\u1490**}.
  \gneqq,{\u8809**}.
  \gnsim,{\u8935**}.
- \gram,{g}.
  \gtrdot,{\u8919**}.
  \gtreqless,{\u8923**}.
  \gtrless,{\u8823**}.
--- 229,234 ----
***************
*** 334,340 ****
  \measuredangle,{\u8737**}.
  \medskip,\par \par.
  \mho,{\u8487**}.
- \micro,{\u956\'3f}.
  \mid,|.
  \min,{\plain min}.
  \minus,{\u8722**}.
--- 333,338 ----

Have you given any thought to switching to github or bitbucket? This
kind of small tweaks would be easy to deal with as forks/pull requests.

Cheers,

Tyler
(formerly of mail.mcgill.ca when I added a handful of natbib tweaks)

[1] http://yihui.name/knitr/

-- 
  Tyler Smith
  [email protected]

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk