]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/PDF-form.lyx
splash.lyx: link https://www.lyx.org/Walkthrough
[lyx.git] / lib / examples / PDF-form.lyx
index 8498335b5c23d1e093a8aaefb017a4341188c2fd..5f83c33cd8ead54b8adf26e39454e64e76261b14 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 508
+#LyX 2.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 544
 \begin_document
 \begin_header
 \save_transient_properties true
    this.delay = true;
    if((event.value == "u") || (event.value == "unlimited")) {
     this.getField("from").display = display.hidden;
-    this.getField("to").display = display.hidden;
+    this.getField("until").display = display.hidden;
    } else {
     this.getField("from").display = display.visible;
-    this.getField("to").display = display.visible;
+    this.getField("until").display = display.visible;
     this.getField("from").setFocus();
    }
    this.delay = false;
@@ -81,6 +81,8 @@ pdfform
 \font_osf false
 \font_sf_scale 100 100
 \font_tt_scale 100 100
+\use_microtype false
+\use_dash_ligatures false
 \graphics default
 \default_output_format pdf2
 \output_sync 0
@@ -107,14 +109,14 @@ pdfform
 \use_geometry false
 \use_package amsmath 1
 \use_package amssymb 1
-\use_package cancel 0
+\use_package cancel 1
 \use_package esint 1
 \use_package mathdots 1
 \use_package mathtools 1
 \use_package mhchem 1
-\use_package stackrel 0
-\use_package stmaryrd 0
-\use_package undertilde 0
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
 \cite_engine basic
 \cite_engine_type default
 \biblio_style plain
@@ -124,6 +126,7 @@ pdfform
 \suppress_date true
 \justification true
 \use_refstyle 0
+\use_minted 0
 \notefontcolor #0000ff
 \index Index
 \shortcut idx
@@ -133,7 +136,10 @@ pdfform
 \tocdepth 2
 \paragraph_separation skip
 \defskip medskip
-\quotes_language english
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style english
+\dynamic_quotes 0
 \papercolumns 1
 \papersides 1
 \paperpagestyle default
@@ -147,11 +153,11 @@ pdfform
 \begin_body
 
 \begin_layout Begin PDF Form
-
 \begin_inset Argument 1
 status open
 
 \begin_layout Plain Layout
+
 action=mailto:forms@lyx.test?subject=The submitted PDF form, method=post
 \end_layout
 
@@ -967,6 +973,7 @@ onclick={}
 \begin_inset CommandInset citation
 LatexCommand cite
 key "JavaScript"
+literal "true"
 
 \end_inset
 
@@ -1107,7 +1114,8 @@ status open
 \begin_inset CommandInset href
 LatexCommand href
 name "Information how to fill out this form"
-target "http://wiki.lyx.org"
+target "https://wiki.lyx.org"
+literal "false"
 
 \end_inset
 
@@ -1422,6 +1430,7 @@ hyperref
 \begin_inset CommandInset citation
 LatexCommand cite
 key "hyperref"
+literal "true"
 
 \end_inset
 
@@ -1440,7 +1449,6 @@ Here are some examples:
 \end_layout
 
 \begin_layout Text Field Style
-
 print, bordercolor=red, borderstyle=U, backgroundcolor=lightgray, color=lime,
  maxlen=10, align=2, charsize=16pt
 \begin_inset Note Note
 \end_layout
 
 \begin_layout Check Box Style
-
 print, borderstyle=S, checkboxsymbol=
 \backslash
 ding{55}
 \end_layout
 
 \begin_layout Combo Box Style
-
 print, bordercolor={0.33 0.66 0.33}, borderstyle=D
 \end_layout
 
 \begin_layout Popdown Box Style
-
 print, menulength=2
 \begin_inset Note Note
 status collapsed
@@ -1517,22 +1522,18 @@ hyperref
 \end_layout
 
 \begin_layout Radio Box Style
-
 print, borderstyle=I, radiosymbol=3
 \end_layout
 
 \begin_layout Push Button Style
-
 print, borderstyle=B, bordercolor=lime
 \end_layout
 
 \begin_layout Submit Button Style
-
 print, borderwidth=0, bordercolor=white
 \end_layout
 
 \begin_layout Reset Button Style
-
 print, bordercolor=lime
 \end_layout
 
@@ -1676,6 +1677,7 @@ pifont
 \begin_inset CommandInset citation
 LatexCommand cite
 key "pifont"
+literal "true"
 
 \end_inset
 
@@ -2176,6 +2178,7 @@ hyperref
 \begin_inset CommandInset citation
 LatexCommand cite
 key "hyperref"
+literal "true"
 
 \end_inset
 
@@ -2384,7 +2387,6 @@ Save form as
 \end_layout
 
 \begin_layout PDF Link Setup
-
 pdfborder={0 0 0}
 \begin_inset Note Note
 status open
@@ -2534,7 +2536,6 @@ pdfborder
 \end_layout
 
 \begin_layout PDF Link Setup
-
 pdfborder={0 0 4}
 \end_layout
 
@@ -2625,7 +2626,6 @@ menubordercolor
 \end_layout
 
 \begin_layout PDF Link Setup
-
 pdfborder={0 0 1}, menubordercolor={0.1 0.9 0.5}
 \end_layout
 
@@ -2691,7 +2691,6 @@ To change the background color use a colored box.
 \end_layout
 
 \begin_layout PDF Link Setup
-
 pdfborder={0 0 0}
 \end_layout
 
@@ -2749,7 +2748,6 @@ Save form as
 \end_layout
 
 \begin_layout PDF Link Setup
-
 pdfborder={0 0 1}, menubordercolor={1 0 0}
 \end_layout
 
@@ -2792,6 +2790,7 @@ Then add the necessary JavaScript code to your document LaTeX preamble or
 \begin_inset CommandInset citation
 LatexCommand cite
 key "JavaScript"
+literal "true"
 
 \end_inset
 
@@ -2868,7 +2867,7 @@ begin{insDLJS}[exaaae]{exaaae}{JavaScript}
 
 \begin_layout Plain Layout
 
-   this.getField("to").display = display.hidden;
+   this.getField("until").display = display.hidden;
 \end_layout
 
 \begin_layout Plain Layout
@@ -2883,7 +2882,7 @@ begin{insDLJS}[exaaae]{exaaae}{JavaScript}
 
 \begin_layout Plain Layout
 
-   this.getField("to").display = display.visible;
+   this.getField("until").display = display.visible;
 \end_layout
 
 \begin_layout Plain Layout
@@ -3065,7 +3064,7 @@ name=from,width=10em
 \begin_inset Text
 
 \begin_layout Plain Layout
-To:
+Until:
 \end_layout
 
 \end_inset
@@ -3082,7 +3081,7 @@ status open
 status open
 
 \begin_layout Plain Layout
-name=to,width=10em
+name=until,width=10em
 \end_layout
 
 \end_inset
@@ -3247,7 +3246,6 @@ fi
 \end_layout
 
 \begin_layout End PDF Form
-
 \begin_inset Note Note
 status open
 
@@ -3269,7 +3267,9 @@ Submitting and applying data requires that all form elements have a name.
 \end_layout
 
 \begin_layout Itemize
-Creating a PDF form requires pdflatex or lualatex.
+Creating a PDF form requires pdf\SpecialChar TeX
+ or Lua\SpecialChar TeX
+.
  Use therefore either the \SpecialChar LyX
  export formats 
 \family sans
@@ -3277,8 +3277,7 @@ PDF (pdflatex)
 \family default
  or 
 \family sans
-PDF (Lua\SpecialChar TeX
-)
+PDF (LuaTeX)
 \family default
 .
 \end_layout
@@ -3309,6 +3308,7 @@ Show border hover color for fields
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "JavaScript"
+literal "true"
 
 \end_inset
 
@@ -3317,6 +3317,7 @@ key "JavaScript"
 LatexCommand href
 name "JavaScript reference"
 target "https://developer.mozilla.org/en/docs/Web/JavaScript/Reference"
+literal "false"
 
 \end_inset
 
@@ -3327,6 +3328,7 @@ target "https://developer.mozilla.org/en/docs/Web/JavaScript/Reference"
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "hyperref"
+literal "true"
 
 \end_inset
 
@@ -3334,7 +3336,8 @@ key "hyperref"
 \begin_inset CommandInset href
 LatexCommand href
 name "Documentation"
-target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/manual.pdf"
+target "https://ctan.org/tex-archive/macros/latex/contrib/hyperref/doc/manual.pdf"
+literal "false"
 
 \end_inset
 
@@ -3348,6 +3351,7 @@ hyperref
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "pifont"
+literal "true"
 
 \end_inset
 
@@ -3355,7 +3359,8 @@ key "pifont"
 \begin_inset CommandInset href
 LatexCommand href
 name "Documentation"
-target "http://mirrors.ctan.org/macros/latex/required/psnfss/psnfss2e.pdf"
+target "https://ctan.org/tex-archive/macros/latex/required/psnfss/psnfss2e.pdf"
+literal "false"
 
 \end_inset