Order of Latex summaries

Asked

Viewed 388 times

0

I am in need of help with the order of the abstracts in my article. I want the "ABSTRACT" to come before the "ABSTRACT". The same with the keywords, "KEYWORDS" first and then "KEYWORDS". I am using the "sigconf" model of ACM (link to the zip files below). The code I am using to put the two summaries is also below.

LATEX (Version 1.65)

\documentclass[sigconf]{acmart}
\usepackage[brazil,english]{babel}

\usepackage{lipsum} % for mock text

\makeatletter
\patchcmd{\maketitle}
  {\andify\authors}
  {\add@brazil@keywords\andify\authors}
  {}{}
\def\brazilkeywords#1{%
  \gdef\add@brazil@keywords{%
    \@specialsection{Palavras-chave}#1\par
  }%
}
\makeatother

\begin{document}

\title{Title}
\author{Me}

\begin{abstract}
This is the abstract in English.

\begin{otherlanguage}{brazil}
\section*{\abstractname}
Este é o resumo em português
\end{otherlanguage}
\end{abstract}

\keywords{Abc, def}
\brazilkeywords{Ghi, jkl}

\maketitle

\lipsum[1-10]

\end{document}
  • You are much more likely to find an answer in [tex.se] (if you understand English, of course) ;)

  • Hello @fernandosavio, thanks for the tip. It was there that I got the code quoted by me above, however now I need to change the order and I can not only change the order of the codes and text.

  • And they still haven’t helped me with this problem.

1 answer

1

I always use the SBC model and for me just change the sequence in the code. See if it works.

\begin{document}

\title{Title}
\author{Me}

\begin{otherlanguage}{brazil}
\section*{\abstractname}
Este é o resumo em português
\end{otherlanguage}
\end{abstract}

\begin{abstract}
This is the abstract in English.

\brazilkeywords{Ghi, jkl}
\keywords{Abc, def}

\maketitle

\lipsum[1-10]

\end{document}
  • Hello Andrey, thanks for your help, but I tried to change the order and it still doesn’t work.

  • Hello, which one of the files did you change ?

  • I tested with my SBC model and had a specific file that changed the order and worked. I opened your template, but I don’t know which files you are using.

  • I’m using the sample-sigconf..

  • The file is located in the samples folder.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.