Many (all?) document classes have a draft option. Some packages, such as microtype and hyperref, can detect whether or not the class is in draft mode, and take action accordingly.  How do packages know whether or not the document is in draft mode? I see that the memoir class has a draftdoc boolean that is set in draft mode, but this does not appear to be standard among other document classes.  For example:  \documentclass[draft]{article} % or any other class \begin{document} \ifdraftmode % pseudo-code. This I what I seek.   yes \else   no fi \end{document}   So, what I want to know is, what would I really test, rather than the fictitious ifdraftmode?
How can I test within a document, whether or not the initial  \documentclass[a4paper,11pt,twoside,fleqn,draft]{report}   includes the "draft" option? My naive attempt  \newif\ifmydraft \mydraftfalse \DeclareOption{draft}{\mydrafttrue}   does not work, and breaks a later \usepackage command.
The [ifs] tag is used for 2 separate things I think  might correspond to IBM's  according to this .   But currently out of the 27 question tagged with , most of it have to do with the 's "Internal Field Separator".  What should be done here?   create a new tag for "Internal Field Separator" e.g. , and keep the IBM's under ? create a new tag for "Integrated File System" e.g. , and keep the other one under ? just remove the  tag from the  questions? style=apa causes bibliography to fail $f \in L^1$, but $f \not\in L^p$ for all $p > 1$ "Find an $f \in [0,1]$ such that $f \in L^1$ but $f \not\in L^p$ for any $p &gt; 1$."  I've thought about doing something like $$f(x) = \frac{1}{x}$$ where $|f|^p = \frac{1}{x^p}$ doesn't converge when $p &gt; 1$.  But this function isn't itself in $L^1$.  Could someone please give me a hint for how to solve this problem?  I wish there were a situation where you had convergence on the closed half disc $[0,1]$ and divergence on $(1, \infty)$, rather than my current predicament where I have convergence on the open half-disc $[0, 1)$ and divergence on $[1, \infty)$. Would a 9V alkaline power a 12V DC motor? I am thinking about buying a 12V DC motor but want to keep everything, including the motor, battery, and power switch somewhat compact. I am not very knowledgeable about these kind of things and am curious whether or not my 12V DC motor would run at all on a 9V battery. Infinite Series $1+\frac12-\frac23+\frac14+\frac15-\frac26+\cdots$ Was given the following infinite sum in class as a question, while we were talking about Taylor series expansions of $\ln(1+x)$ and $\arctan(x)$: $$1+\frac12-\frac23+\frac14+\frac15-\frac26+\cdots$$  The question isn't homework or anything, just a thought tease. I tried for a long while but couldn't find anything remotely close. Thanks in advance for the help. The direction of static friction? In my book, the following are described to be the steps that one must follow if he wishes to find the direction of static friction force acting on an object:  &quot;(1) Draw the F.B.D(free body diagram) of the object in question with respect to the other object on which it is kept. (2) Include the pseudo force also, if the contact surface is accelerating. (3) Decide the direction of the resultant force and resolve this force into two components; one along the surface of contact and the other along the normal to this surface. (4) The direction of static friction is opposite to the component of the result force along the contact surface.&quot;  Firstly, are these steps correct? Will I always obtain the correct answer by following these steps? Secondly, consider the following problem:  In questions like these, when I try to find the resultant force and then assign the direction to static friction, I find that my answer is incorrect! Are there some other steps to follow when I know that the object is definitely accelerating in one direction or another? Edit 1: I approached the above question by doing exactly what my book suggests; first, I identified all the forces acting on the smaller block, being the normal force applied by the block A and its weight mg downward. Adding these two forces, I get another force that actually acts on the body like so:  I wonder if I'm not supposed to take either of the contact forces into consideration when drawing the F.B.D to figure out the direction of static friction acting on the body. Also, are there other steps for finding the direction of kinetic friction? Edit 2: From Judge's answer, I have been able to figure out my mistake, it being that I completely missed step (3) and didn't resolve the resultant force into components! Sheesh. Sorry! Much thanks in advance! :) Regards. Linear vs nonlinear differential equation How to distinguish linear differential equations from nonlinear ones? I know, that e.g.: $$ y''-2y = \ln(x) $$ is linear, but $$ 3+ yy'= x - y $$ is nonlinear. Why? Use dynamic variable names in JavaScript What is the correct formula for gravitational time dilation for a satellite in a circular orbit? In the Wikipedia article on  I see two formulae for the gravitational time dilation. One contains $\sqrt{1 - r_0/r}$ but the other $\sqrt{1 - 1.5 r_0/r}$. What formula should I use to calculate the time dilation due to gravity inside a satellite? The speed induced time dilation is of course just special relativity.  With the first of these two formulas I can perfectly reproduce the graphs on time dilation as a function of $r$,  I find that the two contributions to time dilation cancel at 1.5 Earth radii, all numbers are OK... But why not the second formula? Taking Seats on a Plane How do I get %LocalAppData% in c#? "Agree" vs. "concur" How do I set up SSH so I don't have to type my password when connecting to a host? If I run  export TEST=foo echo $TEST   It outputs foo.  If I run  TEST=foo echo $TEST   It does not. How can I get this functionality without using export or a script? I have a laptop with Ubuntu installed as the only OS. I also have a USB stick with a Windows 7 installation on it. I want to install Windows from the USB stick on my laptop but when I try to restart the laptop to get access to BIOS, I can't seem to find the command for it, its like it skips everything and just says Ubuntu and then takes me to the login screen.  How do I change the boot priority to USB in Ubuntu? Tag score calculation wrong in Android App I checked yesterday and today the new homepage in the Android app. Very surprised I saw that I would almost reach a silver tag badge, that confused be because I always take a look on possible badges I can get. However I compared the score with the website and I got a total different results. See this two screenshots: I'm getting an error in WSL while trying to use .  I followed all the install steps successfully on Windows 10 x64 using the steps at , then Ubuntu for Windows with GitHub desktop .  But I'm blocked at the latest steps.  It's where I trying to download or train the model in Windows. Using for example the Ubuntu Linux prompt, I navigate manually to the appropriate place and type a following command like the one below (I also tried in su mode)  bash pretrained_models/download_pix2pix_model.sh facades_label2photo   I get an immediate error, always the same, similar to these:  root@Azure:/mnt/c/Users/vincent/Downloads/vision/pytorch-CycleGAN-and-pix2pix# bash pretrained_models/download_pix2pix_model.sh facades_label2photo pretrained_models/download_pix2pix_model.sh: line 2: $'\r': command not found Note: available models are edges2shoes, sat2map, and facades_label2photo pretrained_models/download_pix2pix_model.sh: line 4: $'\r': command not found ]pecified [facades_label2photo pretrained_models/download_pix2pix_model.sh: line 6: $'\r': command not found mkdir: cannot create directory ‘./checkpoints/facades_label2photo\r_pretrained\r’: No such file or directory pretrained_models/download_pix2pix_model.sh: line 10: $'\r': command not found WARNING: timestamping does nothing in combination with -O. See the manual for details.  : No such file or directoryhphoto pretrained_models/download_pix2pix_model.sh: line 12: $'\r': command not found pretrained_models/download_pix2pix_model.sh: line 13: $'\r': command not found   Any idea? A question about special relativity theory We have two sets: set No.1 and set No.2 as in this picture:   The observer is fixed to set No.1 . He sees set No.1 motionless and observes set No. 2 approaching with velocity 100,000 m/s.   Each set has one lamp and two, so called, touchers. Each set is designed so that if both touchers are touched simultaneously the lamp is turned on otherwise it remains off.  Set No. 2 is approaching set No. 1 so that each toucher in each set will be touched twice by the touchers of the other set.  The observer on set No. 1 observes the distance between touchers in each set 10 meters. He thinks the lamps on set No. 1 will be turned on because touchers in it will be touched simultaneously.  My question: Will the lamp on set No. 2 be turned on? How if an electrical current flowing from one toucher in a set to the other proves simultaneous touching? How to both display a command line's output on console and save the output into a text file? How can I run sudo apt-get install by BOTH seeing the process of installation (long in my case) and saving its output into a text file ? Why Does the Transaction Log Keep Growing or Run Out of Space? This one seems to be a common question in most forums and all over the web, it is asked here in many formats that typically sound like this:  In SQL Server -  What are some reasons the transaction log grows so large? Why is my log file so big? What are some ways to prevent this problem from occurring? What do I do when I get myself on track with the underlying cause and want to put my transaction log file to a healthy size?