The branch, tex4htTesting, has been updated.

- Log -----------------------------------------------------------------

commit e1678fdb1ba3d0fe213d173d559ea8df127de086
Author: Prannoy Pilligundla <prannoy.b...@gmail.com>
Date:   Wed Jun 25 01:13:32 2014 +0530

    Working inline metadata
    
    Inline metadata can be put inside \inlinemeta{} from now on.There is a 
small bug i.e extra characters "^^E^^L" appear after the content. Source of 
these is unknown till now, maybe it is a bug with cprotect package.

diff --git a/tests/LyX-Word-roundtrip-Mathematical-expressions.tex 
b/tests/LyX-Word-roundtrip-Mathematical-expressions.tex
index e19e098..7943f6a 100644
--- a/tests/LyX-Word-roundtrip-Mathematical-expressions.tex
+++ b/tests/LyX-Word-roundtrip-Mathematical-expressions.tex
@@ -140,7 +140,7 @@ First commas in equations
 \[
 \hbox{for}x,y\hbox{in}A
 \]
-as an inline $\forall x,y\in Z$. Yet another comma example $R_{1},R_{2}$
+as an inline $\forall x,y\in Z$. \inlinemeta{\verb|$\forall x,y\in Z$|} Yet 
another comma example $R_{1},R_{2}$ \inlinemeta{\verb|$R_{1},R_{2}$|}
 
 Now for the problem associated with \verb#\sum# 
 \[
diff --git a/tests/roundtrip.4ht b/tests/roundtrip.4ht
index 01f5f40..e43c12a 100644
--- a/tests/roundtrip.4ht
+++ b/tests/roundtrip.4ht
@@ -1,8 +1,17 @@
 \:CheckOption{ooffice}\if:Option
-%\renewenvironment{code}{\:tempa\bgroup\ignorespaces}{\ignorespacesafterend\egroup\:tempb}
+
 
 \ConfigureEnv{metadata}{ \ifvmode \IgnorePar\fi \EndP
                             \HCode{<annotation 
encoding="\jobname-m\math:obj">}}
                            {\ifvmode \IgnorePar\fi \EndP\HCode{</annotation> 
\Hnewline}\par}{}{}
+%\renewcommand{\inlinemeta}[1]{\Pre \texttt{#1} \Post}
+\NewConfigure{inlinemeta}[2]{%
+                         \newcommand\Pre{#1}%
+                         \newcommand\Post{#2}}
+\Configure{inlinemeta}{  \Configure{texttt}{\NoFonts}{\EndNoFonts}
+                         \Configure{verb}{}{}
+                         \Configure{obeylines}{}{}{}
+                         \HCode{<annotation encoding="\jobname-m\math:obj">}}
+                           {\HCode{</annotation> \Hnewline}}
 
 \fi
\ No newline at end of file
diff --git a/tests/roundtrip.sty b/tests/roundtrip.sty
index 913b403..fea35d3 100644
--- a/tests/roundtrip.sty
+++ b/tests/roundtrip.sty
@@ -1,7 +1,13 @@
 \ProvidesPackage{roundtrip}
 \usepackage{fancyvrb}
+\usepackage{environ}
+\usepackage{cprotect}
+
 
 \newenvironment{metadata}
-  {\VerbatimEnvironment
-  \begin{Verbatim}}
-  {\end{Verbatim}}
\ No newline at end of file
+    {\VerbatimEnvironment
+    \begin{Verbatim}}
+    {\end{Verbatim}}
+
+\newcommand{\inlinemeta}[1] {\Pre \texttt{#1} \Post}
+\cMakeRobust{\inlinemeta}
\ No newline at end of file

-----------------------------------------------------------------------

Summary of changes:
 ...LyX-Word-roundtrip-Mathematical-expressions.tex |    2 +-
 tests/roundtrip.4ht                                |   11 ++++++++++-
 tests/roundtrip.sty                                |   12 +++++++++---
 3 files changed, 20 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Repositories for GSOC work

Reply via email to