1

I am Brazilian and constantly writing papers for university. I am now using this question to place a cool block containing the abstract description of the paper per se. But in portuguese abstract is called resumo, and I am supposed to write both of them, portuguese and english version in every single paper. Pretty much like this

enter image description here

How can I make emacs help me out here? Is there a config for this or should I mess with elisp?

  • @Nick: the image worked on Firefox 55.0.2 on Linux – serv-inc Aug 27 '17 at 14:54
1

Something like this

#+language: en,pt
#+latex_compiler: xelatex
#+latex_header: \usepackage[AUTO]{polyglossia}
#+begin_english
#+begin_abstract
Abstract
#+end_abstract
#+end_english

#+begin_abstract
Resumo
#+end_abstract

or this, if you prefer babel

#+language: pt
#+latex_header: \usepackage[english,AUTO]{babel}
#+macro: lang @@latex:\selectlanguage{$1}@@
{{{lang(english)}}}
#+begin_abstract
Abstract
#+end_abstract
{{{lang(portuguese)}}}
#+begin_abstract
Resumo
#+end_abstract
  • xelatex compiles with errors! babel compiles fine but the keyword does not get translated. see this imgur.com/a/OWGBL – CESCO Apr 26 '17 at 16:14
  • If xelatex doesn't work you might have a older version of Org or you might be missing some LaTeX packages. There was a typo in portuguese the answer in the sample which I corrected. – rasmus Apr 27 '17 at 10:00
  • I have seen the typo. No luck so far.I have installed elatex from apt. What tex dependencies should I get? I um running the latest org-plus from melpa – CESCO May 1 '17 at 1:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.