Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Alexander-Sun committed Jan 23, 2024
1 parent 0021cc3 commit 8e8d258
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
14 changes: 5 additions & 9 deletions APA7.cls
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
%%
% Author: Rui Sun
% Mailto: [email protected]
% Update Date: 10 Dec 2023
%%

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{APA7}
\LoadClass[12pt]{article}
Expand Down Expand Up @@ -51,15 +45,17 @@
\newcommand\makecover{%
\begin{titlepage}
\centering
~\\
~\\
{\fontsize{16pt}{16pt}\bfseries{\@titlefirst} \par}
{\fontsize{16pt}{16pt}\bfseries{\@titlesecond} \par}
{\fontsize{16pt}{16pt}\bfseries{\@titlethird} \par}
%{\fontsize{16pt}{16pt}\bfseries{\@titlefourth} \par}
~\\ % blank line
{\fontsize{12pt}{12pt}{Module: \@modulename} \par}
{\fontsize{12pt}{12pt}{Module Leader: \@leader} \par}
{\fontsize{12pt}{12pt}{Word Count: \@wordcount} \par}
{\fontsize{12pt}{12pt}{Candidate Number: \@candidatenumber} \par}
{\fontsize{12pt}{12pt}{Module: \@modulename} \par}
%{\fontsize{12pt}{12pt}{Module Leader: \@leader} \par}
%{\fontsize{12pt}{12pt}{Word Count: \@wordcount} \par}
{\fontsize{12pt}{14pt} {\today} \par}
\end{titlepage}
}
Expand Down
14 changes: 10 additions & 4 deletions docs/essay.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@ \section{Heading Level 1}

This template defaults to the Times New Roman font with a size of 12pt. The first line is indented by 0.5 inches. All lines are double-spaced.

\noindent If needed, type "\textbackslash noindent\{\}" before each paragraph to unindent.
\noindent If needed, type "\textbackslash noindent" before each paragraph to unindent.

\subsection{Heading Level 2}

You could use the "\textbackslash parencite\{\}" command to include both author name and publish year in brackets like this \parencite{lshort}, and the "\textbackslash textcite\{\}" command to include only publish year in brackets \textcite{lshort}.
You could use the "\textbackslash parencite$["$page\_number(s)$"]$\{\}" command to include both author name and publish year in brackets and the "\textbackslash textcite\{\}" command to include only publish year in brackets.
E.g.1, \textcite{lshort} wrote a comprehensive introduction to \LaTeX.
E.g.2, Using \TeX \ as its typesetter, \LaTeX \ is developed to help authors produce high-quality manuscripts \parencite[1-2]{lshort}.
\subsubsection{Heading Level 3}
There are 5 levels of headings in this template. For a student essay, however, the first two may be already enough.
There are 5 levels of headings in this template. For a student essay, however, the first two may already be enough.
\subheading{Heading Level 4} Select the headings you need and delete the others.
\subsubheading{Heading Level 5} Good luck with your essay!
\subsubheading{Heading Level 5} Good luck with your essay!
4 changes: 2 additions & 2 deletions docs/info.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%
% Replace with your info
% Replace with your information
%%

% Ignore this file when counting words
Expand All @@ -16,4 +16,4 @@
\wordcount{3000}

\candidatenumber{123456}
%TC:endignore
%TC:endignore
10 changes: 5 additions & 5 deletions docs/report.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ \subsubsection{Results}

\subsubheading{Manipulation check}

\subsubheading{ANOVA}
\subsubheading{Analysis 1}

\subsubheading{Regression analysis}
\subsubheading{Analysis 2}

\subsubsection{Discussion}

Expand All @@ -30,10 +30,10 @@ \subsubsection{Results}

\subsubheading{Manipulation check}

\subsubheading{ANOVA}
\subsubheading{Analysis 1}

\subsubheading{Regression analysis}
\subsubheading{Analysis 2}

\subsubsection{Discussion}

\section{General Discussion}
\section{General Discussion}
3 changes: 2 additions & 1 deletion main.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%%
% Author: Rui Sun
% Mailto: [email protected]
% Update Date: 10 Dec 2023
% Update Date: 23 Jan 2024
%%

\documentclass[12pt]{APA7}
Expand All @@ -11,6 +11,7 @@
% Indent the first line of a new paragraph by 0.5 inches
\setlength{\parindent}{0.5in}


\input{docs/info}

\begin{document}
Expand Down

0 comments on commit 8e8d258

Please sign in to comment.