Warm tip: This article is reproduced from serverfault.com, please click

emacs-如何将以下LaTeX代码放入组织模式?

(emacs - How do I put the following LaTeX code in org-mode?)

发布于 2020-12-08 07:35:06

我想自定义文章类的标题以使其向左对齐而不是默认居中。我在LaTeX StackExchange TeX中找到了解决方案

代码是:

\makeatletter
\renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt}
\begin{flushleft}
  \textbf{\@title}

  \@author
\end{flushleft}\egroup
}
\makeatother

\title{Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit}
\date{}
\author{%
    Author One$^{1}$, Author2$^{2}$\\
    $^{1}$Institution 1, I 1 City, I 1 Country\\
    $^{2}$Institution 1, I 1 City, I 1 Country\\
    \underline{$^{1}$mail@domain.com}\\
    \underline{$^{2}$mail2@domain.com }
}

我想将其合并到我的组织文件中,该文件将使用LaTeX导出为pdf。我怎样才能做到这一点?

Questioner
Sreekumar R
Viewed
0
4,548 2020-12-09 00:22:40

最简单的方法是,将每行从前缀\makeatletter\makeatother,包括前一行#+latex_header: 并在组织文件中包含这些行。