如何将标题和作者姓名置于中央

如何将标题和作者姓名置于中央
\documentclass[13pt,singlecolumn,twoside]{osajnl}
\usepackage{graphicx}
\usepackage [style=alphabetic]{natbib}
\usepackage{caption}
\journal{jocn}

\begin{document}
   \title{Cause Related Marketing - Improving Consumer Purchase Intention through better Brand Image}

\author[1]{Aarti Kadyan}

\affil[1]{Assistant professor, University of Delhi}
\affil[*]{Corresponding author: [email protected]} 

\begin{abstract}
   The purpose of this paper is to examine the relationship between corporate image and purchase intentions of the consumers related to cause marketing. A primary conceptualization was first developed from existing literature on cause related marketing and then validated through empirical research. A questionnaire was then developed on variables such as corporate image and consumer purchase intentions and data was collected from 65 consumers from Delhi and NCR. Further regression analysis was used to find the relationship between the two variables. It was found that consumer purchase intention is dependent on corporate image of the company supporting cause marketing. The study also investigated the relationship between key socio-demographic variables such as age, gender, income and professional status of the consumer and the purchase intention of the consumer. Independent sample t-test and One-way Anova test was performed on the data collected and was found that the above socio-demographic variables do not differ across purchase intentions of the consumer. The key implications of these findings for marketing managers developing cause related marketing strategies were that it is more important to focus on improving the brand and corporate image of the company through cause related marketing campaigns to improve consumer purchase intentions towards the company’s products. Also with a positive corporate image and good cause related campaigns socio demographic variables do not have much impact on the purchase intentions of the consumer.
Keywords: cause-related marketing; consumer behaviour; corporate image; purchase intentions; marketing strategy; marketing communication
\end{abstract}

\maketitle

\end{document}

摘要居中,但标题和作者姓名不在。我使用过 Overleaf 中的模板,如果我将文档类别更改为文章,由于文章其余部分的设置,我会收到太多错误。我只想将标题和姓名居中。

答案1

将标题和作者置于中心:

(1)将此代码添加到您的序言中:

\xpatchcmd{\@maketitle}
{\raggedright}
{\centering}
{}{}
\xpatchcmd{\@maketitle}
{\raggedright}
{\centering}
{}{}

(2)将此文件保存为模板jocn.sty的 legacy-styles 子目录osajnl(模板中缺少该文件)。

如果您愿意,可以更改颜色。

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{legacy-styles/jocn}[2019/05/13 v1.0 Journal of Optical Communications and Networking color scheme]

% Set journal name for header
\newcommand*{\journalname}{}

% Set journal article types
\newcommand*{\journalshorttype}{Letter}
\newcommand*{\journallongtype}{}

% Set color for header, authors, table lines
% For long articles
\definecolor{color2}{RGB}{100,125,51} % dark green
% For short articles
\definecolor{color2b}{RGB}{100,125,51} % also dark green

% Set bibliography style
\bibliographystyle{osajnl}

\endinput

(3)使用\usepackage{natbib}

A

这是完整的代码

\documentclass[13pt,singlecolumn,twoside]{osajnl}
\usepackage{graphicx}
\usepackage{natbib}% do not use style=alphabetic!! <<<<<<<<<<<<<<<<
\usepackage{caption}

%% ******************** added <<<<<<<<<<<<<<<
\xpatchcmd{\@maketitle}
{\raggedright}
{\centering}
{}{}
\xpatchcmd{\@maketitle}
{\raggedright}
{\centering}
{}{}
%% ********************

\journal{jocn}% Choose journal (ao,jocn,josaa,josab,ol,optica,pr) <<<<  but jocn is missing !!!

\begin{document}
    \title{Cause Related Marketing - Improving Consumer Purchase Intention through better Brand Image}
    
    \author[1]{Aarti Kadyan}
    
    \affil[1]{Assistant professor, University of Delhi}
    \affil[*]{Corresponding author: [email protected]} 
    
    \begin{abstract}
        The purpose of this paper is to examine the relationship between corporate image and purchase intentions of the consumers related to cause marketing. A primary conceptualization was first developed from existing literature on cause related marketing and then validated through empirical research. A questionnaire was then developed on variables such as corporate image and consumer purchase intentions and data was collected from 65 consumers from Delhi and NCR. Further regression analysis was used to find the relationship between the two variables. It was found that consumer purchase intention is dependent on corporate image of the company supporting cause marketing. The study also investigated the relationship between key socio-demographic variables such as age, gender, income and professional status of the consumer and the purchase intention of the consumer. Independent sample t-test and One-way Anova test was performed on the data collected and was found that the above socio-demographic variables do not differ across purchase intentions of the consumer. The key implications of these findings for marketing managers developing cause related marketing strategies were that it is more important to focus on improving the brand and corporate image of the company through cause related marketing campaigns to improve consumer purchase intentions towards the company’s products. Also with a positive corporate image and good cause related campaigns socio demographic variables do not have much impact on the purchase intentions of the consumer.
        Keywords: cause-related marketing; consumer behaviour; corporate image; purchase intentions; marketing strategy; marketing communication
    \end{abstract}
    
    \maketitle
    
    \section{Introduction}
    See the OSA's \href{http://www.opticsinfobase.org/submit/style/}{Style Guide} and \href{http://www.opticsinfobase.org/submit/templates/}{Manuscript Templates} pages for more details. Please select the appropriate journal abbreviation in the document preamble.
    
    If you have a question while using this template on {Overleaf}, please use the help menu (``?'') on the top bar to search for help or ask us a question using our \href{https://www.overleaf.com/contact}{contact form}.
\end{document}

模板下载自向 OPG 期刊 AO、JOCN、JOSA A、JOSA B、OL、Optica 和 PRJ 投稿

相关内容