Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132932 views
License: OTHER
1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
% Large Colored Title Article
3
% LaTeX Template
4
% Version 1.1 (25/11/12)
5
%
6
% This template has been downloaded from:
7
% http://www.LaTeXTemplates.com
8
%
9
% Original author:
10
% Frits Wenneker (http://www.howtotex.com)
11
%
12
% License:
13
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
14
%
15
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16
17
%----------------------------------------------------------------------------------------
18
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
19
%----------------------------------------------------------------------------------------
20
21
\documentclass[DIV=calc, paper=a4, fontsize=11pt, twocolumn]{scrartcl} % A4 paper and 11pt font size
22
23
\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
24
\usepackage[english]{babel} % English language/hyphenation
25
\usepackage[protrusion=true,expansion=true]{microtype} % Better typography
26
\usepackage{amsmath,amsfonts,amsthm} % Math packages
27
\usepackage[svgnames]{xcolor} % Enabling colors by their 'svgnames'
28
\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats in tables or figures
29
\usepackage{booktabs} % Horizontal rules in tables
30
\usepackage{fix-cm} % Custom font sizes - used for the initial letter in the document
31
32
\usepackage{sectsty} % Enables custom section titles
33
\allsectionsfont{\usefont{OT1}{phv}{b}{n}} % Change the font of all section commands
34
35
\usepackage{fancyhdr} % Needed to define custom headers/footers
36
\pagestyle{fancy} % Enables the custom headers/footers
37
\usepackage{lastpage} % Used to determine the number of pages in the document (for "Page X of Total")
38
39
% Headers - all currently empty
40
\lhead{}
41
\chead{}
42
\rhead{}
43
44
% Footers
45
\lfoot{}
46
\cfoot{}
47
\rfoot{\footnotesize Page \thepage\ of \pageref{LastPage}} % "Page 1 of 2"
48
49
\renewcommand{\headrulewidth}{0.0pt} % No header rule
50
\renewcommand{\footrulewidth}{0.4pt} % Thin footer rule
51
52
\usepackage{lettrine} % Package to accentuate the first letter of the text
53
\newcommand{\initial}[1]{ % Defines the command and style for the first letter
54
\lettrine[lines=3,lhang=0.3,nindent=0em]{
55
\color{DarkGoldenrod}
56
{\textsf{#1}}}{}}
57
58
%----------------------------------------------------------------------------------------
59
% TITLE SECTION
60
%----------------------------------------------------------------------------------------
61
62
\usepackage{titling} % Allows custom title configuration
63
64
\newcommand{\HorRule}{\color{DarkGoldenrod} \rule{\linewidth}{1pt}} % Defines the gold horizontal rule around the title
65
66
\pretitle{\vspace{-30pt} \begin{flushleft} \HorRule \fontsize{50}{50} \usefont{OT1}{phv}{b}{n} \color{DarkRed} \selectfont} % Horizontal rule before the title
67
68
\title{Article Title} % Your article title
69
70
\posttitle{\par\end{flushleft}\vskip 0.5em} % Whitespace under the title
71
72
\preauthor{\begin{flushleft}\large \lineskip 0.5em \usefont{OT1}{phv}{b}{sl} \color{DarkRed}} % Author font configuration
73
74
\author{John Smith, } % Your name
75
76
\postauthor{\footnotesize \usefont{OT1}{phv}{m}{sl} \color{Black} % Configuration for the institution name
77
University of California % Your institution
78
79
\par\end{flushleft}\HorRule} % Horizontal rule after the title
80
81
\date{} % Add a date here if you would like one to appear underneath the title block
82
83
%----------------------------------------------------------------------------------------
84
85
\begin{document}
86
87
\maketitle % Print the title
88
89
\thispagestyle{fancy} % Enabling the custom headers/footers for the first page
90
91
%----------------------------------------------------------------------------------------
92
% ABSTRACT
93
%----------------------------------------------------------------------------------------
94
95
% The first character should be within \initial{}
96
\initial{H}\textbf{ere is some sample text to show the initial in the introductory paragraph of this template article. The color and lineheight of the initial can be modified in the preamble of this document.}
97
98
%----------------------------------------------------------------------------------------
99
% ARTICLE CONTENTS
100
%----------------------------------------------------------------------------------------
101
102
\section*{Section 1}
103
104
\lipsum[1-3] % Dummy text
105
106
\begin{align}
107
A =
108
\begin{bmatrix}
109
A_{11} & A_{21} \\
110
A_{21} & A_{22}
111
\end{bmatrix}
112
\end{align}
113
114
\lipsum[4] % Dummy text
115
116
%------------------------------------------------
117
118
\subsection*{Subsection 1}
119
120
\lipsum[5] % Dummy text
121
122
\begin{itemize}
123
\item First item in a list
124
\item Second item in a list
125
\item Third item in a list
126
\end{itemize}
127
128
\lipsum[6] % Dummy text
129
130
%------------------------------------------------
131
132
\subsection*{Subsection 2}
133
134
\lipsum[7] % Dummy text
135
136
\begin{table}
137
\caption{Random table}
138
\centering
139
\begin{tabular}{llr}
140
\toprule
141
\multicolumn{2}{c}{Name} \\
142
\cmidrule(r){1-2}
143
First name & Last Name & Grade \\
144
\midrule
145
John & Doe & $7.5$ \\
146
Richard & Miles & $2$ \\
147
\bottomrule
148
\end{tabular}
149
\end{table}
150
151
%------------------------------------------------
152
153
\section*{Section 2}
154
155
\lipsum[8] % Dummy text
156
157
\begin{description}
158
\item[First] This is the first item
159
\item[Last] This is the last item
160
\end{description}
161
162
\lipsum[9] % Dummy text
163
164
%----------------------------------------------------------------------------------------
165
% REFERENCE LIST
166
%----------------------------------------------------------------------------------------
167
168
\begin{thebibliography}{99} % Bibliography - this is intentionally simple in this template
169
170
\bibitem[Figueredo and Wolf, 2009]{Figueredo:2009dg}
171
Figueredo, A.~J. and Wolf, P. S.~A. (2009).
172
\newblock Assortative pairing and life history strategy - a cross-cultural
173
study.
174
\newblock {\em Human Nature}, 20:317--330.
175
176
\end{thebibliography}
177
178
%----------------------------------------------------------------------------------------
179
180
\end{document}
181