Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing authors in LaTeX properly #279

Closed
jkmfsu opened this issue Jul 21, 2011 · 0 comments
Closed

Parsing authors in LaTeX properly #279

jkmfsu opened this issue Jul 21, 2011 · 0 comments

Comments

@jkmfsu
Copy link

jkmfsu commented Jul 21, 2011

In LaTeX author are separated using \and. But \and is ignored by pandoc. For example

\documentclass{article}

\title{Some Title}
\author{You \and Me}

\begin{document}
\maketitle
\end{document}

is translated (pandoc -T "" --from=latex --to=html minimal.tex) to

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <meta name="generator" content="pandoc" />
   <meta name="author" content="You Me" />
   <title>Some Title</title>
</head>
<body>
<h1 class="title">Some Title</h1>

</body>
</html>

To fix it:

 <meta name="author" content="You Me" />

should be replaced by

 <meta name="author" content="You" />
 <meta name="author" content="Me" />
@jgm jgm closed this as completed in 6c02962 Jul 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants