I am using the algpseudocode and the algorithm2e package, and want the lines down below the indents like below (the example on the algorithm ). Does anyone know how to achieve this easily?
I am using the algorithmic package to typeset an algorithm. I would like to have connecting lines between the beginning and end of a loop or conditional like in the algorithm2e package. Is there an easy way to accomplish this, or am I better off switching to algorithm2e?
What is the use of percent signs (%) at the end of lines? (Why is my macro creating extra space?) I see that the code in many packages and examples contains percent signs % at the end of (many) lines. What are they used for? Do they affect the parsing of those lines? Disable UpdateOrchestrator Reboot task Why not introduce a donate button in Stack Exchange sites? Removing and adding permission using numerical notation on the same line How can I modify the advanced search form when my hook runs too early? I'm using  to modify the content of the form on the search page &mdash; I want to remove the "phrase" and "not" fields, and restrict the "only of the types" checkboxes to a hand selected list of types.  I have the following code, which is being called and which I think should work:  function MYMODULE_form_search_form_alter(&amp;$form, &amp;$form_state, $form_id) {     unset($form['basic']);     unset($form['advanced']['keywords']['phrase']);     unset($form['advanced']['keywords']['negative']);     unset($form['advanced']['type']);     $form['advanced']['type'] = array(         '#type' =&gt; 'checkboxes',         '#title' =&gt; t('Only of the type(s)'),         '#options' =&gt; array(             'blog' =&gt; 'Blog entry',             'event' =&gt; 'Event',             'news' =&gt; 'News article'         )     );     // print_r($form);     // die; }   Except  gets to the search form after my form alter hook runs, so I don't get a chance to modify any of the form elements that it's adding.  I'm running Drupal 7.22.  How can I modify the advanced search form when my module hook runs before the hook that defines the advanced search form? Injection from $\mathbb{N}\to\{0,1\}$ to the set of all monotonic decreasing functions from $\mathbb{N}\to\mathbb{Z}$ How to run scripts on start up? How can I run scripts automatically when Ubuntu starts up so I don't have to run them manually after startup? The derivation of the Hamilton-Jacobi equation using canonical transformations is typically done involving a type-2 generating function.  Is it possible to use a another type of generating function, namely type 1, 3 or 4? Say there are $m+n$ elements split into two groups ($m$ and $n$). The variance of the first group is $\sigma_m^2$ and the variance of the second group is $\sigma^2_n$. The elements themselves are assumed to be unknown but I know the means $\mu_m$ and $\mu_n$.  Is there a way to calculate the combined variance $\sigma^2_{(m+n)}$?   The variance doesn't have to be unbiased so denominator is $(m+n)$ and not $(m+n-1)$. Why use static_cast(x) instead of (int)x? I've heard that the static_cast function should be preferred to C-style or simple function-style casting.  Is this true?  Why? How fast does electricity flow? Getting filesystem path of class being executed Absolute zero and Heisenberg uncertainty principle I got to read Volume I of Feynmann's lectures. It said that at absolute zero, molecular motion doesn't cease at all, because if that happens, we will be able to make precise determination of position and momentum of the atom. We do know that Heisenberg uncertainty principle holds for microscopic particles in motion. But what then is wrong to consider that all molecular motion ceases at absolute zero? In other words, does the uncertainty principle not hold when there is no motion?  Need some help! How to find $\sum_{i=1}^n\left\lfloor i\sqrt{2}\right\rfloor$ A001951 A Beatty sequence: a(n) = floor(n*sqrt(2)). [A001951 A Beatty sequence: a(n) = floor(n*sqrt(2)).][1]  If $n = 5$ then  $$\left\lfloor1\sqrt{2}\right\rfloor+ \left\lfloor2\sqrt{2}\right\rfloor + \left\lfloor3\sqrt{2}\right\rfloor +\left\lfloor4 \sqrt{2}\right\rfloor+ \left\lfloor5\sqrt{2}\right\rfloor = 1+2+4+5+7 = 19$$  Sequence from $1$ to $20$ is:  $S=\{1,2,4,5,7,8,9,11,12,14,15,16,18,19,21,22,24,25,26,28\}$  I want to find answer for $10^{100} n$? Looking for solo (one person) RPGs - do they exist? I am looking to find out if solo RPGs exist, and which you'd recommend.  I do not mean "one-on-one" 1 player + 1 GM games. I really mean "1 person."  Update: After receiving two (fine, up-voted) answers that indicate Choose Your Own Adventure solutions (which rocks with nostalgia), I should add that I'm not looking for simple linear decision tree gaming. A counterexample: I've got my own little creative-writing mini-game where I write out a story, but once every 5 sentences a series of dice-rolls forces my written sentence into something else, and I have to adapt as writer. Not really an RPG, but also non-linear. Character vs Charm - Pronunciation Is there a rule to understand how the group "Cha" has to be pronounced?  "Character" sounds with a hard first syllable, while "Charm" sound softer, but I don't find how to tell which sound to use before earing someone saying the word. It could be because of the double consonant "rm" vs "ra"? Or is it just a matter of knowing the rule for every single word?  EDIT: More specifically, let's talk about UK English pronunciation. Infinite coproduct of abelian groups One can see on every text (book, lesson, comments) that a direct sum/coproduct of abelian groups is the same as a finite product but in the infinite case, the direct sum/coproduct is only a subgroup of the product.  Why does an element in an infinite direct sum only have finitely many components different from the neutral elements?  I don't see where the "finite" comes from when I look at the universal property.  Also, in another situation, a condition of "finiteness" appears and I think that is because of the same structure: a freely generated group, vectors space, algebra etc... has elements that are finite product/sum of generating elements. Because, if one really wants an infinite "sum" (or sequence) one may just take a formal serie. That is a ring, hence also an abelian group. C# - how can I get owner's name for a Mutex I have a shared mutex between 2 applications. I want to create an administration console that shows the current owner's name of the mutex.  How can I get the application name that currently owns the Mutex? How do I remove any Ubuntu brand and trademark from my Ubuntu install? I am running Ubuntu 17.10 and I would like to build a completely de-branded ISO of it. This means not just dropping the Ubuntu name from /etc/lsb_release but also deleting references in the text of the installation program, in the "about this computer" screen and so on.  I've already checked other questions but I do not consider them duplicate because:    is very old and it just turned into a bunch of "try this tool" suggestions  is also old and suggests a tool called relinux that hasn't seen updates in years  does mention APT packages (and I know how this works) but not trademarks   Therefore my questions are:   Starting from a stock Ubuntu 17.10 (or an official derivative), how can I remove references to the Ubuntu trademark and logo? What exact packages do I need to uninstall? Are there images I need to replace? Are there files I need to edit other than /etc/lsb_release?   Please note that I am not interested in removing other names such as Firefox. I am only interested in the name of the distro. How do I choose between "as to", "on", "of", and "about"?