Framed minipage wrong size in PDF I am trying to make a document containing a box with text that i want to appear a certain exact size when i print it. (Specifically I want to make a nametag that fits exactly inside a slot on my mailbox.) Here's a MWE:  \documentclass[a4paper]{article}  \begin{document} \fbox{ \begin{minipage}[c][3cm][c]{7.5cm}     words \end{minipage} } \end{document}   The problem is that when i measure the lengths in the PDF (in Preview on macOS and printed on paper), the box is not 7.5 cm by 3 cm but rather (approximately) 7.9 cm by 3.2 cm. The paper size looks fine in Preview (approx. 21 cm  by 29.7 cm).  Is this an issue with the method I used to create the box, e.g. the \fbox doesn't fit exactly around the minipage? Or is it something else? Is there a better way to do this? I'm lost.
Remove space around tikz How can I remove ALL space around TiKZ. So given MWE below, I want no space between fbox and the node box (so essentially I want to see 1 line). How to realize this?   Is this space in tikzpicture or in \fbox?   How to remove space between \fbox and node    MWE  \documentclass{article} \usepackage{tikz}  \begin{document} \fbox{%   \begin{tikzpicture}[node distance = 0.8cm and 0.2cm]%     \node[draw] (center) {CENTER}; %   \end{tikzpicture}% } \end{document}
How to use Parameterized MessageFormat with non-Value attributes of JSF components Calculating $\lim_{x\to0} \left\lfloor\frac{x^2}{\sin x \tan x}\right\rfloor$ Find $$\lim_{x\to0}  \left\lfloor\frac{x^2}{\sin x \tan x}\right\rfloor$$ where $\lfloor\cdot\rfloor$ is greatest integer function   I am a high school teacher. One of my students came up to ask this limit.  For $\lfloor\frac{\sin x}{x}\rfloor$, I have used $\sin x &gt; x$ using increasing decreasing functions.  I tried to prove $x^2 &gt; \sin x \tan x$ using increasing /decreasing  function but I am not getting it. Let $G$ be a finite group and suppose there exists $f\in\text{Aut}(G)$ such that $f^2=\text{id}_G$, i.e., $f$ is its own inverse, and such that $f$ has no fixed points other than the identity $e$ of $G$, i.e., $f(x)=x\Rightarrow x=e$. Show that $G$ is necessarily abelian.   While trying to do this exercise I noticed two facts.  First, $g$ and $f(g)$ have the same order because $o(f(g))|o(g)$ and, applying $f$ again and using $f^2=\text{id}_G$, $o(f(f(g)))=o(g)|o(f(g))$ and, once the order of any element is $\geq 1$, it follows that $o(g)=o(f(g))$. Also, it's easy to see that $g$ and $f(g)$ commute.  Second, there cannot exist such an automorphism if the order of $G$ is even, because $f(e)=e$ and we can form pairs like $\{g,f(g)\}$ with $f(g)\neq g$ that are invariant under $f$, i.e., $f(\{g,f(g)\})=\{g,f(g)\}$. But once the order of $G$ is even, proceeding with the construction of the pairs, we'll end up with just one element $\neq e$, so we must have some $\gamma\in G\setminus{e}$ with $f(\gamma)=\gamma$, contradicting the hypothesis.  Let $n$ be the order of $G$ and let's fix an enumeration of the elements of $G$, say $G=\{g_1,\ldots,g_n\}$. My approach was the following. For each $\sigma\in S_n$, let $x_{\sigma}=\prod_{i=1}^ng_{\sigma(i)}$. Then we have that $f(x_{\sigma})=x_{\sigma^{\prime}}$. If it's shown that $f(x_{\sigma})=e\;\forall\;\sigma\in S_n$, then we'd have $x_{\sigma}=e\;\forall\;\sigma\in S_n$, which implies that $G$ is abelian. The problem is that $S_n$ has $n!$ elements while $G$ has $n$ elements, so there repetitions among the $x_{\sigma}$, and we cannot apply directly the reasoning of the last paragraph.  Is this the right way, or is there an easier manner to solve this? Caption makes Table move in statsoc class Book ID: Astronauts and Lab Students can create portals through space Desperate to locate and re-read exceptional book/series, but cannot remember the title. The high concept: The U.S. has just sent the first successful expedition to Mars, and it has just landed. As the astronauts make their initial exploration outside their ship, a tear in the fabric of space opens up right in front of them, and they look through to the insides of a laboratory (at a California university?) and two students who just figured out how to create arbitrary portals between two points in the Universe. The rest of the novel/series is a consequence of this breakthrough. But I can't remember the author and title(s). Surely someone reading this forum will remember it well! TIA.  (Reposted .) Ideal charging / discharging percentage for maximum battery life? One of my friends has a relatively new Samsung smartphone. He has this app that notifies him whenever the charging is up to 80%, and tells him to unplug the charger.  He tells me that it will increase the number of charging cycles for his battery. He says that if he lets it charge all the way up to 100%, it will mean he has to replace the battery of the phone more often.  Is this true?  Somehow, I feel this is a thing of the past. I thought the internal architecture of batteries these days was made so that it wouldn't drop too low or too high. (In other words, when the phone is at 100%, it isn't really 100%. It's what the battery can safely be charged to in order not to degenerate too much.)  Here's a  which taught me something about this. Can $\sqrt{n} + \sqrt{m}$ be rational if neither $n,m$ are perfect squares? difference between "function foo() {}" and "foo() {}" I can define bash functions using or omitting the function keyword. Is there any difference?  #!/bin/bash  function foo() {   echo "foo" }  bar() {   echo "bar" }  foo  bar   Both calls to functions foo and bar succeed and I can't see any difference. So I am wondering if it is just to improve readability, or there is something that I am missing...  BTW in other shells like dash (/bin/sh is symlinked to dash in debian/ubuntu) it fails when using the function keyword. Show that $8 \mid (a^2-b^2)$ for $a$ and $b$ both odd If $a,b \in \mathbb{Z}$ and odd, show $8 \mid (a^2-b^2)$.   Let $a=2k+1$ and $b=2j+1$. I tried to get $8\mid (a^2-b^2)$ in to some equivalent form involving congruences and I started with $$a^2\equiv b^2 \mod{8} \Rightarrow 4k^2+4k \equiv 4j^2+4j \mod{8}$$ $$\Rightarrow k^2+k-j^2-j=2m$$ for some $m \in \mathbb{Z}$ but I am not sure this is heading anywhere that I can tell.  Second attempt: Use Euler's Theorem and as $\gcd(a,8)=\gcd(b,8)=1$ and $\phi(8)=4$, $a^4 \equiv b^4 \equiv 1 \mod 8$ so $a^4-b^4\equiv 0 \mod{8}$.  I haven't gotten too much further are there any hints? Which is the right way to do something like 'description' list but with customizable and fixed-width labels? I.e. something like this:  Label:         Text text text text text text                text text text text. Longer label:  Text text text text text text                Text text text text.   The way I see it to use two-column table (first columt for labels and second column for descriptions), but this solution seems ugly. Is there any other way? I'm using soul to letterspace headings in a Hungarian document and compiling it with lualatex.  For some reason soul drops some of the accented letters at the end of a word, but not all. In the example below, only ő and ű are affected:  \documentclass{minimal} \usepackage{fontspec} \setmainfont[Ligatures = TeX]{TeX Gyre Pagella} \usepackage{soul} \begin{document} \noindent \so{áll llá ÁLL LLÁ}\\ \so{íll llí ÍLL LLÍ}\\ \so{űll llű ŰLL LLŰ}\\ \so{őll llő ŐLL LLŐ}\\ \so{üll llü ÜLL LLÜ}\\ \so{öll llö ÖLL LLÖ}\\ \so{úll llú ÚLL LLÚ}\\ \so{óll lló ÓLL LLÓ}\\ \so{éll llé ÉLL LLÉ} \end{document} Only ftps with proftpd on debian How do I alter a language item link? I am looking to modify the default output of Drupal 8 of links in a certain situation, the language switcher. Ideally I want to be able to do that in a twig template and not have to produce a  that overwwrites that whole link generation system and add a BIG if for the cases I need to overwrite.  I think the output layout should be controllable in the twig template similar to  (this answer outputs the same url for every languages)  I am using bootstrap as a base theme so i'd like to use the bootstrap markup for my links (btn btn-primary, dropdown)  Here is my code I am trying to make links--language-block.html.twig  {%- if links|length == 2 -%}     {# show only alternate language button #}     {%- for key, item in links -%}         {%- if not item.attributes['#options']['set_active_class'] -%} {# &lt;--- this is always true!? #}             &lt;a href="{{ item.link['#url'] }}" class="btn btn-primary"&gt;{{ item.link['#title'] }}&lt;/a&gt; {# #url is always the same what ever the language it is pointing to! #}         {%- endif -%}     {%- endfor -%} {%- elseif links|length &gt; 2  -%}     {# show selected language in button and other languages in drop down #}     &lt;button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"&gt;{{ selectedLanguage }}&lt;span class="caret"&gt;&lt;/span&gt;&lt;/button&gt;     &lt;ul class="dropdown-menu"&gt;         {% for key, item in links %}             {%- if not item.attributes['#options']['set_active_class'] -%} {# &lt;--- this is always true!? #}             &lt;li&gt;&lt;a href="{{ item.link['#url'] }}"&gt;{{ item.link['#title'] }}&lt;/a&gt;&lt;/li&gt;             {% endif %}         {% endfor %}     &lt;/ul&gt; {%- endif -%}   Anyone has an idea on how to do this? I want to quantify the relationship between two variables, A and B, using mutual information. The way to compute it is by binning the observations (see example Python code below). However, what factors determines what number of bins is reasonable? I need the computation to be fast so I cannot simply use a lot of bins to be on the safe side.  from sklearn.metrics import mutual_info_score  def calc_MI(x, y, bins):     c_xy = np.histogram2d(x, y, bins)[0]     mi = mutual_info_score(None, None, contingency=c_xy)     return mi Difference between "been to" and "been in" Which site deals with career development questions for programmers? Is there any site in the network where career development questions about the programming profession can be asked ? I thought Programmer's was the site for it, but that doesn't appear to be the case. How much time do I have to wait before I can sell another car? I was wondering: How much time does it take until the cooldown resets and I can sell another car in the GTA Online LS Customs Garage? What are the recommended textbooks for introductory calculus? I'm making a map where I want players to be able to choose there kits/classes. The problem I'm having with it though is giving players already enchanted Tools/Armour/Weapons.  I'm not sure if you can use the /give [player] [item] [amount] because you'll have to use the whole {} thing and I'm not sure how to make enchanted Tools/Armour/Weapons using that.  Can anyone help? Series about proxy space battles via implanted computers in kids The premise of the story is that there are 2-3 main coalitions on Earth and they fight over resources in the edges of the solar system with spaceships that are controlled from Earth by kids with computers in their heads.  If I recall correctly:   The main character's name is Tom, he starts out by conning people at some sort of gambling arcade before he is found and recruited by the "army" The Pentagon in the US has a super tall tower built in the courtyard called The Spire where most of the three books take place. The reason they need kids for this has something to do with brain elasticity and putting computers in adults causes them to go mad. All the cadets are super dismissive about learning how to program their computer aside from one girl who is super good at it. The best fighters from each side of this conflict were something of superstars, but everyone else was kept completely anonymous for their protection. There were at least 3 books last I knew, released circa 2011-2014 The third book ends with Tom being the first astronaut to Mars. The first book had a green cover, the second was yellow, and the third was red. Though I might have the order wrong.