jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.69k stars 3.39k forks source link

ICML Output is "not a valid InDesign Interchange document" #1575

Closed ZeroMax-dev closed 10 years ago

ZeroMax-dev commented 10 years ago

I converted a simple LaTeX document into ICML to test the capabilities, however InDesign did not even accept the document as a proper ICML.

The error happens even with a TeX document as simple as the following:

===================== test.tex ========================= \documentclass[11pt,a4paper,oneside]{report}

\usepackage[utf8]{inputenc}

\usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb}

\author{Andy} \title{Lorem Ipsum}

\begin{document}

\maketitle

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.

\end{document}

===================== END =========================

I used pandoc 1.13.0.1 and converted it with the following command:

pandoc test.tex -f latex -t icml -o text.icml

I started InDesign CS6, created a new document and went to open the text.icml via "File>Place..." The message that comes up says "This is not a valid InDesign Interchange document." and nothing happens afterwards.

jgm commented 10 years ago

Use the -s option to get a standalone document. Otherwise you just get a fragment.

+++ ZeroMax-dev [Aug 28 14 00:27 ]:

I converted a simple LaTeX document into ICML to test the capabilities, however InDesign did not even accept the document as a proper ICML.

The error happens even with a TeX document as simple as the following:

===================== test.tex ========================= \documentclass[11pt,a4paper,oneside]{report}

\usepackage[utf8]{inputenc}

\usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb}

\author{Andy} \title{Lorem Ipsum}

\begin{document}

\maketitle

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.

\end{document}

I used pandoc 1.13.0.1 and converted it with the following command:

pandoc test.tex -f latex -t icml -o text.icml

I started InDesign CS6, created a new document and went to open the text.icml via File>Place... The message that comes up says "This is not a valid InDesign Interchange document." - InDesign does nothing.

— Reply to this email directly or [1]view it on GitHub.

References

  1. https://github.com/jgm/pandoc/issues/1575
ZeroMax-dev commented 10 years ago

Indeed. I assumed the ICML output would imply a standalone document. The standalone issue might be a useful entry for the FAQ.