diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/richtext/examples |
Initial commit
Diffstat (limited to 'macros/latex/contrib/richtext/examples')
-rw-r--r-- | macros/latex/contrib/richtext/examples/richtext_tst.tex | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/macros/latex/contrib/richtext/examples/richtext_tst.tex b/macros/latex/contrib/richtext/examples/richtext_tst.tex new file mode 100644 index 0000000000..0f84e59997 --- /dev/null +++ b/macros/latex/contrib/richtext/examples/richtext_tst.tex @@ -0,0 +1,58 @@ +\documentclass[12pt]{article} +\usepackage[designiii,forcolorpaper]{web} +\usepackage{eforms} +\usepackage{richtext} + +\let\uif\textsf +\let\app\textsf +\let\pkg\textsf + +\convertcolorspec{named}{webbrown}{HTML}{\htmlWebBrown} + +\parindent0pt \parskip6pt + +\begin{document} + +A single line of \textit{rich text}, one paragraph. + +\rtpara{para1}{A single line of \it{rich text}.} +\textField[\Ff{\FfRichText} \DS{\useDefaultDS}% +\RV{\useRV{para1}}\V{\useV{para1}}]{rtFld1}{3in}{16bp} + +Single paragraph field but with multiple lines of text. Height allows roughly +4 lines of text. + +\rtpara{para1}{\span{ulstyle=2wul,style=bold}{Single paragraph field but with multiple lines of text.} +Height allows roughly 4 lines of text. Let's have more text so we get another line wrap.} +\textField[\Ff{\FfRichText}\Ff{\FfMultiline}\DS{\useDefaultDS} +\RV{\useRV{para1}}\V{\useV{para1}}]{rtFld2}{3in}{16bp*4} + +Multiple paragraph field with multiple lines of text. + +\rtpara[indent=first]{para1}{Now is the time for + \span{style=strikeit,color=ff0000}{\it{\bf{J\374rgen}}} and all good men to + come to the aid of \it{their} \bf{country}. Now is the time for + \span{style=italic}{all good} women to do the same. +} +\rtpara[indent=first]{para2}{This is a second paragraph. I hope we can agree + on what to do next.} +\rtpara[halign=right]{para3}{\span{url=http://www.acrotex.net}{AcroTeX.Net}} + +\setDefaultStyle{myDS}{font={Helvetica,sans-serif},color=\htmlWebBrown} + + +\setRVVContent{myContent} +{ + {para1} + {para2} + {skipline} + {skipline} + {para3} +} + +\textField[\Ff{\FfRichText}\Ff{\FfMultiline} +\DS{\useDS{myDS}}%\DS{\useDefaultDS}% +\RV{\useRVContent{myContent}}\V{\useVContent{myContent}}]{rtFld3}{3in}{16\baselineskip} + +\end{document} + |