{"action":"created","issue":{"url":"https://api.github.com/repos/manubot/rootstock/issues/177","repository_url":"https://api.github.com/repos/manubot/rootstock","labels_url":"https://api.github.com/repos/manubot/rootstock/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/manubot/rootstock/issues/177/comments","events_url":"https://api.github.com/repos/manubot/rootstock/issues/177/events","html_url":"https://github.com/manubot/rootstock/issues/177","id":407515867,"node_id":"MDU6SXNzdWU0MDc1MTU4Njc=","number":177,"title":"Render algorithm pseudocode","user":{"login":"zietzm","id":7230303,"node_id":"MDQ6VXNlcjcyMzAzMDM=","avatar_url":"https://avatars1.githubusercontent.com/u/7230303?v=4","gravatar_id":"","url":"https://api.github.com/users/zietzm","html_url":"https://github.com/zietzm","followers_url":"https://api.github.com/users/zietzm/followers","following_url":"https://api.github.com/users/zietzm/following{/other_user}","gists_url":"https://api.github.com/users/zietzm/gists{/gist_id}","starred_url":"https://api.github.com/users/zietzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zietzm/subscriptions","organizations_url":"https://api.github.com/users/zietzm/orgs","repos_url":"https://api.github.com/users/zietzm/repos","events_url":"https://api.github.com/users/zietzm/events{/privacy}","received_events_url":"https://api.github.com/users/zietzm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2019-02-07T02:18:42Z","updated_at":"2019-02-15T16:33:26Z","closed_at":null,"author_association":"NONE","body":"I am trying to insert pseudocode into a manubot manuscript. As per [this example](https://tex.stackexchange.com/a/452565), it should be fairly straightforward. Unfortunately, I can't seem to be able to render it as in the example.\r\n\r\nI added the pseudocode from the example in the above link and I added `algorithm2e.sty` to the `content` directory. Then I tried a number of things, none of which made the pseudocode render:\r\n1. Added the following two lines to `content/metadata.yml`\r\n```yml\r\nheader-includes:\r\n  - \\usepackage[ruled,vlined,linesnumbered]{algorithm2e}\r\n```\r\n2. Surrounded the pseudocode with `$$` on either side.\r\n3. Surrounded the `metadata.yml` `usepackage` statement with `$$`\r\n4. Created a new file called `header.txt` which contained only the `usepackage` statement from above and I added a `--header-includes` option to link to this file in `build/build.sh`. \r\n5. Moved `algorithm2e.sty` from `content` to the `build` directory.\r\n\r\nNone of those worked. When I run `sh build/build.sh`, I get the following issues:\r\n```\r\nExporting HTML manuscript\r\n[INFO] Could not load include file 'algorithm2e.sty' at line 1 column 53\r\n[INFO] Could not load include file 'algorithm2e.sty' at line 1 column 53\r\n[INFO] Not rendering RawBlock (Format \"tex\") \"\\\\usepackage[ruled,vlined,linesnumbered]{algorithm2e}\"\r\n[INFO] Not rendering RawBlock (Format \"tex\") \"\\\\begin{algorithm}[H]\\n\\\\DontPrintSemicolon\\n\\\\SetAlgoLined\\n\\\\KwResult{Write here the result}\\n\\\\SetKwInOut{Input}{Input}\\\\SetKwInOut{Output}{Output}\\n\\\\Input{Write here the input}\\n\\\\Output{Write here the output}\\n\\\\BlankLine\\n\\\\While{While condition}{\\n    instructions\\\\;\\n    \\\\eIf{condition}{\\n        instructions1\\\\;\\n        instructions2\\\\;\\n    }{\\n        instructions3\\\\;\\n    }\\n}\\n\\\\caption{While loop with If/Else condition}\\n\\\\end{algorithm}\"\r\nExporting PDF manuscript\r\n```\r\nI should note, my machine has MiKTeX installed and I have installed the `algorithm2e` package (in addition to putting the file itself in the local directories).\r\n\r\nIs there a general method or recommended best practice for using LaTeX packages in Manubot?"},"comment":{"url":"https://api.github.com/repos/manubot/rootstock/issues/comments/464113719","html_url":"https://github.com/manubot/rootstock/issues/177#issuecomment-464113719","issue_url":"https://api.github.com/repos/manubot/rootstock/issues/177","id":464113719,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NDExMzcxOQ==","user":{"login":"slochower","id":5393995,"node_id":"MDQ6VXNlcjUzOTM5OTU=","avatar_url":"https://avatars1.githubusercontent.com/u/5393995?v=4","gravatar_id":"","url":"https://api.github.com/users/slochower","html_url":"https://github.com/slochower","followers_url":"https://api.github.com/users/slochower/followers","following_url":"https://api.github.com/users/slochower/following{/other_user}","gists_url":"https://api.github.com/users/slochower/gists{/gist_id}","starred_url":"https://api.github.com/users/slochower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slochower/subscriptions","organizations_url":"https://api.github.com/users/slochower/orgs","repos_url":"https://api.github.com/users/slochower/repos","events_url":"https://api.github.com/users/slochower/events{/privacy}","received_events_url":"https://api.github.com/users/slochower/received_events","type":"User","site_admin":false},"created_at":"2019-02-15T16:33:26Z","updated_at":"2019-02-15T16:33:26Z","author_association":"COLLABORATOR","body":"Have you compared MathJax and KaTeX? I'm not sure what their relative advantages/disadvantages are at this point."}}
{"actor":{"display_login":"slochower"}}