{"action":"created","issue":{"url":"https://api.github.com/repos/jkuczm/MathematicaCellsToTeX/issues/4","labels_url":"https://api.github.com/repos/jkuczm/MathematicaCellsToTeX/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jkuczm/MathematicaCellsToTeX/issues/4/comments","events_url":"https://api.github.com/repos/jkuczm/MathematicaCellsToTeX/issues/4/events","html_url":"https://github.com/jkuczm/MathematicaCellsToTeX/issues/4","id":114545219,"number":4,"title":"Problem generating TeX for Mathematica Cells that contain internal newlines/returns","user":{"login":"jschrier","id":7826295,"avatar_url":"https://avatars.githubusercontent.com/u/7826295?v=3","gravatar_id":"","url":"https://api.github.com/users/jschrier","html_url":"https://github.com/jschrier","followers_url":"https://api.github.com/users/jschrier/followers","following_url":"https://api.github.com/users/jschrier/following{/other_user}","gists_url":"https://api.github.com/users/jschrier/gists{/gist_id}","starred_url":"https://api.github.com/users/jschrier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschrier/subscriptions","organizations_url":"https://api.github.com/users/jschrier/orgs","repos_url":"https://api.github.com/users/jschrier/repos","events_url":"https://api.github.com/users/jschrier/events{/privacy}","received_events_url":"https://api.github.com/users/jschrier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jkuczm/MathematicaCellsToTeX/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jkuczm/MathematicaCellsToTeX/milestones/4","html_url":"https://github.com/jkuczm/MathematicaCellsToTeX/milestones/0.1.3","labels_url":"https://api.github.com/repos/jkuczm/MathematicaCellsToTeX/milestones/4/labels","id":1390628,"number":4,"title":"0.1.3","description":null,"creator":{"login":"jkuczm","id":4525409,"avatar_url":"https://avatars.githubusercontent.com/u/4525409?v=3","gravatar_id":"","url":"https://api.github.com/users/jkuczm","html_url":"https://github.com/jkuczm","followers_url":"https://api.github.com/users/jkuczm/followers","following_url":"https://api.github.com/users/jkuczm/following{/other_user}","gists_url":"https://api.github.com/users/jkuczm/gists{/gist_id}","starred_url":"https://api.github.com/users/jkuczm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkuczm/subscriptions","organizations_url":"https://api.github.com/users/jkuczm/orgs","repos_url":"https://api.github.com/users/jkuczm/repos","events_url":"https://api.github.com/users/jkuczm/events{/privacy}","received_events_url":"https://api.github.com/users/jkuczm/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"closed","created_at":"2015-11-03T09:06:53Z","updated_at":"2015-11-03T15:36:54Z","due_on":null,"closed_at":"2015-11-03T15:36:54Z"},"comments":6,"created_at":"2015-11-02T08:07:50Z","updated_at":"2015-11-03T16:42:29Z","closed_at":"2015-11-03T15:30:29Z","body":"[[ This is a great package—thanks for developing it; it is making a book project of mine much more tractable/better than it would have been ]]\r\n\r\nI'm encountering a CellToTeX problem, that occurs when I try to generate TeX for cells that contain equations in which a function has an internal new-line.  Mathematica ignores these, and I have included them to try to make the code more readable,, but CellToTeX seems to throw an exception\r\n\r\nLet me show you an example:\r\n```\r\npsi1DPIB[n_, x_, L_] := Sqrt[2/L]*Sin[n*Pi*x/L];\r\ng1 = Plot[\r\n  {psi1DPIB[1, x, L], psi1DPIB[2, x, L]},\r\n  {x, 0, L}, AxesLabel -> {\"x\", \"\\[Psi]\"}\r\n  ]\r\n```\r\n(note the newline between the entries within the `Plot[]` function) throws the following exception\r\n```\r\nCellsToTeXException::invalid: Following elements of type Boxes are invalid: RowBox[{g1,=,RowBox[{Plot,[,\r\n,RowBox[{RowBox[{<<3>>}],,,\r\n,RowBox[{<<3>>}],,,RowBox[{<<3>>}]}],\r\n,]}]}]. Exception occurred in toInputFormProcessor[{<<1>>}].\r\n```\r\nand fails to render the text block.  On the other hand, afterremoving the internal newlines from inside the `Plot[]` function,\r\n```\r\npsi1DPIB[n_, x_, L_] := Sqrt[2/L]*Sin[n*Pi*x/L];\r\ng1 = Plot[{psi1DPIB[1, x, L], psi1DPIB[2, x, L]}, {x, 0, L}, AxesLabel -> {\"x\", \"\\[Psi]\"} ]\r\n```\r\neverything works fine. \r\n\r\nIs this an easy fix?  I am running this on Mathematica 10.3.0.0\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jkuczm/MathematicaCellsToTeX/issues/comments/153410869","html_url":"https://github.com/jkuczm/MathematicaCellsToTeX/issues/4#issuecomment-153410869","issue_url":"https://api.github.com/repos/jkuczm/MathematicaCellsToTeX/issues/4","id":153410869,"user":{"login":"jschrier","id":7826295,"avatar_url":"https://avatars.githubusercontent.com/u/7826295?v=3","gravatar_id":"","url":"https://api.github.com/users/jschrier","html_url":"https://github.com/jschrier","followers_url":"https://api.github.com/users/jschrier/followers","following_url":"https://api.github.com/users/jschrier/following{/other_user}","gists_url":"https://api.github.com/users/jschrier/gists{/gist_id}","starred_url":"https://api.github.com/users/jschrier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschrier/subscriptions","organizations_url":"https://api.github.com/users/jschrier/orgs","repos_url":"https://api.github.com/users/jschrier/repos","events_url":"https://api.github.com/users/jschrier/events{/privacy}","received_events_url":"https://api.github.com/users/jschrier/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T16:42:29Z","updated_at":"2015-11-03T16:42:29Z","body":"@jkuczm  Thanks!"}}