From 89f9a6db8987d41bf49071bd3f420c8315216748 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 12 Dec 2021 18:37:13 +0100 Subject: Safran templates! --- .../documents/A220-Flow-Div-procedure_title.org | 43 ++++ .../documents/B787-VG-characterization.org_title | 43 ++++ resources/templates/documents/MA700-SRCI.org_title | 46 ++++ resources/templates/documents/MA700-WBS.org_title | 46 ++++ .../MA700-basic-troubleshooting-manual.org_title | 45 ++++ .../templates/documents/MA700-notes.org_title | 42 ++++ .../templates/documents/Safran-doc-booklet.setup | 40 ++++ resources/templates/documents/Safran-doc.setup | 236 +++++++++++++++++++++ resources/templates/documents/Safran_logo.png | Bin 0 -> 7258 bytes .../templates/documents/default-with-icons.org | 54 +++++ resources/templates/documents/default.org | 56 +++++ resources/templates/documents/default.org_title | 16 ++ resources/templates/documents/generic.org_title | 43 ++++ resources/templates/documents/procedure.org_title | 43 ++++ .../vacuum-characterization-improvement.org_title | 5 + smart-documents.pdf | Bin 0 -> 418923 bytes 16 files changed, 758 insertions(+) create mode 100644 resources/templates/documents/A220-Flow-Div-procedure_title.org create mode 100644 resources/templates/documents/B787-VG-characterization.org_title create mode 100644 resources/templates/documents/MA700-SRCI.org_title create mode 100644 resources/templates/documents/MA700-WBS.org_title create mode 100644 resources/templates/documents/MA700-basic-troubleshooting-manual.org_title create mode 100644 resources/templates/documents/MA700-notes.org_title create mode 100644 resources/templates/documents/Safran-doc-booklet.setup create mode 100644 resources/templates/documents/Safran-doc.setup create mode 100644 resources/templates/documents/Safran_logo.png create mode 100644 resources/templates/documents/default-with-icons.org create mode 100644 resources/templates/documents/default.org create mode 100644 resources/templates/documents/default.org_title create mode 100644 resources/templates/documents/generic.org_title create mode 100644 resources/templates/documents/procedure.org_title create mode 100644 resources/templates/documents/vacuum-characterization-improvement.org_title create mode 100644 smart-documents.pdf diff --git a/resources/templates/documents/A220-Flow-Div-procedure_title.org b/resources/templates/documents/A220-Flow-Div-procedure_title.org new file mode 100644 index 0000000..23d4c7f --- /dev/null +++ b/resources/templates/documents/A220-Flow-Div-procedure_title.org @@ -0,0 +1,43 @@ +# -*- mode: org; -*- # + +# Document number and rev in top-right header +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\texttt{A220 Flow Diverter Test Draft 8}\\ \thedate} +# Increase spacing between header rule and main text body +#+LATEX: \rule[-16pt]{0pt}{16pt}\\ +#+LATEX: \huge +#+LATEX: \bgroup +#+LATEX: \def\arraystretch{1.4} +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| \textsc{Document} | =DVTP 38000-949-01 Draft 8= | +| \textsc{Program} | Airbus A220 | +| \textsc{Title} | \thetitle | +| \textsc{System} | Water and Waste | +| \textsc{Product} | Flow Diverter | +| \textsc{ATA No} | =38= | +| \textsc{ECCN} | =9E991= | + +#+LATEX: \vfill +#+LATEX: \noindent +#+LATEX: \large +#+LATEX: \textbf{Original Signatures} +#+LATEX: \vspace{1.0cm} + +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| *Prepared:* | \rule{8.0cm}{1pt} | *Date:* | \rule{4.0cm}{1pt} | +| | Marius Peter, Systems Test Engineer | | | +| | | | | +| *Checked:* | \rule{8.0cm}{1pt} | *Date:* | \rule{4.0cm}{1pt} | +| | Jeff Borlik, Senior Principal Engineer | | | +| | | | | +| *Approved:* | \rule{8.0cm}{1pt} | *Date:* | \rule{4.0cm}{1pt} | +| | Deborah Osborne, Head of Design Authority | | | +#+LATEX: \egroup + +#+LATEX: \normalsize +#+LATEX: \clearpage +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/B787-VG-characterization.org_title b/resources/templates/documents/B787-VG-characterization.org_title new file mode 100644 index 0000000..b4f1507 --- /dev/null +++ b/resources/templates/documents/B787-VG-characterization.org_title @@ -0,0 +1,43 @@ +# -*- mode: org; -*- # + +# Document number and rev in top-right header +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\texttt{B787 VG Characterization Draft 1}\\ \thedate} +# Increase spacing between header rule and main text body +#+LATEX: \rule[-16pt]{0pt}{16pt}\\ +#+LATEX: \huge +#+LATEX: \bgroup +#+LATEX: \def\arraystretch{1.4} +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| \textsc{Document} | =77000-XXX Draft 1= | +| \textsc{Program} | Boeing 787 | +| \textsc{Title} | \thetitle | +| \textsc{System} | Water and Waste | +| \textsc{Product} | Vacuum Generator | +| \textsc{ATA No} | =XXX= | +| \textsc{ECCN} | =XXX= | + +#+LATEX: \vfill +#+LATEX: \noindent +#+LATEX: \large +#+LATEX: \textbf{Original Signatures} +#+LATEX: \vspace{1.0cm} + +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| *Prepared:* | \rule{8.0cm}{1pt} | *Date:* | \rule{4.0cm}{1pt} | +| | Marius Peter, Systems Test Engineer | | | +| | | | | +| *Checked:* | \rule{8.0cm}{1pt} | *Date:* | \rule{4.0cm}{1pt} | +| | Sung Hong, Product Engineer | | | +| | | | | +| *Approved:* | \rule{8.0cm}{1pt} | *Date:* | \rule{4.0cm}{1pt} | +| | Oscar Mathews, Systems Engineer | | | +#+LATEX: \egroup + +#+LATEX: \normalsize +#+LATEX: \clearpage +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/MA700-SRCI.org_title b/resources/templates/documents/MA700-SRCI.org_title new file mode 100644 index 0000000..da3c235 --- /dev/null +++ b/resources/templates/documents/MA700-SRCI.org_title @@ -0,0 +1,46 @@ +# -*- mode: org; -*- + +# Document number and rev in top-right header +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\color{gray} \texttt{80000-XXX Rev. A}\\ \thedate \\ \texttt{\theauthor}} +# Increase spacing between header rule and main text body +#+LATEX: \rule[-16pt]{0pt}{16pt}\\ +#+LATEX: \huge +#+LATEX: \bgroup +#+LATEX: \def\arraystretch{1.4} +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| \textsc{Document:} | =80000-XXX= | +| \textsc{Revision:} | =A= | +| \textsc{Program:} | XAC MA700 | +| \textsc{Title:} | \thetitle | +| \textsc{System:} | Water and Waste | +| \textsc{ATA No:} | =XXX= | +| \textsc{ECCN:} | =XXX= | + +#+LATEX: \vfill +#+LATEX: \noindent +#+LATEX: \large +#+LATEX: \textbf{Original Signatures} +#+LATEX: \vspace{1.0cm} + +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| *Prepared:* | \rule{6.6cm}{1pt} | *Date:* | \rule{2.4cm}{1pt} | +| | Marius Peter, Systems Test Engineer | | | +| | | | | +| *Checked:* | \rule{6.6cm}{1pt} | *Date:* | \rule{2.4cm}{1pt} | +| | Richard Bourne, Sr Systems Engineer | | | +| | | | | +| *Checked:* | \rule{6.6cm}{1pt} | *Date:* | \rule{2.4cm}{1pt} | +| | Jamie Orcutt, Integration Engineer | | | +| | | | | +| *Approved:* | \rule{6.6cm}{1pt} | *Date:* | \rule{2.4cm}{1pt} | +| | Ying Huang-Isella, Chief Engineer | | | +#+LATEX: \egroup + +#+LATEX: \normalsize +#+LATEX: \clearpage +#+LATEX: \setcounter{tocdepth}{2}\tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/MA700-WBS.org_title b/resources/templates/documents/MA700-WBS.org_title new file mode 100644 index 0000000..a10ef90 --- /dev/null +++ b/resources/templates/documents/MA700-WBS.org_title @@ -0,0 +1,46 @@ +# -*- mode: org; -*- # + +# Document number and rev in top-right header +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\texttt{80000-XXX Rev. A}\\ \thedate} +# Increase spacing between header rule and main text body +#+LATEX: \rule[-16pt]{0pt}{16pt}\\ +#+LATEX: \huge +#+LATEX: \bgroup +#+LATEX: \def\arraystretch{1.4} +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| \textsc{Document:} | =80000-XXX= | +| \textsc{Revision:} | =Draft 5= | +| \textsc{Program:} | XAC MA700 | +| \textsc{Title:} | \thetitle | +| \textsc{System:} | Water and Waste | +| \textsc{ATA No:} | =XXX= | +| \textsc{ECCN:} | =XXX= | + +#+LATEX: \vfill +#+LATEX: \noindent +#+LATEX: \large +#+LATEX: \textbf{Original Signatures} +#+LATEX: \vspace{1.0cm} + +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| *Prepared:* | \rule{8.5cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Marius Peter, Systems Test Engineer | | | +| | | | | +| *Checked:* | \rule{8.5cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Richard Bourne, Sr Systems Engineer | | | +| | | | | +| *Checked:* | \rule{8.5cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Jamie Orcutt, Integration Engineer | | | +| | | | | +| *Approved:* | \rule{8.5cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Ying Huang-Isella, Chief Engineer | | | +#+LATEX: \egroup + +#+LATEX: \normalsize +#+LATEX: \clearpage +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/MA700-basic-troubleshooting-manual.org_title b/resources/templates/documents/MA700-basic-troubleshooting-manual.org_title new file mode 100644 index 0000000..ec5a515 --- /dev/null +++ b/resources/templates/documents/MA700-basic-troubleshooting-manual.org_title @@ -0,0 +1,45 @@ +# -*- mode: org; -*- # + +# Document number and rev in top-right header +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\texttt{80000-XXX Draft 1}\\ \thedate} +# Increase spacing between header rule and main text body +#+LATEX: \rule[-16pt]{0pt}{16pt}\\ +#+LATEX: \bgroup +#+LATEX: \huge +#+LATEX: \def\arraystretch{1.4} +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| \textsc{Document:} | =80000-XXX= | +| \textsc{Revision:} | =Draft 1= | +| \textsc{Program:} | XAC MA700 | +| \textsc{Title:} | \thetitle | +| \textsc{System:} | Water and Waste | +| \textsc{ATA No:} | XXX | +| \textsc{ECCN:} | XXX | + +#+LATEX: \vfill +#+LATEX: \noindent +#+LATEX: \large +#+LATEX: \textbf{Original Signatures} +#+LATEX: \vspace{1.0cm} + +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| *Prepared:* | \rule{8.5cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Marius Peter, Systems Test Engineer | | | +| | | | | +| *Checked:* | \rule{8.5cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Richard Bourne, Sr Systems Engineer | | | +| | | | | +| *Checked:* | \rule{8.5cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Jamie Orcutt, Integration Engineer | | | +| | | | | +| *Approved:* | \rule{8.5cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Ying Huang-Isella, Chief Engineer | | | +#+LATEX: \egroup + +#+LATEX: \clearpage +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/MA700-notes.org_title b/resources/templates/documents/MA700-notes.org_title new file mode 100644 index 0000000..444f884 --- /dev/null +++ b/resources/templates/documents/MA700-notes.org_title @@ -0,0 +1,42 @@ +# -*- mode: org; eval: (visual-line-mode); -*- # + +# Document number and rev in top-right header +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\texttt{80000-XXX Rev. A}\\ \thedate \\ \texttt{\theauthor}} +# Increase spacing between header rule and main text body +#+LATEX: \rule[-16pt]{0pt}{16pt}\\ +#+LATEX: \bgroup +#+LATEX: \huge +#+LATEX: \def\arraystretch{1.4} +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| \textsc{Document:} | =80000-XXX= | +| \textsc{Revision:} | A | +| \textsc{Program:} | XAC MA700 | +| \textsc{Title:} | \thetitle | +| \textsc{System:} | Water and Waste | +| \textsc{ATA No:} | XXX | +| \textsc{ECCN:} | XXX | + +#+LATEX: \vfill +#+LATEX: \noindent +#+LATEX: \large +#+LATEX: \textbf{Original Signatures} +#+LATEX: \vspace{1.0cm} + +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| *Prepared:* | \rule{8.0cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Marius Peter, Systems Test Engineer | | | +| | | | | +| *Checked:* | \rule{8.0cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Richard Bourne, Sr Systems Engineer | | | +| | | | | +| *Approved:* | \rule{8.0cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Ying Huang-Isella, Chief Engineer | | | +#+LATEX: \egroup + +#+LATEX: \clearpage +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/Safran-doc-booklet.setup b/resources/templates/documents/Safran-doc-booklet.setup new file mode 100644 index 0000000..f4cb87d --- /dev/null +++ b/resources/templates/documents/Safran-doc-booklet.setup @@ -0,0 +1,40 @@ +# -*- mode: org; eval: (visual-line-mode); -*- # + + +* Options + +#+OPTIONS: tags:nil toc:nil title:nil p:t + +** LaTeX + +LaTeX is the premier free document preparation system. + + +*** Document class & options + +We choose the article class. It is generic, nice and simple. + +#+LATEX_CLASS: article +#+LATEX_CLASS_options: [a5paper] + + +*** Geometry + +Thanks to the geometry package, we can set the margin widths on all +sides. + +#+LATEX_HEADER: \usepackage[ +#+LATEX_HEADER: left = 0.5in , +#+LATEX_HEADER: right = 0.5in , +#+LATEX_HEADER: top = 0.8in , +#+LATEX_HEADER: bottom = 1.6in ,]{geometry} + +Our main setupfile must be called here, so that the =geometry= +definition above takes precedence. However, the footer definition +comes afterwards, in order to override the definition contained in +=Safran-doc.setup=. +#+SETUPFILE: "L:/org/templates/Safran-doc.setup" + +#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[8pt] +#+LATEX_HEADER_EXTRA: \color{Gray} Page~\thepage/\pageref*{LastPage}\\[8pt] +#+LATEX_HEADER_EXTRA: \footnotesize \texttt{\textbf{MAG Aerospace Industries, LLC---Proprietary and Confidential.}}} diff --git a/resources/templates/documents/Safran-doc.setup b/resources/templates/documents/Safran-doc.setup new file mode 100644 index 0000000..aad1eeb --- /dev/null +++ b/resources/templates/documents/Safran-doc.setup @@ -0,0 +1,236 @@ +# -*- mode: org; eval: (visual-line-mode); -*- # + +#+begin_abstract +This document is a configuration file for Emacs [[https://orgmode.org/][Org mode]]. It describes +how to export Org mode documents to PDFs that look visually similar to +the Safran document templates. The configuration described in this +document applies to this document itself; you can find the PDF version +of this file in the same folder, or export this very file to PDF from +within Emacs by using ~C-p~ (Control key + p) if using my /Smart +Documents/ distribution. +#+end_abstract + + +* \huge Safran Document Template +:PROPERTIES: +:UNNUMBERED: t +:END: + +#+ATTR_LATEX: :center nil +| =From= | Marius Peter | +| =To= | Safran | +| =Date= | <2021-06-22 Tue> | +| =Subject= | Safran template for Emacs Org mode | + +#+LATEX: \tableofcontents + + +* Usage + +Towards the beginning of your Org mode file, simply add +: #+SETUPFILE: "L:/org/templates/Safran-doc.setup" +which will call this very file's instructions. The remainder of the +document can be as plain as you wish. + + +* The template + +This template provides: + +1. Fonts +2. Header + 1. Safran logo + 2. Document metadata +3. Footer + 1. Page numbering + 2. ``Proprietary and Confidential'' notice + +And not much else. You must either design your own title page, or copy +the following elegant example for a minimalistic title section at the +top of your exported PDF. The macros contained in triple curly braces +are a convenient way to render your =#+TITLE=, =#+AUTHOR=, =#+DATE=, +and other document properties you will have previously defined. + +: * \huge {{{TITLE}}} +: :PROPERTIES: +: :UNNUMBERED: t +: :END: +: +: #+ATTR_LATEX: :center nil +: | =From= | {{{AUTHOR}}} | +: | =To= | Your recipient | +: | =Date= | {{{DATE}}} | +: | =Subject= | Description of the document subject | +: +: #+LATEX: \tableofcontents + + +** Options + +#+OPTIONS: tags:nil toc:nil title:nil p:t +: #+OPTIONS: tags:nil toc:nil title:nil p:t + + +** Macros + +# +MACRO: test (eval (concat "This is a " $1 " that illustrates " $2)) +: # +MACRO: test (eval (concat "This is a " $1 " that illustrates " $2)) + + +** LaTeX + +LaTeX is the premier free document preparation system. + + +*** Document class + +We choose the article class. It is generic, nice and simple. + +#+LATEX_CLASS: article +: #+LATEX_CLASS: article + + +*** Geometry + +Thanks to the geometry package, we can set the margin widths on all +sides. + +#+LATEX_HEADER: \usepackage[ +#+LATEX_HEADER: left = 1.5in , +#+LATEX_HEADER: right = 1.5in , +#+LATEX_HEADER: top = 1in , +#+LATEX_HEADER: bottom = 2.4in ,]{geometry} +: #+LATEX_HEADER: \usepackage[ +: #+LATEX_HEADER: left = 1.5in , +: #+LATEX_HEADER: right = 1.5in , +: #+LATEX_HEADER: top = 1in , +: #+LATEX_HEADER: bottom = 2.4in ,]{geometry} + + +*** Fonts + +The ~fontspec~ package exposes convenient commands for font selection +when using LuaTeX. + +#+LATEX_HEADER: \usepackage{fontspec} +: #+LATEX_HEADER: \usepackage{fontspec} + + +**** Regular + +Carlito is the open source alternative to Calibri on MS Windows. It +makes for a great ``friendly'' font. Public Sans, on the other hand, +has much sharper contours and is more ``serious''. Public Sans is a +more balanced alternative to Arial. + +Public Sans relative x-height is *0.517*. By setting the Public Sans +~Scale~ to *0.872*, we ensure that the absolute Public Sans x-height +matches the absolute Courier Prime x-height. This results in both +fonts appearing of pleasingly similar size. + +#+LATEX_HEADER: \setmainfont{publicsans}[ +#+LATEX_HEADER: Path = L:/org/fonts/ , +#+LATEX_HEADER: Scale = 0.872 , +#+LATEX_HEADER: Extension = .ttf , +#+LATEX_HEADER: UprightFont = *-regular , +#+LATEX_HEADER: BoldFont = *-bold , +#+LATEX_HEADER: ItalicFont = *-italic , +#+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] +: #+LATEX_HEADER: \setmainfont{publicsans}[ +: #+LATEX_HEADER: Path = L:/org/fonts/ , +: #+LATEX_HEADER: Scale = 0.872 , +: #+LATEX_HEADER: Extension = .ttf , +: #+LATEX_HEADER: UprightFont = *-regular , +: #+LATEX_HEADER: BoldFont = *-bold , +: #+LATEX_HEADER: ItalicFont = *-italic , +: #+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] + + +**** Sans + +We also use Public Sans for our Sans font. + +#+LATEX_HEADER: \setsansfont{publicsans}[ +#+LATEX_HEADER: Path = L:/org/fonts/ , +#+LATEX_HEADER: Scale = 0.872 , +#+LATEX_HEADER: Extension = .ttf , +#+LATEX_HEADER: UprightFont = *-regular , +#+LATEX_HEADER: BoldFont = *-bold , +#+LATEX_HEADER: ItalicFont = *-italic , +#+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] +: #+LATEX_HEADER: \setsansfont{publicsans}[ +: #+LATEX_HEADER: Path = L:/org/fonts/ , +: #+LATEX_HEADER: Scale = 0.872 , +: #+LATEX_HEADER: Extension = .ttf , +: #+LATEX_HEADER: UprightFont = *-regular , +: #+LATEX_HEADER: BoldFont = *-bold , +: #+LATEX_HEADER: ItalicFont = *-italic , +: #+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] + + +**** Monospace + +Courier Prime is an open source alternative to Courier New on MS +Windows. Courier Prime relative x-height is *0.451*. + +#+LATEX_HEADER: \setmonofont{courierprime}[ +#+LATEX_HEADER: Path = L:/org/fonts/ , +#+LATEX_HEADER: Extension = .ttf , +#+LATEX_HEADER: UprightFont = *-regular , +#+LATEX_HEADER: BoldFont = *-bold , +#+LATEX_HEADER: ItalicFont = *-italic , +#+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] +: #+LATEX_HEADER: \setmonofont{courierprime}[ +: #+LATEX_HEADER: Path = L:/org/fonts/ , +: #+LATEX_HEADER: Extension = .ttf , +: #+LATEX_HEADER: UprightFont = *-regular , +: #+LATEX_HEADER: BoldFont = *-bold , +: #+LATEX_HEADER: ItalicFont = *-italic , +: #+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] + + +**** Special characters + +We define some custom special characters. + +#+LATEX_HEADER: \newcommand\warningsign{\symbol{"26A0}} +: #+LATEX_HEADER: \newcommand\warningsign{\symbol{"26A0}} + + +*** Accessing document properties + +We include the ~titling~ package in order to reference the document +title in the LaTeX header definition. + +#+LATEX_HEADER: \usepackage{titling} +: #+LATEX_HEADER: \usepackage{titling} + +We include the ~lastpage~ package in order to access the total amount +of pages in the document. This enables including a page count in the +document footer. + +#+LATEX_HEADER: \usepackage{lastpage} +: #+LATEX_HEADER: \usepackage{lastpage} + + +*** Header and footer + +#+LATEX_HEADER: \usepackage{fancyhdr} +#+LATEX_HEADER: \setlength{\headheight}{48pt} +#+LATEX_HEADER_EXTRA: \pagestyle{fancy} +#+LATEX_HEADER_EXTRA: \fancyhead[L]{\rule[-20pt]{0pt}{0pt} \includegraphics[height=32pt]{L:/Org/templates/Safran_logo.png}} +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\color{Gray} \footnotesize \texttt{\thetitle} \\ \thedate \\ \texttt{\theauthor}} +# LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.2pt} +#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[8pt] +#+LATEX_HEADER_EXTRA: \color{Gray} Page~\thepage/\pageref*{LastPage}\\[8pt] +#+LATEX_HEADER_EXTRA: \footnotesize \texttt{\textbf{MAG Aerospace Industries, LLC---Proprietary and Confidential.}}\\[6pt] +#+LATEX_HEADER_EXTRA: This document contains proprietary information of MAG Aerospace Industries, LLC. +#+LATEX_HEADER_EXTRA: This information may not, in whole or in part, be duplicated, reproduced, disclosed, +#+LATEX_HEADER_EXTRA: or used in any way except as expressly authorized in writing by MAG Aerospace Industries, LLC.} +: #+LATEX_HEADER: \usepackage{fancyhdr} +: #+LATEX_HEADER: \setlength{\headheight}{48pt} +: #+LATEX_HEADER_EXTRA: \pagestyle{fancy} +: #+LATEX_HEADER_EXTRA: \fancyhead[L]{\rule[-20pt]{0pt}{0pt} \includegraphics[height=32pt]{L:/Org/templates/Safran_logo.png}} +: #+LATEX_HEADER_EXTRA: \fancyhead[R]{\color{Gray} \footnotesize \texttt{\thetitle} \\ \thedate \\ \texttt{\theauthor}} +: # LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.2pt} +: #+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[8pt] \color{Gray} Page~\thepage/\pageref*{LastPage}\\[8pt] \footnotesize \texttt{\textbf{MAG Aerospace Industries, LLC---Proprietary and Confidential.}}\\[6pt] This document contains proprietary information of MAG Aerospace Industries, LLC. This information may not, in whole or in part, be duplicated, reproduced, disclosed, or used in any way except as expressly authorized in writing by MAG Aerospace Industries, LLC.} diff --git a/resources/templates/documents/Safran_logo.png b/resources/templates/documents/Safran_logo.png new file mode 100644 index 0000000..e58df38 Binary files /dev/null and b/resources/templates/documents/Safran_logo.png differ diff --git a/resources/templates/documents/default-with-icons.org b/resources/templates/documents/default-with-icons.org new file mode 100644 index 0000000..61c8953 --- /dev/null +++ b/resources/templates/documents/default-with-icons.org @@ -0,0 +1,54 @@ +# -*- mode: org; eval: (visual-line-mode); -*- + +# Hide Org mode tags +#+OPTIONS: tags:nil toc:nil + +#+LATEX_CLASS: article + +# Ensure room for header and footer +#+LATEX_HEADER: \usepackage[left=1in,right=1in,top=1in,bottom=1.75in]{geometry} + +# Beautiful fonts ONLY +#+LATEX_HEADER: \usepackage{fontspec} + +# Regular font +#+LATEX_HEADER: \setmainfont{publicsans}[% +#+LATEX_HEADER: Path = L:/org/fonts/ , +#+LATEX_HEADER: Extension = .ttf , +#+LATEX_HEADER: UprightFont = *-regular , +#+LATEX_HEADER: BoldFont = *-semibold , +#+LATEX_HEADER: ItalicFont = *-italic , +#+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] + +# Monospace font +#+LATEX_HEADER: \setmonofont{courierprime}[% +#+LATEX_HEADER: Path = L:/org/fonts/ , +#+LATEX_HEADER: Extension = .ttf , +#+LATEX_HEADER: UprightFont = *-regular , +#+LATEX_HEADER: BoldFont = *-bold , +#+LATEX_HEADER: ItalicFont = *-italic , +#+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] + +# Get total page count to insert in footer +#+LATEX_HEADER: \usepackage{lastpage} +#+LATEX_HEADER: \usepackage{titling} + +# #+LATEX_HEADER: \usepackage{enumitem} +# #+LATEX_HEADER: \setlist{noitemsep} + +# Required to reset numbering of table rows from table to table. +#+LATEX_HEADER: \usepackage{etoolbox} +#+LATEX_HEADER: \makeatletter +#+LATEX_HEADER: \gpreto\tabular{\renewcommand{\arraystretch}{1.4}\rownum=\z@} +#+LATEX_HEADER: \makeatother + +# Headers and footers. +#+LATEX_HEADER: \usepackage{fancyhdr} +# Space in the header for a logo or image. +#+LATEX_HEADER: \setlength{\headheight}{36pt} +#+LATEX_HEADER_EXTRA: \pagestyle{fancy} +#+LATEX_HEADER_EXTRA: \fancyhead[L]{\rule[-12pt]{0pt}{0pt}\texttt{\theauthor}} +#+LATEX_HEADER_EXTRA: \fancyhead[C]{\large\textbf{\thetitle}} +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate} +#+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.5pt} +#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em]\footnotesize Compiled with \includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/...\\ Copyright \copyright~2020 Marius Peter. All rights reserved. } diff --git a/resources/templates/documents/default.org b/resources/templates/documents/default.org new file mode 100644 index 0000000..325cacc --- /dev/null +++ b/resources/templates/documents/default.org @@ -0,0 +1,56 @@ +# -*- mode: org; eval: (visual-line-mode); -*- + +# Hide Org mode tags +#+OPTIONS: tags:nil toc:nil + +#+LATEX_CLASS: article + +# Ensure room for header and footer +#+LATEX_HEADER: \usepackage[left=1in,right=1in,top=1in,bottom=1.75in]{geometry} + +# Beautiful fonts ONLY +#+LATEX_HEADER: \usepackage{fontspec} + +# Regular font +#+LATEX_HEADER: \setmainfont{publicsans}[% +#+LATEX_HEADER: Path = L:/org/fonts/ , +#+LATEX_HEADER: Extension = .ttf , +#+LATEX_HEADER: UprightFont = *-regular , +#+LATEX_HEADER: BoldFont = *-semibold , +#+LATEX_HEADER: ItalicFont = *-italic , +#+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] + +# Monospace font +#+LATEX_HEADER: \setmonofont{courierprime}[% +#+LATEX_HEADER: Path = L:/org/fonts/ , +#+LATEX_HEADER: Extension = .ttf , +#+LATEX_HEADER: UprightFont = *-regular , +#+LATEX_HEADER: BoldFont = *-bold , +#+LATEX_HEADER: ItalicFont = *-italic , +#+LATEX_HEADER: BoldItalicFont = *-bolditalic ,] + +# Get total page count to insert in footer +#+LATEX_HEADER: \usepackage{lastpage} +#+LATEX_HEADER: \usepackage{titling} + +# #+LATEX_HEADER: \usepackage{enumitem} +# #+LATEX_HEADER: \setlist{noitemsep} + +# Required to reset numbering of table rows from table to table. +#+LATEX_HEADER: \usepackage{etoolbox} +#+LATEX_HEADER: \makeatletter +#+LATEX_HEADER: \gpreto\tabular{\renewcommand{\arraystretch}{1.4}\rownum=\z@} +#+LATEX_HEADER: \makeatother + +# Headers and footers. +#+LATEX_HEADER: \usepackage{fancyhdr} +# Space in the header for a logo or image. +#+LATEX_HEADER: \setlength{\headheight}{36pt} +#+LATEX_HEADER_EXTRA: \pagestyle{fancy} +#+LATEX_HEADER_EXTRA: \fancyhead[L]{\rule[-12pt]{0pt}{0pt}\texttt{\theauthor}} +#+LATEX_HEADER_EXTRA: \fancyhead[C]{\large\textbf{\thetitle}} +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate} +#+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.5pt} +#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[0.8em] +#+LATEX_HEADER_EXTRA: Page \thepage/\pageref*{LastPage}\\[0.8em] +#+LATEX_HEADER_EXTRA: \footnotesize\\ Copyright \copyright~2020 Marius Peter. All rights reserved.} diff --git a/resources/templates/documents/default.org_title b/resources/templates/documents/default.org_title new file mode 100644 index 0000000..c2c3c09 --- /dev/null +++ b/resources/templates/documents/default.org_title @@ -0,0 +1,16 @@ +# -*- mode: org; -*- # + +#+OPTIONS: title:nil toc:nil +# Increase spacing between header rule and main text body +#+LATEX: \rule[-2in]{0pt}{0pt}\\ +#+LATEX: \Huge\textbf{\thetitle}\\[1in] +#+LATEX: \LARGE\texttt{\theauthor}\\ +#+LATEX: \thedate + +#+LATEX: \clearpage + +#+LATEX: \normalsize +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/generic.org_title b/resources/templates/documents/generic.org_title new file mode 100644 index 0000000..bc5c507 --- /dev/null +++ b/resources/templates/documents/generic.org_title @@ -0,0 +1,43 @@ +# -*- mode: org; -*- # + +# Document number and rev in top-right header +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\texttt{[Generic] Draft 1}\\ \thedate} +# Increase spacing between header rule and main text body +#+LATEX: \rule[-16pt]{0pt}{16pt}\\ +#+LATEX: \huge +#+LATEX: \bgroup +#+LATEX: \def\arraystretch{1.4} +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| \textsc{Document} | =[Generic] Draft 1= | +| \textsc{Program} | == | +| \textsc{Title} | \thetitle | +| \textsc{System} | Water and Waste | +| \textsc{Product} | == | +| \textsc{ATA No} | == | +| \textsc{ECCN} | == | + +#+LATEX: \vfill +#+LATEX: \noindent +#+LATEX: \large +#+LATEX: \textbf{Original Signatures} +#+LATEX: \vspace{1.0cm} + +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| *Prepared:* | \rule{7.0cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Marius Peter, Systems Test Engineer | | | +| | | | | +| *Checked:* | \rule{7.0cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Checker | | | +| | | | | +| *Approved:* | \rule{7.0cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Approver | | | +#+LATEX: \egroup + +#+LATEX: \normalsize +#+LATEX: \clearpage +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/procedure.org_title b/resources/templates/documents/procedure.org_title new file mode 100644 index 0000000..4fe186b --- /dev/null +++ b/resources/templates/documents/procedure.org_title @@ -0,0 +1,43 @@ +# -*- mode: org; -*- + +# Document number and rev in top-right header +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\texttt{80000-XXX Rev. A}\\ \thedate} +# Increase spacing between header rule and main text body +#+LATEX: \rule[-16pt]{0pt}{16pt}\\ +#+LATEX: \huge +#+LATEX: \bgroup +#+LATEX: \def\arraystretch{1.4} +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| \textsc{Document:} | =80000-XXX= | +| \textsc{Revision:} | =A= | +| \textsc{Program:} | =B787= | +| \textsc{Title:} | \thetitle | +| \textsc{System:} | Water and Waste | +| \textsc{ATA No:} | XXX | +| \textsc{ECCN:} | XXX | + +#+LATEX: \vfill +#+LATEX: \noindent +#+LATEX: \large +#+LATEX: \textbf{Original Signatures} +#+LATEX: \vspace{1.0cm} + +#+LATEX: \noindent +#+ATTR_LATEX: :center nil +| *Prepared:* | \rule{7.0cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Marius Peter, Systems Test Engineer | | | +| | | | | +| *Checked:* | \rule{7.0cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Richard Bourne, Sr Systems Engineer | | | +| | | | | +| *Approved:* | \rule{7.0cm}{1pt} | *Date:* | \rule{3.0cm}{1pt} | +| | Deborah Osborne, Head of Design Authority | | | +#+LATEX: \egroup + +#+LATEX: \normalsize +#+LATEX: \clearpage +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/vacuum-characterization-improvement.org_title b/resources/templates/documents/vacuum-characterization-improvement.org_title new file mode 100644 index 0000000..c70dd3e --- /dev/null +++ b/resources/templates/documents/vacuum-characterization-improvement.org_title @@ -0,0 +1,5 @@ +# -*- mode: org; -*- + +#+LATEX: \noindent\bgroup +#+LATEX: \huge \textbf{\thetitle}\\[1ex] +#+LATEX: \egroup diff --git a/smart-documents.pdf b/smart-documents.pdf new file mode 100644 index 0000000..5b09901 Binary files /dev/null and b/smart-documents.pdf differ -- cgit v1.2.3