That is because the key to the latex class definitions you have is koma-article and that generates the LaTeX preamble with document class scrartcl
PA Enviado desde mi iPhone > El 14 ago 2026, a las 13:09, Charles Millar <[email protected]> escribió: > > On 8/14/26 12:37 AM, Pedro Andres Aranda Gutierrez wrote: >> Enviado desde mi iPhone >>>> El 14 ago 2026, a las 0:05, Charles Millar <[email protected]> escribió: >>> >>> On 8/13/26 4:27 PM, Charles Millar wrote: >>>>> On 8/13/26 1:14 AM, Pedro Andres Aranda Gutierrez wrote: >>>>> Don’t include the LATEX_CLASS in the options >>>>> PA >>>>> Enviado desde mi iPhone >>>>> >>>> Did that. Now >>>> [article >>>> is inserted at the beginning of the exported PDF document. >>>> I have been using the same setup for more than ten years, and do not >>>> recall making any changes recently. >>>> This behavior, possibly a bug, started between March 12, 2026 and June 1, >>>> 2026. >>>> Charlie Millar >>> The first three lines for my LaTeX specific export settings are: >>> >>> #+LATEX_COMPILER: pdflatex > > Your solution, slightly modified, works! >>> #+LATEX_CLASS: none >> #+LATEX_CLASS: srcartcl > No. But, > #+LATEX_CLASS: koma-article > OK >>> #+LATEX_CLASS_OPTIONS: >>> [letterpaper.twoside=false,fontsize=11pt,parskip=half,parindent=0.5in,headings=small]{scrartcl} >> #+LATEX_CLASS_OPTIONS: >> [letterpaper.twoside=false,fontsize=11pt,parskip=half,parindent=0.5in,headings=small] > OK >> Or even without the [] > Also works. > > Thank you. >>> >>> I believe that I found the #+LATEX_CLASS: none on the Org list. >>> >>>>>> El 12 ago 2026, a las 23:43, Charles Millar <[email protected]> >>>>>> escribió: >>>>>> >>>>>> GNU Emacs 30.0.50 (build 222, x86_64-pc-linux-gnu, GTK+ Version >>>>>> 3.24.36, cairo version 1.16.0) of 2026-08-08 >>>>>> >>>>>> Org mode version 10.0-pre (release_9.8.8-350-ge186e4 >>>>>> >>>>>> Koma script >>>>>> >>>>>> I have following in latex headers in my org files: >>>>>> >>>>>> #+LATEX_CLASS_OPTIONS: >>>>>> [letterpaper.twoside=false,fontsize=11pt,parskip=half,parindent=0.5in,headings=small]{scrartcl} >>>>>> >>>>>> Sometime after this past March 12th, a right hand square bracket is >>>>>> printed at the beginning of every pdf document. I have found that upon >>>>>> export to the .tex file a right hand square bracket is inserted, thus: >>>>>> >>>>>> \documentclass[letterpaper.twoside=false,fontsize=11pt,parskip=half,parindent=0.5in,headings=small]{scrartcl}]{} >>>>>> ^ >>>>>> >>>>>> On March 12th and before the export to the .tex file was >>>>>> >>>>>> \documentclass[letterpaper.twoside=false,fontsize=11pt,parskip=half,parindent=0.5in,headings=small]{scrartcl}{} >>>>>> >>>>>> Until now I was looking at for errors in my init file and latex setup in >>>>>> my org files. Finally realized that I should check the *Org LATEX >>>>>> Export* file. Of course, that's not to say that my init file is perfect. >>>>>> >>>>>> Charlie Millar >>>>>> >>> >
