Yes. But not automatically. You would have to redefine the abstract
environment to start with a different header, or at least redefine the \abstractname
variable as article.cls
has this:
\newenvironment{abstract}{%
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
\begin{center}%
\bfseries \abstractname %%%% This what you need to redefine
\@endparpenalty\@M
\end{center}}%
{\par\vfil\null\endtitlepage}
So you can do something like the following minimal example:
---
title: "Test Document"
author: "Some User"
output: pdf_document
abstract: >
One or two sentences describing it all.
header-includes:
\renewcommand{\abstractname}{My Very Own Summary}
---
## R Markdown
This is an R Markdown document.
which does what you desire:
lang: lt
, I had to includeheader-includes: \usepackage[L7x]{fontenc}
into YAML header to get the word correctly translated to Lithuanian. Any ideas for HTML? – Hekking