{"action":"created","issue":{"url":"https://api.github.com/repos/dbmrq/vim-bucky/issues/4","repository_url":"https://api.github.com/repos/dbmrq/vim-bucky","labels_url":"https://api.github.com/repos/dbmrq/vim-bucky/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dbmrq/vim-bucky/issues/4/comments","events_url":"https://api.github.com/repos/dbmrq/vim-bucky/issues/4/events","html_url":"https://github.com/dbmrq/vim-bucky/issues/4","id":354319853,"node_id":"MDU6SXNzdWUzNTQzMTk4NTM=","number":4,"title":"Indent display equation within a sentence","user":{"login":"kiryph","id":371756,"node_id":"MDQ6VXNlcjM3MTc1Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/371756?v=4","gravatar_id":"","url":"https://api.github.com/users/kiryph","html_url":"https://github.com/kiryph","followers_url":"https://api.github.com/users/kiryph/followers","following_url":"https://api.github.com/users/kiryph/following{/other_user}","gists_url":"https://api.github.com/users/kiryph/gists{/gist_id}","starred_url":"https://api.github.com/users/kiryph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiryph/subscriptions","organizations_url":"https://api.github.com/users/kiryph/orgs","repos_url":"https://api.github.com/users/kiryph/repos","events_url":"https://api.github.com/users/kiryph/events{/privacy}","received_events_url":"https://api.github.com/users/kiryph/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-27T13:30:30Z","updated_at":"2018-08-29T08:52:58Z","closed_at":"2018-08-28T21:41:51Z","author_association":"NONE","body":"Equations are part of sentences. For example, see this screenshot from Feller on *Probability Theory*:\r\n\r\n![screen shot 2018-08-27 at 15 19 23](https://user-images.githubusercontent.com/371756/44661980-a89d2300-aa0c-11e8-8e86-0cd500920497.png)\r\n\r\nThis is true for all books, articles, ... which use equations.\r\n\r\nThe tex source code could look like\r\n ```tex\r\nThus\r\n   \\begin{equation*}\r\n     P\\{A_1 \\cup A_2\\} = \\frac{1}{2}+\\frac{1}{2}-\\frac{1}{4}=\\frac{3}{4}.\r\n   \\end{equation*}\r\n\r\nThe probability $P\\{A_1 \\cup A_2\\cup \\cdots A_n\\}$ of the realization of at\r\n   least one among $n$ events can be computed by a formula analogous to (7.4),\r\n   derived in IV,1.\r\nHere we note only that the argument leading to (7.3) applies to any number of\r\n   terms.\r\nThus \\emph{for arbitrary events $A_1, A_2, \\ldots$ the inequality}\r\n   \\begin{equation}\r\n     P\\{A_1 \\cup A_2\\cup \\cdots \\} \\leq P\\{A_1}+P\\{A_2}+\\ldots\r\n   \\end{equation}\r\n   holds.\r\nIn the special case where the events $A_1, A_2, \\ldots$ are mutually\r\n```\r\n\r\n### Current Behavior\r\n```tex\r\nThus\r\n\\begin{equation*}\r\n   P\\{A_1 \\cup A_2\\} = \\frac{1}{2}+\\frac{1}{2}-\\frac{1}{4}=\\frac{3}{4}.\r\n\\end{equation*}\r\n\r\nThe probability $P\\{A_1 \\cup A_2\\cup \\cdots A_n\\}$ of the realization of at\r\n   least one among $n$  events can be computed by a formula analogous to (7.4),\r\n   derived in IV,1.\r\nHere we note only that the argument leading to (7.3) applies to any number of\r\n   terms.\r\nThus \\emph{for arbitrary events $A_1, A_2, \\ldots$ the inequality}\r\n\\begin{equation}\r\n   P\\{A_1 \\cup A_2\\cup \\cdots \\} \\leq P\\{A_1}+P\\{A_2}+\\ldots\r\n\\end{equation}\r\nholds.\r\nIn the special case where the events $A_1, A_2, \\ldots$ are mutually\r\n```\r\nAny chance, vim-bucky could also handle these?\r\nI guess the more difficult one is when the period is within the math environment."},"comment":{"url":"https://api.github.com/repos/dbmrq/vim-bucky/issues/comments/416877134","html_url":"https://github.com/dbmrq/vim-bucky/issues/4#issuecomment-416877134","issue_url":"https://api.github.com/repos/dbmrq/vim-bucky/issues/4","id":416877134,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjg3NzEzNA==","user":{"login":"kiryph","id":371756,"node_id":"MDQ6VXNlcjM3MTc1Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/371756?v=4","gravatar_id":"","url":"https://api.github.com/users/kiryph","html_url":"https://github.com/kiryph","followers_url":"https://api.github.com/users/kiryph/followers","following_url":"https://api.github.com/users/kiryph/following{/other_user}","gists_url":"https://api.github.com/users/kiryph/gists{/gist_id}","starred_url":"https://api.github.com/users/kiryph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiryph/subscriptions","organizations_url":"https://api.github.com/users/kiryph/orgs","repos_url":"https://api.github.com/users/kiryph/repos","events_url":"https://api.github.com/users/kiryph/events{/privacy}","received_events_url":"https://api.github.com/users/kiryph/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T08:52:58Z","updated_at":"2018-08-29T08:52:58Z","author_association":"NONE","body":"A plugin which is used for formatting code might need a few options to fulfil different tastes 😄.\r\nOf course, keeping the number of options short is very advisable.\r\n\r\n### Linewise copy (with custom text-objects)\r\nOne reason why I place `begin`/`end` on separate lines is that I can copy the equation linewise more easily. Of course, it would also be possible to copy characterwise, most conveniently with a dedicated text objects e.g. provided by vimtex `yae` or vim-sandwich `yase`. Since I prefer to copy linewise I help myself with `Vaey`. Unfortunately, vim-sandwich switches back to characterwise visual mode when typing `Vase` 😒.\r\n\r\nNot all plugins which define latex text object for environments are doing it the same way as vimtex or vim-sandwich and do it actually as I prefer it:\r\n\r\n- [rbonvall/vim-textobj-latex](https://github.com/rbonvall/vim-textobj-latex/blob/master/doc/textobj-latex.txt#L67-L76):\r\n  ```\r\n\t\t\t\t\t\t*textobj-latex-environment*\r\n  ae\t\t\t\t\t\t*textobj-latex-ae*\r\n  ie\t\t\t\t\t\t*textobj-latex-ie*\r\n\t\t\tText objects for LaTeX environments.\r\n\r\n\t\t\tText objects for environments assume that both the\r\n\t\t\t\\begin{...} and \\end{...} delimiters are on lines on\r\n\t\t\ttheir own.  By following this simple convention it is\r\n\t\t\tmuch easier to support environments that accept\r\n\t\t\tparameters.\r\n  ```\r\n\r\n- [gibiansky/vim-latex-objects](https://github.com/gibiansky/vim-latex-objects)\r\n  > ae: around environment. Like ie, but also selects the lines with \\begin and \\end on them.\r\n\r\n### Should environments within a sentence indented?\r\nI see your point regarding 'measurable semantic units' and new block.\r\nHowever, I would also argue your inline lists should not be too long. If the individual items become long, I would consider starting a new sentence for each item. Otherwise the sentence might become as long as a single paragraph.\r\n\r\n> The author has provided three reasons which will be discussed in the following individually.\r\n(i) first reason with discussion which consists of several sentences.\r\n(ii) second (also several sentences)\r\n(iii) third (also several sentences)\r\n\r\nI like the new option 😄 which allows the writer/user to decide how to handle this.\r\n\r\nAlso thanks for your interest in and time making your plugin useful for others as well  💯x 👍.  "}}
{"actor":{"display_login":"kiryph"}}