{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/2341","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/2341/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/2341/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/2341/events","html_url":"https://github.com/jgm/pandoc/issues/2341","id":98568995,"number":2341,"title":"--reference-docx and --reference-odt doesn't work","user":{"login":"Hi-Angel","id":7935057,"avatar_url":"https://avatars.githubusercontent.com/u/7935057?v=3","gravatar_id":"","url":"https://api.github.com/users/Hi-Angel","html_url":"https://github.com/Hi-Angel","followers_url":"https://api.github.com/users/Hi-Angel/followers","following_url":"https://api.github.com/users/Hi-Angel/following{/other_user}","gists_url":"https://api.github.com/users/Hi-Angel/gists{/gist_id}","starred_url":"https://api.github.com/users/Hi-Angel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hi-Angel/subscriptions","organizations_url":"https://api.github.com/users/Hi-Angel/orgs","repos_url":"https://api.github.com/users/Hi-Angel/repos","events_url":"https://api.github.com/users/Hi-Angel/events{/privacy}","received_events_url":"https://api.github.com/users/Hi-Angel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-01T23:36:09Z","updated_at":"2015-08-02T13:55:14Z","closed_at":null,"body":"I converted a LaTeX file with pandoc to an odt, next configured a style for the plain text, next saved style, next saved the file in both odt and docx formats for the future reference.\r\n\r\nA LaTeX test example is\r\n\r\n\t\\documentclass[a4paper]{article}\r\n\r\n\t\\begin{document}\r\n\r\n\t\\section{First Section}\r\n\t\\subsection{a subsection}\r\n\r\n\t Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec diam sapien, egestas nec nisl ac, venenatis aliquet erat. Aenean quis suscipit nisi. Donec convallis fringilla facilisis. Aenean porttitor est in arcu condimentum tempus. Nullam a mauris eu elit condimentum mollis ut sed ante. Etiam consequat non quam vel aliquam. Nulla faucibus, odio id dictum maximus, neque quam malesuada ante, a gravida neque enim ut nulla.\r\n\r\n\t\\end{document}\r\n\r\nAfter that I tried to convert the same LaTeX example to both of odt and docx with reference to the previously saved files to use their styles. Upon converted, the text never uses the style of a referred document.\r\n\r\nConvertation commands were:\r\n\r\n\t$ pandoc -f latex -t docx -o output.docx --reference-docx=\"reference.docx\" test.tex\r\n\t$ pandoc -f latex -t odt -o output.odt --reference-odt=\"reference.odt\" test.tex\r\n\r\n*Pandoc version is 1.15.0.6*\r\n"},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/127025875","html_url":"https://github.com/jgm/pandoc/issues/2341#issuecomment-127025875","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/2341","id":127025875,"user":{"login":"Hi-Angel","id":7935057,"avatar_url":"https://avatars.githubusercontent.com/u/7935057?v=3","gravatar_id":"","url":"https://api.github.com/users/Hi-Angel","html_url":"https://github.com/Hi-Angel","followers_url":"https://api.github.com/users/Hi-Angel/followers","following_url":"https://api.github.com/users/Hi-Angel/following{/other_user}","gists_url":"https://api.github.com/users/Hi-Angel/gists{/gist_id}","starred_url":"https://api.github.com/users/Hi-Angel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hi-Angel/subscriptions","organizations_url":"https://api.github.com/users/Hi-Angel/orgs","repos_url":"https://api.github.com/users/Hi-Angel/repos","events_url":"https://api.github.com/users/Hi-Angel/events{/privacy}","received_events_url":"https://api.github.com/users/Hi-Angel/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T13:55:14Z","updated_at":"2015-08-02T13:55:14Z","body":"I found what's wrong: paragraph in the file with styles declared like `text:style-name=\"DiplomParagraph\"`, but paragraph in the pandoc output file is `<text:p text:style-name=\"First_20_paragraph\">`. So it just didn't copied the paragraph style."}}