Coder Social home page Coder Social logo

formbuilder's Introduction

FormBuilder 1.0

LaTeX package for flexable making graphical forms. Provide macro for define command \NewFormStyle{<style name>}{<setup code>}{<drawings>} (background draw hook executes in picture environment with 0,0 coordinate at bottom left corner of sheet) and provide set-style macro: \ApplyFormStyle{<style name>}. Applying of new style execute \clearpage macro, then execute setup style code and change background drawing hook.

For example try to build document with this code:

%%% example.tex
\documentclass{extarticle}
\usepackage{formbuilder}

\NewFormStyle{mystyle}
	{ %
		\newgeometry{noheadfoot,nomarginpar,top=5cm,bottom=5cm,inner=2cm,outer=2cm}}
	{ %
		\linethickness{1.5mm} %
		\put(15mm,40mm)  {\line(1,0){180mm}} %
		\put(20mm,35mm){\textbf{My form style}}} %

\begin{document}

    A
    \vfill
    A

    \newpage
    B
    \vfill
    B
    
    \newpage
    C
    \vfill
    C

    \ApplyFormStyle{mystyle}
    D
    \vfill
    D

    \newpage
    E
    \vfill
    E

\end{document}

Package defaults:

\NewFormStyle{formbuilder}
	{%
		\newgeometry{noheadfoot,nomarginpar,top=2cm,bottom=2cm,inner=2cm,outer=2cm}}
	{%
		\linethickness{0.5mm}
		\put(15mm,15mm)  {\line(1,0){180mm}}
		\put(15mm,282mm) {\line(1,0){180mm}}
		\put(15mm,15mm)  {\line(0,1){267mm}}
		\put(195mm,15mm) {\line(0,1){267mm}}
		\put(15mm,10mm){\slshape FORMBUILDER DEFAULT STYLE}}

\ApplyFormStyle{formbuilder}

Also package sets default pagestyle to empty and page size to a4paper (for default style).

Package required: geometry, atbegshi, picture;

formbuilder's People

Watchers

Danil Gulin avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.