I am currently using Texworks + Linux. To compile the PDF I hit pdflatex + bibtex + pdflatex + pdflatex. Is there a way so that I create a new typeset that does that in one click?  Found the easy answer:  1- add a new typeset tool, (Edit > Preferences > Typesetting > Add Processing tools)    2- And use Browse to add your simple bash code:  #!/bin/bash                                                                   filename=$1                                                                  filename_bib=$2                                                               pdflatex $filename                                                           bibtex $filename_bib                                                         pdflatex $filename                                                           pdflatex $filename
A lot of people write makefiles that say something like  paper.pdf: paper.tex         pdflatex paper         bibtex paper         pdflatex paper         pdflatex paper   To handle re-running TeX to get new/changed references and so forth. Is there a better way to do this?
Why do C# and Java bother with the "new" operator? Why does the  exist in modern languages such as C# and Java? Is it purely a self documenting code feature, or does it serve any actual purpose?  For instance the following example:  Class1 obj = new Class1();  Class1 foo() {     return new Class1(); }   Is as easy to read as the more Pythonesque way of writing it:  Class1 obj = Class1();  Class1 foo() {     return Class1(); }   EDIT:  hit the nail on the head with the clarification of the question: Why did they choose this syntax? Let $A$ be an infinite set. For each $a \in A$, let $x_a$ be a non-negative number. Let the value of the series $\sum_{a \in A} x_a$ be the value of the supremum of its finite partial sums, i.e.:      $$\sum_{a \in A} x_a = \sup_{n \geq 0} \sup_{(a_1, \ldots , a_n) \subset A} \left(x_{a_1} + x_{a_1} + \ldots + x_{a_n}\right)$$   (Supremum is well defined even when its value is infinite)       If $\sum_{a \in A} {x_a}$ is finite, prove that the set $A' = \left\{{a \in A | a &gt; 0}\right\}$   is countable.   My guess is that we have to write $A$ as a union of finitely many sets. What does $2^x$ really mean when $x$ is not an integer? In the previous version the logout button is under your username, which it can be found by clicking the down arrow. However, in the new version, after a couple minutes of searching, it is under the "site-switcher" button:        This is really illogical since the logout button is usually under your username, including Google and Yahoo! services.  I suggest bringing back the  which will definitely benefit new users and even old users. It seems that KNN is a discriminative learning algorithm but I can't seem to find any online sources confirming this.  Is KNN a discriminative learning algorithm? Show that $|z_1 + z_2|^2 < (1+C)|z_1|^2 + \left(1 + \frac{1}{C}\right) |z_2|^2$ Let $z_1$ and $z_2$ be two complex numbers. Show that there exists $C &gt; 0$ with   $$  |z_1 + z_2|^2 &lt; (1+C)|z_1|^2 + \left(1 + \frac{1}{C}\right) |z_2|^2. $$   I tried to simplify the L.H.S and R.H.S, SNF I was finally left to compare between a real number and a complex number  I really couldn't think of anything else. Please help. When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead. Can I award user with special bounty after accepting his anwer? I have a , and I haven't start a bounty for this question. After I got my answer I'd like to give a user a special bounty, because I consider his answer very helpful and it saved me a lot of time. I've already accepted the answer. Is there a way how can I give him some bounty?  Thank you Conjunction Puzzle: Is this clause dependent or independent? Third grade teacher here. I plan to teach students to distinguish between simple, compound and complex sentences — but only if I can demonstrate a clear and meaningful difference between the latter two!  Complex or Compound? Each sentence in the following pairs is similar to its partner.   All dogs are mammals, so huskies are mammals. All dogs are mammals, therefore huskies are mammals. I come bearing soup, for Kate is sick. I come bearing soup, because Kate is sick.   Are the sentences above complex or compound?   First, we need to decide whether each italicized clause is independent or dependent. To me, they all look dependent. If that is the case, there's not much need to teach about compound sentences. Is there a meaningful difference between the sentences in each pair that I am missing? (Are the FANBOYS as special as they'd like to think?) How to NOT show keyboard layout chooser popup when changing language in GNOME 3 Which tag is added to the page title? Over at ,    To this end, the tag listed first on a question (sorted by popularity of the tag)  So, what's the basis for tag popularity? Views? It sure as hell isn't number of questions. Calculating extent of custom tiles? Problem  The picture is just an example of my case, but I am left with blank space on the left when I load all the tiles and I get error message in the console:   Failed to load resource: the server responded with a status of 404 (Not Found) http://path/to/the/tile//base/8/6/53.png  etc.     I could guess and limit the extent of the layer, but I would really like to know is there any way to calculate it and also be able to get rid of the error message.  What I know about the tiles?   Originally they are served as TMS They represent png images 256*256 They are in projection: EPSG:3857 In OpenLayers2 they were called like TMS layer In OpenLayers3 (v.3.8.2) they are called like XYZ layer (that includes -y):     var baseLayer = new ol.layer.Tile({   source: new ol.source.XYZ({     url: 'http://path/to/the/tiles/base/{z}/{x}/{-y}.png'   }) });   Thoughts and questions   How can I calculate extent of the tiles? Or in another words how can I find out zmin zmax xmin ymin xmax ymax or whole range of x/y?  What does x/y really represent? Are they coordinates of the left bottom corner or center of the tile? In which direction does x/y increase? How can I figure out x/y of at least one of the tile, for example left bottom one?    (I have modified the question for better understanding of the problem) Comments saying "thank you" remind OP to accept answer I'm trying to connect 32 I²C "root of trust"  devices.    I'm thinking about a good way that does that, I mean what kind of communication should I use? A digital multiplexer that selects a device? but based on what? switching on the VDD source? but that needs reinitialization of the device and that takes time. How many copies of the DeLorean time machine co-existed in the Back to the Future series? Using pgfplots, why do I get "undefined control sequence" when trying to use a foreach variable as a parameter to addplot? Since I have multiple plots with error bars, I would like to shift the error bars slightly to make the overall plot more readable. However, when I try to do this using the variable of a \foreach as the amount to shift, I get an "undefined control sequence" error.  \documentclass{article}  \usepackage{tikz} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture} \begin{axis} \foreach \x/\y in {a/-1cm, b/0cm, c/1cm} {     \addplot+ [         %every error bar/.append style={xshift=\y},         %every node/.style={xshift=\y},         error bars/y dir=both,         error bars/y explicit,     ] coordinates {         (0, 0) +- (0, 1)         (1, 0) +- (0, 1)         (2, 0) +- (0, 1)     }; } \end{axis} \end{tikzpicture}  \end{document}   (The document does not compile when I uncomment either one of the two comments.)  What's wrong here?  EDIT: Added another variable to the \foreach. In my actual use-case it would contain the filename to plot data from or the label to use for the curve. The collection of all subsets of $\mathbb{Z}$ is uncountable, due to   But how can I prove that the collection of all finite subsets of $\mathbb{Z}$ is countable? How to limit zoom level in OpenLayers 2.x I would like to have only 3 levels of zoom available (from level 6 to level 8).  demolayer2 = new OpenLayers.Layer.WMS( "abc...","http://localhost:8080/geoserver/gwc/service/wms", {layers: 'def...', transparent:"true", format: 'image/png', numZoomLevels: 3, minZoomLevel: 6 },{isBaseLayer:false},  { tileSize: new OpenLayers.Size(256,256)});  map.addLayer(demolayer2);   map.addControl(new OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher')}));  map.zoomToExtent(new OpenLayers.Bounds(-4.601615515076983,39.8769407866263,-3.0527184873294764,41.16710732525929)); I installed kubuntu-desktop just to experiment with its interface.  Then I decided to remove and did the traditional apt-get purge and autoremove but it seems elements of kubuntu are still there. For example interface elements, scrollbars, bootscreen etc are still there.  Is there any method I can completely remove without installing a fresh copy of ubuntu? I am using a plugin to help "build" a customized product. There are different tabs/steps the user has to go through with back and continue buttons. At the last step I would like to add an "agree to terms" box with a checkbox "Agree". I have this done. But I would like to hide the add to cart button in Woocommerce until the user selects the checkbox agreeing to the terms.  This will be beneficial to me to make sure they reviewed the return policy as well as avoid confusion with the add to cart button appearing during all the steps, assuring they go through all the steps.  Here is the checkbox coding i pulled from console:  &lt;ul data-rules="{&amp;quot;Agree_0&amp;quot;:[&amp;quot;&amp;quot;]}" data-original-rules="{&amp;quot;Agree_0&amp;quot;:[&amp;quot;&amp;quot;]}" data-rulestype="{&amp;quot;Agree_0&amp;quot;:[&amp;quot;&amp;quot;]}" data-tm-validation="{&amp;quot;required&amp;quot;:true}" class="tmcp-ul-wrap tmcp-elements tm-extra-product-options-checkbox tm-element-ul-checkbox element_16 termsbox-ul"&gt;     &lt;li class="tmcp-field-wrap tmhexcolorimage-li-nowh"&gt;         &lt;label for="tmcp_choice_16_0_35"&gt;    &lt;input class="tmcp-field termsbox tmhexcolor_16_0_35 tm-epo-field tmcp-checkbox" name="tmcp_checkbox_16_0" data-limit="" data-exactlimit="" data-minimumlimit="" data-image="" data-imagec="" data-imagep="" data-imagel="" data-image-variations="[]" data-price="" data-rules="[&amp;quot;&amp;quot;]" data-original-rules="[&amp;quot;&amp;quot;]" data-rulestype="[&amp;quot;&amp;quot;]" value="Agree_0" id="tmcp_choice_16_0_35" tabindex="35" type="checkbox"&gt;     &lt;span for="tmcp_choice_16_0_35"&gt;&lt;/span&gt;&lt;span class="tc-label tm-label"&gt;Agree&lt;/span&gt;&lt;/label&gt; &lt;span class="price tc-price  hidden"&gt;     &lt;span class="amount"&gt;$0.00&lt;/span&gt; &lt;/span&gt;&lt;i data-tm-tooltip-html="This is were the description will be to agree" class="tm-tooltip tc-tooltip tcfa tcfa-question-circle"&gt;&lt;/i&gt;     &lt;/li&gt;&lt;/ul&gt;   Here is the add to cart section with the quantity  &lt;div class="quantity buttons_added"&gt;     &lt;input value="-" class="minus button is-form" type="button"&gt;    &lt;input class="input-text qty text" step="1" min="1" max="9999" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="number"&gt;     &lt;input value="+" class="plus button is-form" type="button"&gt;  &lt;/div&gt; &lt;button type="submit" name="add-to-cart" value="267" class="single_add_to_cart_button button alt"&gt;Add to cart&lt;/button&gt;   I am self taught with html and css, but javascript is to foreign for me  I tried the following in CSS but it does nothing.Tried is on codepen and works (i know needs to show instead of hide when checked)....  input[type=checkbox]:checked + .single_add_to_cart_button {     display:none !important;  }