initial template creation

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
master
Toshaan Bharvani 4 years ago
commit c921edfbf3

3
.gitignore vendored

@ -0,0 +1,3 @@
#!.gitignore
*.pdf
version

@ -0,0 +1,33 @@
#!Makefile

default all: pdf

TEXFILE=charter

TMPDIR:=$(shell mktemp -d /tmp/latex.XXXX)
FIRSTTAG:=$(shell git describe --abbrev=0 --tags --always)
RELTAG:=$(shell git describe --tags --long --always --dirty='-*' --match '[0-9]*.*')

pdf: gitinfo tex

.PHONY: gitinfo
gitinfo:
@git --no-pager log -1 --date=short --decorate=short --pretty=format:"\usepackage[shash={%h},lhash={%H},authname={%an},authemail={%ae},authsdate={%ad},authidate={%ai},authudate={%at},commname={%an},commemail={%ae},commsdate={%ad},commidate={%ai},commudate={%at},refnames={%d},firsttagdescribe="${FIRSTTAG}",reltag="${RELTAG}"]{gitexinfo}" HEAD > $(TMPDIR)/gitHeadLocal.gin

tex: $(TEXFILE).tex
@test -d $(TMPDIR) || mkdir $(TMPDIR)
@echo "Running 2 compiles $(TMPDIR)"
@pdflatex -output-directory=$(TMPDIR) -interaction=batchmode -file-line-error -no-shell-escape $< > /dev/null
@makeglossaries -d $(TMPDIR) $(TEXFILE)
@pdflatex -output-directory=$(TMPDIR) -interaction=batchmode -file-line-error -no-shell-escape $< > /dev/null
@cp $(TMPDIR)/$(TEXFILE).pdf .
@echo $(FIRSTTAG) > version
@echo "$(TEXFILE) PDF Ready"

.PHONY: clean
clean:
@rm -rf /tmp/latex.*

cleanall:
@rm -rf /tmp/latex.*
@rm -f $(TEXFILE).pdf

@ -0,0 +1,125 @@
\documentclass[a4paper,12pt]{report}

% packeges
\usepackage[a4paper]{geometry}
\usepackage{fancyhdr}
\usepackage{lastpage}
%\usepackage{amsmath}
%\usepackage{amssymb}
%\usepackage{amsthm}
%\usepackage{array}
%\usepackage{xy}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{url}
\usepackage{hyperref}
\usepackage{color}
\usepackage{etex}
\usepackage[local]{gitinfo2}
\usepackage{titlesec}
%\usepackage{draftwatermark}
\usepackage[acronym,ucmark,nomain]{glossaries}
%\usepackage[curly,sort,comma,numbers]{natbib}

%compression
\pdfminorversion=7
\pdfcompresslevel=9
\pdfobjcompresslevel=2

\hypersetup{
%hyperindex=true,
%hyperfigures=true,
%pagebackref=true,
%backref,
colorlinks=true,
linkcolor=black,
anchorcolor=black,
citecolor=black,
filecolor=black,
menucolor=black,
pagecolor=black,
urlcolor=black,
%bookmarksnumbered,
%pdfborder=0 0 0,'
pdftoolbar=false,
pdfmenubar=false,
%bookmarks=false,
pdfproducer={OPF Template Generator},
pdfcreator={OPF POWER ISA TWG},
pdfauthor={Toshaan Bharvani <toshaan@vantosh.com>},
pdftitle={OpenPOWER Foundation ISA TWG Charter},
pdfsubject={OpenPOWER Foundation ISA TWG Charter},
pdfkeywords={OPF,OpenPOWER,POWER ISA,ISA,charter}
}

% page layout
\geometry{top=30mm}
\geometry{bottom=20mm}
\geometry{left=20mm}
\geometry{right=20mm}
\geometry{headheight=25mm}
\geometry{headsep=10mm}
\geometry{foot=10mm}

%\renewcommand{\partname}{}
%\renewcommand{\thechapter}{\arabic{chapter}}
%\renewcommand{\thepart}{\arabic{part}.}
\renewcommand{\thesection}{\arabic{section}.}
\renewcommand{\thesubsection}{\thesection\arabic{subsection}.}
\renewcommand{\thesubsubsection}{\thesection\thesubsection\arabic{subsubsection}}

%\SetWatermarkText{Draft}
%\SetWatermarkScale{10}

\input{glossaries.tex}

% real begining
\begin{document}

\pagenumbering{arabic}
\setcounter{page}{1}

%\renewcommand{\baselinestretch}{2}
%\doublespacing
\setlength{\parindent}{0em}
\setlength{\parskip}{0em}

\pagestyle{fancy}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}

% fancyhdr
\fancyhead{}
\fancyhead[L]{
\includegraphics[width=4cm]{opf-logo.png}
}
\fancyhead[R]{
OpenPOWER Foundation Workgroup Charter
}

\fancyfoot{}
\fancyfoot[L]{
\begin{tiny}
OPF Workgroup Charter
\end{tiny}
}
\fancyfoot[C]{
\begin{tiny}
\gitFirstTagDescribe{} (\gitAbbrevHash{} - \gitAuthorDate{})
\end{tiny}
}
\fancyfoot[R]{
\begin{tiny}
\thepage\ of \pageref{LastPage}
\end{tiny}
}

%%%
\input{content.tex}
\input{appendices.tex}

\printglossary[type=\acronymtype,title=List of Acronyms]

\end{document}

@ -0,0 +1,41 @@
%%%

\section{Workgroup name}

\section{Definitions}

\section{Description}

\section{Scope}

\section{Similar Activities}

\section{Users}

\section{Work Product}

\section{Projects}

\section{Participation}

\section{Work Group Convener}

\section{Meeting Plan}

\section{Participants}

\section{Balloting Approval Requirements}

\section{Member Organization Support}

\section{Anticipated Contributions}

\section{IPR, Confidentiality \& Licensing}

\subsection{Confidentiality Mode}

\subsection{IPR Policy}

\subsection{Open Source Licensing Mode}

\subsection{Open Source Communities}

@ -0,0 +1,10 @@
\makeglossaries

\renewcommand*{\glspostdescription}{}

%%% Common Acronyms
\newacronym{IPR}{IPR}{Intellectual Property Rights}
\newacronym{SIG}{SIG}{Special Integration Work Group}
\newacronym{TWG}{TWG}{Technical Work Group}

%%% Specific Acronyms

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Loading…
Cancel
Save