LyXNew Inset for PDF InputBox

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
NanoAsus
Posts: 1
Joined: Mon Nov 28, 2011 1:56 am

New Inset for PDF InputBox

Post by NanoAsus »

Want to create a new custom inset for making PDF InputBoxes.
The aim is to use this inset on any text to prepare complex PDF InputBoxes. For example boxes above underlined text (here is an example of such text: http://www.fms.gov.ru/documents/passpor ... ew_14u.pdf)

I am able to do it with preamble

Code: Select all

\usepackage[pdftex]{hyperref}
and following Latex code:

Code: Select all

\begin{Form}
\hbox{\TextField[bordercolor=1 1 1]}}
\end{Form}
I made an inset code but it does not want to work for me.
Could anyone give me a hand in this?

Code: Select all

InsetLayout PDF-InputBox
        LyXType               custom
        LabelString           "PDF (InputBox)"
        LatexType             command
        Decoration            Conglomerate
        LatexName             "hbox{\TextField[bordercolor=1 1 1]}}"
        LabelFont
          Color               green
          Size                Small
        EndFont
        MultiPar              false
        OptionalArgs          1
        Preamble
                \RequirePackage[pdftex]{hyperref}
        EndPreamble
End

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply