Modify line in template of head











up vote
0
down vote

favorite












This is the template
http://www.latextemplates.com/template/wenneker-article



enter image description here



my code is :



title{Large Title.} % The article title
author{
textbf{name} % Authors
newlinenewline % Space before institutions
institution{Universidad }
}
date{%
$^1$Organization 1\%
$^2$Organization 2\[2ex]%
today
}


I want the line to be placed below the date



Edit 1: i adding this code in main.tx



author{
textbf{Juan perez, deving@gmail.com} % Authors
newlinenewline % Space before institutions
institution{Universidad Antuart, sant pertersburgo}
}

% Example of a one line author/institution relationship
%author{newauthor{John Marston} newinstitution{Universidad Nacional Autónoma de México, Mexico City, Mexico}}

date{today} % Add a date here if you would like one to appear underneath the title block, use today for the current date, leave empty for no date
%date{}
%date{vspace{-10ex}}
preauthor{begin{center}}
postauthor{end{center}}
postdate{parHorRuleend{center}}
postdate{parHorRuleend{center}}


this is the result



enter image description here










share|improve this question
























  • Please always post minimal working example (MWE) instead of code fragments
    – samcarter
    5 hours ago










  • @samcarte is template is very long the code
    – x-rw
    5 hours ago










  • It's not that long and most of it is unrelated to your problem, so you can remove it
    – samcarter
    5 hours ago















up vote
0
down vote

favorite












This is the template
http://www.latextemplates.com/template/wenneker-article



enter image description here



my code is :



title{Large Title.} % The article title
author{
textbf{name} % Authors
newlinenewline % Space before institutions
institution{Universidad }
}
date{%
$^1$Organization 1\%
$^2$Organization 2\[2ex]%
today
}


I want the line to be placed below the date



Edit 1: i adding this code in main.tx



author{
textbf{Juan perez, deving@gmail.com} % Authors
newlinenewline % Space before institutions
institution{Universidad Antuart, sant pertersburgo}
}

% Example of a one line author/institution relationship
%author{newauthor{John Marston} newinstitution{Universidad Nacional Autónoma de México, Mexico City, Mexico}}

date{today} % Add a date here if you would like one to appear underneath the title block, use today for the current date, leave empty for no date
%date{}
%date{vspace{-10ex}}
preauthor{begin{center}}
postauthor{end{center}}
postdate{parHorRuleend{center}}
postdate{parHorRuleend{center}}


this is the result



enter image description here










share|improve this question
























  • Please always post minimal working example (MWE) instead of code fragments
    – samcarter
    5 hours ago










  • @samcarte is template is very long the code
    – x-rw
    5 hours ago










  • It's not that long and most of it is unrelated to your problem, so you can remove it
    – samcarter
    5 hours ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











This is the template
http://www.latextemplates.com/template/wenneker-article



enter image description here



my code is :



title{Large Title.} % The article title
author{
textbf{name} % Authors
newlinenewline % Space before institutions
institution{Universidad }
}
date{%
$^1$Organization 1\%
$^2$Organization 2\[2ex]%
today
}


I want the line to be placed below the date



Edit 1: i adding this code in main.tx



author{
textbf{Juan perez, deving@gmail.com} % Authors
newlinenewline % Space before institutions
institution{Universidad Antuart, sant pertersburgo}
}

% Example of a one line author/institution relationship
%author{newauthor{John Marston} newinstitution{Universidad Nacional Autónoma de México, Mexico City, Mexico}}

date{today} % Add a date here if you would like one to appear underneath the title block, use today for the current date, leave empty for no date
%date{}
%date{vspace{-10ex}}
preauthor{begin{center}}
postauthor{end{center}}
postdate{parHorRuleend{center}}
postdate{parHorRuleend{center}}


this is the result



enter image description here










share|improve this question















This is the template
http://www.latextemplates.com/template/wenneker-article



enter image description here



my code is :



title{Large Title.} % The article title
author{
textbf{name} % Authors
newlinenewline % Space before institutions
institution{Universidad }
}
date{%
$^1$Organization 1\%
$^2$Organization 2\[2ex]%
today
}


I want the line to be placed below the date



Edit 1: i adding this code in main.tx



author{
textbf{Juan perez, deving@gmail.com} % Authors
newlinenewline % Space before institutions
institution{Universidad Antuart, sant pertersburgo}
}

% Example of a one line author/institution relationship
%author{newauthor{John Marston} newinstitution{Universidad Nacional Autónoma de México, Mexico City, Mexico}}

date{today} % Add a date here if you would like one to appear underneath the title block, use today for the current date, leave empty for no date
%date{}
%date{vspace{-10ex}}
preauthor{begin{center}}
postauthor{end{center}}
postdate{parHorRuleend{center}}
postdate{parHorRuleend{center}}


this is the result



enter image description here







header-footer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 4 hours ago

























asked 5 hours ago









x-rw

23116




23116












  • Please always post minimal working example (MWE) instead of code fragments
    – samcarter
    5 hours ago










  • @samcarte is template is very long the code
    – x-rw
    5 hours ago










  • It's not that long and most of it is unrelated to your problem, so you can remove it
    – samcarter
    5 hours ago


















  • Please always post minimal working example (MWE) instead of code fragments
    – samcarter
    5 hours ago










  • @samcarte is template is very long the code
    – x-rw
    5 hours ago










  • It's not that long and most of it is unrelated to your problem, so you can remove it
    – samcarter
    5 hours ago
















Please always post minimal working example (MWE) instead of code fragments
– samcarter
5 hours ago




Please always post minimal working example (MWE) instead of code fragments
– samcarter
5 hours ago












@samcarte is template is very long the code
– x-rw
5 hours ago




@samcarte is template is very long the code
– x-rw
5 hours ago












It's not that long and most of it is unrelated to your problem, so you can remove it
– samcarter
5 hours ago




It's not that long and most of it is unrelated to your problem, so you can remove it
– samcarter
5 hours ago










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










The template loads package titling in the structure.tex. So you can add the following code in the preamble of the main.tex:



postauthor{}
postdate{parHorRuleend{center}}


Result:



enter image description here





If you want to center the author and the university use:



preauthor{begin{center}}
postauthor{end{center}}
postdate{parHorRuleend{center}}


in the preamble of main.tex and change author to:



author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}


As MWE (only the relevant code of structure.tex and main.tex is used):



documentclass[10pt, a4paper, twocolumn]{article}

% --- relevant part from structure.tex ---
usepackage[english]{babel}
usepackage{microtype}
usepackage[svgnames]{xcolor}
usepackage{sectsty}
allsectionsfont{usefont{OT1}{phv}{b}{n}}
usepackage{geometry}
geometry{
top=1cm,
bottom=1.5cm,
left=2cm,
right=2cm,
includehead,
includefoot,
%showframe,
}
setlength{columnsep}{7mm}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{XCharter}
newcommand{authorstyle}[1]{{largeusefont{OT1}{phv}{b}{n}color{DarkRed}#1}}
newcommand{institution}[1]{{footnotesizeusefont{OT1}{phv}{m}{sl}color{Black}#1}}
usepackage{titling} % Allows custom title configuration
newcommand{HorRule}{color{DarkGoldenrod}rule{linewidth}{1pt}}
pretitle{
vspace{-30pt}%
HorRulevspace{10pt} % <- note that this spurious space is needed!
fontsize{32}{36}usefont{OT1}{phv}{b}{n}selectfont%
color{DarkRed}%
}
posttitle{parvskip 15pt}
preauthor{}
postauthor{vspace{10pt}parHorRulevspace{20pt}}
usepackage{lettrine}
usepackage{fix-cm}
newcommand{initial}[1]{%
lettrine[lines=3,findent=4pt,nindent=0pt]{%
color{DarkGoldenrod}% Lettrine colour
{#1}
}{}%
}
usepackage{xstring}
newcommand{lettrineabstract}[1]{%
StrLeft{#1}{1}[firstletter]
initial{firstletter}textbf{StrGobbleLeft{#1}{1}}
}
% --- end relevant code from `structure.tex` ---

title{Effective Methods for Capturing Cattle Rustlers}
author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}

preauthor{begin{center}}% <- added
postauthor{end{center}}% <- added
postdate{parHorRuleend{center}}% <- added
date{today}

usepackage{lipsum}% only for dummy text
begin{document}
maketitle
lettrineabstract{Lorem ipsum ... lipsum[1]}
section{Section}
lipsum
end{document}


Result:



enter image description here






share|improve this answer























  • one more question please, I would like to center the name of the author and the university
    – x-rw
    5 hours ago










  • See my updated answer.
    – esdd
    5 hours ago










  • i edited my question, see please
    – x-rw
    4 hours ago






  • 1




    You have to change author as in my MWE. Do not use newlinenewline! Replace it by \[baselineskip] and avoid the spurious space at the end of the line.
    – esdd
    4 hours ago










  • it's perfect, thanks
    – x-rw
    4 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459621%2fmodify-line-in-template-of-head%23new-answer', 'question_page');
}
);

Post as a guest
































1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










The template loads package titling in the structure.tex. So you can add the following code in the preamble of the main.tex:



postauthor{}
postdate{parHorRuleend{center}}


Result:



enter image description here





If you want to center the author and the university use:



preauthor{begin{center}}
postauthor{end{center}}
postdate{parHorRuleend{center}}


in the preamble of main.tex and change author to:



author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}


As MWE (only the relevant code of structure.tex and main.tex is used):



documentclass[10pt, a4paper, twocolumn]{article}

% --- relevant part from structure.tex ---
usepackage[english]{babel}
usepackage{microtype}
usepackage[svgnames]{xcolor}
usepackage{sectsty}
allsectionsfont{usefont{OT1}{phv}{b}{n}}
usepackage{geometry}
geometry{
top=1cm,
bottom=1.5cm,
left=2cm,
right=2cm,
includehead,
includefoot,
%showframe,
}
setlength{columnsep}{7mm}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{XCharter}
newcommand{authorstyle}[1]{{largeusefont{OT1}{phv}{b}{n}color{DarkRed}#1}}
newcommand{institution}[1]{{footnotesizeusefont{OT1}{phv}{m}{sl}color{Black}#1}}
usepackage{titling} % Allows custom title configuration
newcommand{HorRule}{color{DarkGoldenrod}rule{linewidth}{1pt}}
pretitle{
vspace{-30pt}%
HorRulevspace{10pt} % <- note that this spurious space is needed!
fontsize{32}{36}usefont{OT1}{phv}{b}{n}selectfont%
color{DarkRed}%
}
posttitle{parvskip 15pt}
preauthor{}
postauthor{vspace{10pt}parHorRulevspace{20pt}}
usepackage{lettrine}
usepackage{fix-cm}
newcommand{initial}[1]{%
lettrine[lines=3,findent=4pt,nindent=0pt]{%
color{DarkGoldenrod}% Lettrine colour
{#1}
}{}%
}
usepackage{xstring}
newcommand{lettrineabstract}[1]{%
StrLeft{#1}{1}[firstletter]
initial{firstletter}textbf{StrGobbleLeft{#1}{1}}
}
% --- end relevant code from `structure.tex` ---

title{Effective Methods for Capturing Cattle Rustlers}
author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}

preauthor{begin{center}}% <- added
postauthor{end{center}}% <- added
postdate{parHorRuleend{center}}% <- added
date{today}

usepackage{lipsum}% only for dummy text
begin{document}
maketitle
lettrineabstract{Lorem ipsum ... lipsum[1]}
section{Section}
lipsum
end{document}


Result:



enter image description here






share|improve this answer























  • one more question please, I would like to center the name of the author and the university
    – x-rw
    5 hours ago










  • See my updated answer.
    – esdd
    5 hours ago










  • i edited my question, see please
    – x-rw
    4 hours ago






  • 1




    You have to change author as in my MWE. Do not use newlinenewline! Replace it by \[baselineskip] and avoid the spurious space at the end of the line.
    – esdd
    4 hours ago










  • it's perfect, thanks
    – x-rw
    4 hours ago















up vote
2
down vote



accepted










The template loads package titling in the structure.tex. So you can add the following code in the preamble of the main.tex:



postauthor{}
postdate{parHorRuleend{center}}


Result:



enter image description here





If you want to center the author and the university use:



preauthor{begin{center}}
postauthor{end{center}}
postdate{parHorRuleend{center}}


in the preamble of main.tex and change author to:



author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}


As MWE (only the relevant code of structure.tex and main.tex is used):



documentclass[10pt, a4paper, twocolumn]{article}

% --- relevant part from structure.tex ---
usepackage[english]{babel}
usepackage{microtype}
usepackage[svgnames]{xcolor}
usepackage{sectsty}
allsectionsfont{usefont{OT1}{phv}{b}{n}}
usepackage{geometry}
geometry{
top=1cm,
bottom=1.5cm,
left=2cm,
right=2cm,
includehead,
includefoot,
%showframe,
}
setlength{columnsep}{7mm}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{XCharter}
newcommand{authorstyle}[1]{{largeusefont{OT1}{phv}{b}{n}color{DarkRed}#1}}
newcommand{institution}[1]{{footnotesizeusefont{OT1}{phv}{m}{sl}color{Black}#1}}
usepackage{titling} % Allows custom title configuration
newcommand{HorRule}{color{DarkGoldenrod}rule{linewidth}{1pt}}
pretitle{
vspace{-30pt}%
HorRulevspace{10pt} % <- note that this spurious space is needed!
fontsize{32}{36}usefont{OT1}{phv}{b}{n}selectfont%
color{DarkRed}%
}
posttitle{parvskip 15pt}
preauthor{}
postauthor{vspace{10pt}parHorRulevspace{20pt}}
usepackage{lettrine}
usepackage{fix-cm}
newcommand{initial}[1]{%
lettrine[lines=3,findent=4pt,nindent=0pt]{%
color{DarkGoldenrod}% Lettrine colour
{#1}
}{}%
}
usepackage{xstring}
newcommand{lettrineabstract}[1]{%
StrLeft{#1}{1}[firstletter]
initial{firstletter}textbf{StrGobbleLeft{#1}{1}}
}
% --- end relevant code from `structure.tex` ---

title{Effective Methods for Capturing Cattle Rustlers}
author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}

preauthor{begin{center}}% <- added
postauthor{end{center}}% <- added
postdate{parHorRuleend{center}}% <- added
date{today}

usepackage{lipsum}% only for dummy text
begin{document}
maketitle
lettrineabstract{Lorem ipsum ... lipsum[1]}
section{Section}
lipsum
end{document}


Result:



enter image description here






share|improve this answer























  • one more question please, I would like to center the name of the author and the university
    – x-rw
    5 hours ago










  • See my updated answer.
    – esdd
    5 hours ago










  • i edited my question, see please
    – x-rw
    4 hours ago






  • 1




    You have to change author as in my MWE. Do not use newlinenewline! Replace it by \[baselineskip] and avoid the spurious space at the end of the line.
    – esdd
    4 hours ago










  • it's perfect, thanks
    – x-rw
    4 hours ago













up vote
2
down vote



accepted







up vote
2
down vote



accepted






The template loads package titling in the structure.tex. So you can add the following code in the preamble of the main.tex:



postauthor{}
postdate{parHorRuleend{center}}


Result:



enter image description here





If you want to center the author and the university use:



preauthor{begin{center}}
postauthor{end{center}}
postdate{parHorRuleend{center}}


in the preamble of main.tex and change author to:



author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}


As MWE (only the relevant code of structure.tex and main.tex is used):



documentclass[10pt, a4paper, twocolumn]{article}

% --- relevant part from structure.tex ---
usepackage[english]{babel}
usepackage{microtype}
usepackage[svgnames]{xcolor}
usepackage{sectsty}
allsectionsfont{usefont{OT1}{phv}{b}{n}}
usepackage{geometry}
geometry{
top=1cm,
bottom=1.5cm,
left=2cm,
right=2cm,
includehead,
includefoot,
%showframe,
}
setlength{columnsep}{7mm}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{XCharter}
newcommand{authorstyle}[1]{{largeusefont{OT1}{phv}{b}{n}color{DarkRed}#1}}
newcommand{institution}[1]{{footnotesizeusefont{OT1}{phv}{m}{sl}color{Black}#1}}
usepackage{titling} % Allows custom title configuration
newcommand{HorRule}{color{DarkGoldenrod}rule{linewidth}{1pt}}
pretitle{
vspace{-30pt}%
HorRulevspace{10pt} % <- note that this spurious space is needed!
fontsize{32}{36}usefont{OT1}{phv}{b}{n}selectfont%
color{DarkRed}%
}
posttitle{parvskip 15pt}
preauthor{}
postauthor{vspace{10pt}parHorRulevspace{20pt}}
usepackage{lettrine}
usepackage{fix-cm}
newcommand{initial}[1]{%
lettrine[lines=3,findent=4pt,nindent=0pt]{%
color{DarkGoldenrod}% Lettrine colour
{#1}
}{}%
}
usepackage{xstring}
newcommand{lettrineabstract}[1]{%
StrLeft{#1}{1}[firstletter]
initial{firstletter}textbf{StrGobbleLeft{#1}{1}}
}
% --- end relevant code from `structure.tex` ---

title{Effective Methods for Capturing Cattle Rustlers}
author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}

preauthor{begin{center}}% <- added
postauthor{end{center}}% <- added
postdate{parHorRuleend{center}}% <- added
date{today}

usepackage{lipsum}% only for dummy text
begin{document}
maketitle
lettrineabstract{Lorem ipsum ... lipsum[1]}
section{Section}
lipsum
end{document}


Result:



enter image description here






share|improve this answer














The template loads package titling in the structure.tex. So you can add the following code in the preamble of the main.tex:



postauthor{}
postdate{parHorRuleend{center}}


Result:



enter image description here





If you want to center the author and the university use:



preauthor{begin{center}}
postauthor{end{center}}
postdate{parHorRuleend{center}}


in the preamble of main.tex and change author to:



author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}


As MWE (only the relevant code of structure.tex and main.tex is used):



documentclass[10pt, a4paper, twocolumn]{article}

% --- relevant part from structure.tex ---
usepackage[english]{babel}
usepackage{microtype}
usepackage[svgnames]{xcolor}
usepackage{sectsty}
allsectionsfont{usefont{OT1}{phv}{b}{n}}
usepackage{geometry}
geometry{
top=1cm,
bottom=1.5cm,
left=2cm,
right=2cm,
includehead,
includefoot,
%showframe,
}
setlength{columnsep}{7mm}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{XCharter}
newcommand{authorstyle}[1]{{largeusefont{OT1}{phv}{b}{n}color{DarkRed}#1}}
newcommand{institution}[1]{{footnotesizeusefont{OT1}{phv}{m}{sl}color{Black}#1}}
usepackage{titling} % Allows custom title configuration
newcommand{HorRule}{color{DarkGoldenrod}rule{linewidth}{1pt}}
pretitle{
vspace{-30pt}%
HorRulevspace{10pt} % <- note that this spurious space is needed!
fontsize{32}{36}usefont{OT1}{phv}{b}{n}selectfont%
color{DarkRed}%
}
posttitle{parvskip 15pt}
preauthor{}
postauthor{vspace{10pt}parHorRulevspace{20pt}}
usepackage{lettrine}
usepackage{fix-cm}
newcommand{initial}[1]{%
lettrine[lines=3,findent=4pt,nindent=0pt]{%
color{DarkGoldenrod}% Lettrine colour
{#1}
}{}%
}
usepackage{xstring}
newcommand{lettrineabstract}[1]{%
StrLeft{#1}{1}[firstletter]
initial{firstletter}textbf{StrGobbleLeft{#1}{1}}
}
% --- end relevant code from `structure.tex` ---

title{Effective Methods for Capturing Cattle Rustlers}
author{%
authorstyle{John Marstontextsuperscript{1,2,3} and Bonnie MacFarlanetextsuperscript{2,3}}% <- remove spurious space!!
\[baselineskip]% <- changed
textsuperscript{1}institution{Universidad Nacional Autónoma de México, Mexico City, Mexico}\
textsuperscript{2}institution{University of Texas at Austin, Texas, United States of America}\
textsuperscript{3}institution{texttt{LaTeXTemplates.com}}
}

preauthor{begin{center}}% <- added
postauthor{end{center}}% <- added
postdate{parHorRuleend{center}}% <- added
date{today}

usepackage{lipsum}% only for dummy text
begin{document}
maketitle
lettrineabstract{Lorem ipsum ... lipsum[1]}
section{Section}
lipsum
end{document}


Result:



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 4 hours ago

























answered 5 hours ago









esdd

57.4k34385




57.4k34385












  • one more question please, I would like to center the name of the author and the university
    – x-rw
    5 hours ago










  • See my updated answer.
    – esdd
    5 hours ago










  • i edited my question, see please
    – x-rw
    4 hours ago






  • 1




    You have to change author as in my MWE. Do not use newlinenewline! Replace it by \[baselineskip] and avoid the spurious space at the end of the line.
    – esdd
    4 hours ago










  • it's perfect, thanks
    – x-rw
    4 hours ago


















  • one more question please, I would like to center the name of the author and the university
    – x-rw
    5 hours ago










  • See my updated answer.
    – esdd
    5 hours ago










  • i edited my question, see please
    – x-rw
    4 hours ago






  • 1




    You have to change author as in my MWE. Do not use newlinenewline! Replace it by \[baselineskip] and avoid the spurious space at the end of the line.
    – esdd
    4 hours ago










  • it's perfect, thanks
    – x-rw
    4 hours ago
















one more question please, I would like to center the name of the author and the university
– x-rw
5 hours ago




one more question please, I would like to center the name of the author and the university
– x-rw
5 hours ago












See my updated answer.
– esdd
5 hours ago




See my updated answer.
– esdd
5 hours ago












i edited my question, see please
– x-rw
4 hours ago




i edited my question, see please
– x-rw
4 hours ago




1




1




You have to change author as in my MWE. Do not use newlinenewline! Replace it by \[baselineskip] and avoid the spurious space at the end of the line.
– esdd
4 hours ago




You have to change author as in my MWE. Do not use newlinenewline! Replace it by \[baselineskip] and avoid the spurious space at the end of the line.
– esdd
4 hours ago












it's perfect, thanks
– x-rw
4 hours ago




it's perfect, thanks
– x-rw
4 hours ago


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459621%2fmodify-line-in-template-of-head%23new-answer', 'question_page');
}
);

Post as a guest




















































































Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?