summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/designcon/designcon.cls
blob: 0f639ee0a0d553694fc3b889475bd8a6ea21a333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
%%
%% This is file `designcon.cls',
%% 
%% 
%%   Author: Peter J. Pupalaikis  (pete_pope  at hotmail dot com)
%%   Copyright 2012 Peter J. Pupalaikis
%%   Version 1.0
%% 
%%   This work may be distributed and/or modified under the
%%   conditions of the LaTeX Project Public License, either
%%   version 1.3 of this license or (at your option) any
%%   later version.
%%   The latest version of the license is in
%%      http://www.latex-project.org/lppl.txt
%%   and version 1.3 or later is part of all distributions of
%%   LaTeX version 2003/06/01 or later.
%% 
%%   This work consists of the files listed in the README file.
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{designcon}%
  [2012/08/29 v0.0 DesignCon Class]
%\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}
%\ProcessOptions
\LoadClass[12pt,twoside,american,nolist]{article}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Times New Roman}
\setsansfont[Mapping=tex-text]{Arial Black}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=0.75in,rmargin=0.75in}

\makeatletter
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{hyphenat}
\usepackage{import}
\usepackage{tikz}
\usepackage[nolist]{acronym}
\usepackage{fix-cm}
\usepackage[sf]{titlesec}

%\usepackage{lettrine}

%\input{DesignConInc.tex}
\newcommand\HUGE{\@setfontsize\Huge{36}{47}}
\newfontinstance\bigkanafont[Color=000000,Scale=3]{Arial Black}

\makeatother

\usepackage{xunicode}
\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}

\makeatletter
\newcount\@authorinfonumber
\@authorinfonumber=0
\makeatother

\makeatletter
\def\setAuthorInfo#1{
\global\advance\@authorinfonumber by 1
\expandafter\edef\csname authorinfo \the\@authorinfonumber\endcsname{#1}}
\makeatother

\def\AuthorInfoList#1{%
\noindent {\Large \csname authorinfo #1\endcsname}}

\newcommand{\setHeading}{\def\designconHeading}
\newcommand{\setSkip}{\def\designconSkip}

\makeatletter
\newcommand{\designconTitlePage}{
%\pagestyle{title}
\pagenumbering{gobble}
\begin{titlepage}
\noindent {\bigkanafont \designconHeading}
%\vspace{3in}
\noindent \begin{flushleft}
\begin{sloppypar}
{\fontsize{36}{43}\selectfont \@title \par}
\end{sloppypar}
%\par
\end{flushleft}
\designconSkip
\AuthorInfoList{1} \\
\AuthorInfoList{2} \\
\AuthorInfoList{3} \\
\AuthorInfoList{4} \\
\AuthorInfoList{5} \\
\AuthorInfoList{6} \\
\AuthorInfoList{7} \\
\AuthorInfoList{8} \\
\end{titlepage}
\cleardoublepage
}
\makeatother

\renewcommand{\maketitle}{
\designconTitlePage
}

\newcommand{\designConPaperStart}{
\cleardoublepage{}
\pagenumbering{arabic}
}

\endinput
%%
%% End of file `designcon.cls'.