I have defined a custom command for the name of my project; e.g. \newcommand{\projectname}{Gizmo}. When I used the command in my document, I've found that I need to place a ~ after the command in order to provide a space between the command and the text that follows.  For example in my tex document,  The \projectname is on track.   Produces the following pdf output:  The Gizmois on track.   So I have to use a tilda as follows:  The \projectname~is on track.   Which now produces the correct pdf output:  The Gizmo is on track.   Would someone please clarify what is going on and what is the correct (best practice) for dealing with this situation.
I have a definition:  \newcommand{\arnold}{Arnold Schwarzenegger}   When I refer to it by:  \arnold is a   it is rendered as:   Arnold Schwarzeneggeris a    In order to have a space in front of "is" I would need to write  \arnold\ is a   Is there some other shorter way?
"Closed" (square) root symbol I found a cool trick in the  which allows the square root sign to be altered such that it &quot;closes&quot; over its contents. Here's an example:  (&quot;closed&quot; root on the left, normal one on the right) The way they do this is as follows: % New definition of square root: % it renames \sqrt as \oldsqrt \let\oldsqrt\sqrt % it defines the new \sqrt in terms of the old one \def\sqrt{\mathpalette\DHLhksqrt} \def\DHLhksqrt#1#2{% \setbox0=\hbox{$#1\oldsqrt{#2\,}$}\dimen0=\ht0 \advance\dimen0-0.2\ht0 \setbox2=\hbox{\vrule height\ht0 depth -\dimen0}% {\box0\lower0.4pt\box2}} The cool thing is that (as far as I've tested it) this works regardless of the math font and with pdftex as well as xetex. However what is not possible is mulitple roots, such as \sqrt[3]{a}. Those produce incorrect output when this &quot;trick&quot; is being used. So my question is, is somebody able to tweak this code so that it works for multiple roots as well? Are there any XSLT processing command line tools? My request is simple: Many times, there will be a question where some people feel like it should be closed. At the same time, I'll feel like it's a perfectly legit question, and it should therefore NOT be closed. Right now, I have to wait till it gets enough close votes (which it always does for some reason, as soon as 1 or 2 people vote to close, e/o else decides to vote as well) and then vote to re-open. How about, as soon as there's one vote to close, there should be an option to counter the close vote, something like "vote not to close" or whatever. This would then bring the "Vote to close" number down by one. Only when the vote to close outnumbers the vote not to close by 5, that's when a question is indeed closed. Any thoughts? How does evolving relate to CP? `http_proxy` not showing up with `printenv` on WSL I am having trouble getting pip to work behind a corporate firewall. I added the http and https proxies to my /etc/environment file, and if I execute echo "$HTTP_PROXY" it prints the right thing. However, if I execute env or printenv none of the proxy variables show up. I think this is why pip is failing too. Any insight would be appreciated. My /etc/environment file looks like  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" http_proxy="http://&lt;stuff&gt;.&lt;stuff&gt;.org:80" HTTP_PROXY="http://&lt;stuff&gt;.&lt;stuff&gt;.org:80" https_proxy="https://&lt;stuff&gt;.&lt;stuff&gt;.org:443" HTTPS_PROXY="https://&lt;stuff&gt;.&lt;stuff&gt;.org:443"   And I added the same lines to my ~/.bashrc file as well. Should 'using' directives be inside or outside the namespace? I have been running  over some C# code, and it keeps reporting that my using directives should be inside the namespace.  Is there a technical reason for putting the using directives inside instead of outside the namespace? How does a USB 2.0 Wall Charger negotiate current output? I'm trying to use a mobile phone charger for my projects, and want a high current output. I have read , however my measurements show something else.  is a link to the Battery Charging Specification Rev. 1.2.  1.4.7 Dedicated Charging Port A Dedicated Charging Port (DCP) is a downstream port on a device that outputs power through a USB connector, but is not capable of enumerating a downstream device. A DCP shall source \$I_{DCP}\$ at an average voltage of \$V_{CHG}\$. A DCP shall short the D+ line to the D- line.   I verified on three different chargers, and all read \$R_{DCP\_DAT}\$ as ~1.5 Ohms. Now, if there is a short between the D+ and D-, there is no detection on the charging port side, and the charger should always output \$I_{DCP}\$ {0.5 - 5.0A max} on the VBUS line - is this correct? I tested the current output of three chargers, but they are all completely different. Charger 1 - Nokia Rated current output: 1.3A Measured current output: 1.34A Charger 2 - Asus Rated current output: 2.0A Measured current output: 0.7A - 1.1A (unstable) Charger 3 - HTC Rated current output: 1A Measurent current output: 0.1A If all these dedicated charging ports have no current negotiation, how come only one charger is showing it's rated output? N.B All three chargers can charge a mobile phone in a reasonable amount of time. Is redirecting homepage to a page with keyword it's targeting helps in SEO? How to Recover truncate table in MySQL? I am getting the "wrong input table name" when use TRUNCATE as following:  TRUNCATE `stats`   The table should bans.  How to recover stats table?  I am using CentOS 6, and MySQL-Server. Im trying to craft a regex that only returns &lt;link&gt; tag hrefs  Why does this regex return all hrefs including &lt;a hrefs?       (?&lt;=&lt;link\s+.*?)href\s*=\s*[\'\"][^\'\"]+        &lt;link rel="stylesheet" rev="stylesheet"      href="idlecore-tidied.css?T_2_5_0_228" media="screen">     &lt;a href="anotherurl">Slash Boxes&lt;/a>   thank you How to use regex in String.contains() method in Java Edge won't connect to internet, Skype for business won't screen-share, Windows Store won't update apps after Windows 10 version 1809 installed I ran into a problem after upgrading Windows 10 October 2018 to version 1809. After the Windows update I noticed the following problems with Microsoft applications:   Microsoft Edge could no longer connect to the internet even though Chrome, Firefox and IE 11 still could. Skype for Business (formerly Lync) no longer allowed me to share my screen or view another person's shared screen. The Windows Store could not connect to the internet to update apps. The Microsoft Feedback portal could no longer connect to the internet.   How can I resolve these network issues that seemed to cooincide with an upgrade to Win10 ver 1809? Historical flight data outside of the USA? How to install software or upgrade from an old unsupported release? Arrays in Java and how they are stored in memory In the addon ArchiMesh there is a Japaneses curtain feature, but, it looks straight and does not have the fold that I want in it. Is there an addon that can do this for me? If not, how can I make a curtain (like in the images below)? I am giving a presentation and therefore I am using the  class. I have included some figures and it works, but there is no number after "Figure".  My code:  \documentclass{beamer}  \usepackage{graphicx} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{listings} \usepackage{xcolor} \usepackage{eso-pic} \usepackage{mathrsfs} \usepackage{url} \usepackage{amssymb} \usepackage{amsmath} \usepackage{multirow} \usepackage{hyperref} \usepackage{booktabs} \usepackage{wallpaper} \usepackage{bbm} \usepackage{cooltooltips} \usepackage{eso-pic} \usepackage{everyshi} \usepackage{calc} \usepackage{graphicx} \usepackage{ifthen} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{animate} \usepackage[singlespacing]{setspace} \usepackage[absolute,overlay]{textpos} \usepackage{enumerate} \usepackage{hyperref} \newenvironment{changemargin}[2]{%   \begin{list}{}{%     \setlength{\topsep}{0pt}%     \setlength{\leftmargin}{#1}%     \setlength{\rightmargin}{#2}%     \setlength{\listparindent}{\parindent}%     \setlength{\itemindent}{\parindent}%     \setlength{\parsep}{\parskip}%   }%   \item[]}{\end{list}}  \setbeamercolor{frametitle}{fg=red,bg=white}  \hypersetup{pdfpagemode=FullScreen} \renewcommand*{\UrlFont}{\normalfont}  \usetheme{Goettingen} \useinnertheme{circles} \beamertemplatenavigationsymbolsempty  \setbeamerfont{page number in head/foot}{size=\large} \setbeamertemplate{footline}[frame number]   %%% \begin{document}  \frame[plain]{ \titlepage }  \setbeamertemplate{background canvas}[default]  \frame{ \frametitle{}  \begin{figure} \begin{center} \includegraphics[scale=0.2]{varweakness} \caption{VaR as a quantile} \end{center} \end{figure}  }   \end{document}   Which gives the following frame with the figure:    (I am not sure what is causing the problem, therefore I did not delete any package.)  How can I get a number, e.g. Figure 1:? This problem is from Discrete Mathematics and its Applications  My question is on 9b. I know that the sign represents an element is a member of. (from book)  I know that the O with a slash across it is the empty set which &quot;is a special set that has no elements&quot;. From , I got that the empty set is a subset of all sets, meaning that every member of the empty set(nothing) is also a member of any other set. Based on all of this, for 9b, would {0} contain the empty set because it fundamentally has the elements that consist of the empty set(nothing) or does it physically have to have the empty set? How do I set the proper exposure for nighttime moon photos? All my attempts to get a good shot of the full moon with my DSLR result in an overexposed circle on a black background.  I've tried using a tripod, remote shutter release, low ISO, and long exposure, but nothing has worked so far.  What combination of ISO and exposure time that will produce good results?   I particularly want to catch a full moon with the reddish effect when it is close to the horizon. Partition of a set and Hall's theorem