{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/pandoc/issues/3975","repository_url":"https://api.github.com/repos/jgm/pandoc","labels_url":"https://api.github.com/repos/jgm/pandoc/issues/3975/labels{/name}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/3975/comments","events_url":"https://api.github.com/repos/jgm/pandoc/issues/3975/events","html_url":"https://github.com/jgm/pandoc/issues/3975","id":265698047,"number":3975,"title":"memoir documentclass ignoring geometry when including an image","user":{"login":"ubitux","id":34467,"avatar_url":"https://avatars3.githubusercontent.com/u/34467?v=4","gravatar_id":"","url":"https://api.github.com/users/ubitux","html_url":"https://github.com/ubitux","followers_url":"https://api.github.com/users/ubitux/followers","following_url":"https://api.github.com/users/ubitux/following{/other_user}","gists_url":"https://api.github.com/users/ubitux/gists{/gist_id}","starred_url":"https://api.github.com/users/ubitux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubitux/subscriptions","organizations_url":"https://api.github.com/users/ubitux/orgs","repos_url":"https://api.github.com/users/ubitux/repos","events_url":"https://api.github.com/users/ubitux/events{/privacy}","received_events_url":"https://api.github.com/users/ubitux/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-10-16T09:12:57Z","updated_at":"2017-10-16T17:47:44Z","closed_at":"2017-10-16T16:05:32Z","author_association":"NONE","body":"Steps to reproduce:\r\n\r\n- create a small 100x100 image: `convert -size 100x100 canvas:khaki img.png` (`convert` is from the `ImageMagick` project but you can use any other tool)\r\n- create a markdown document with that image: `echo '![Hello World](img.png)' > bug.mkd`\r\n- try to generate a 5x8 inches memoir from this: `pandoc -V geometry:paperwidth=5in -V geometry:paperheight=8in -V documentclass=memoir bug.mkd -o bug.pdf`\r\n\r\nOpening `bug.pdf` will show a document much larger than expected (even though the image is pretty small).\r\n\r\nThis is not reproducible with **text only** or `documentclass=book`, revealing that something is probably wrong in the handling of dimensions in the memoir documentclass when inserting images.\r\n\r\n```\r\n% pandoc --version\r\npandoc 1.19.2.1\r\nCompiled with pandoc-types 1.17.2, texmath 0.9.4.4, skylighting 0.1.1.5\r\nDefault user data directory: /home/ux/.pandoc\r\nCopyright (C) 2006-2016 John MacFarlane\r\nWeb:  http://pandoc.org\r\nThis is free software; see the source for copying conditions.\r\nThere is no warranty, not even for merchantability or fitness\r\nfor a particular purpose.\r\n```"},"comment":{"url":"https://api.github.com/repos/jgm/pandoc/issues/comments/336968078","html_url":"https://github.com/jgm/pandoc/issues/3975#issuecomment-336968078","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/3975","id":336968078,"user":{"login":"jgm","id":3044,"avatar_url":"https://avatars0.githubusercontent.com/u/3044?v=4","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"created_at":"2017-10-16T17:47:44Z","updated_at":"2017-10-16T17:47:44Z","author_association":"OWNER","body":"+++ Clément Bœsch [Oct 16 17 16:50 ]:\n>     My policy is this: if you use pandoc defaults (normal\n>     documentclasses), things will work as documented. If you use a\n>     special documentclass, then it's your responsibility to figure out\n>     what it requires.\n>\n>   But memoir is in the \"normal\" documentclasses that pandoc documents.\n\nIt's mentioned in a couple places, yes.  But the fact is\nthat there are many, many tricky issues getting memoir to\nwork with various other packages.  I think trying to\ndocument them all in pandoc's documentation is asking too\nmuch.  People who know enough to specify a memoir\ndocumentclass should also know how to search for the\nrelevant documentation.\n\n"}}
{"actor":{"display_login":"jgm"}}