I use Helvetica as the font for my document (helvet package). Now I need some parts to be printed in typwriter face, e.g. via \ttfamily. However, as long as I use the fontenc package with the T1 option the text generated turns out to be pixelated (upper text normal, lower \ttfamily).  With \usepackage[T1]{fontenc}:   Without \usepackage[T1]{fontenc}:   MWE:  \documentclass{article} \usepackage{lipsum}  \usepackage[scaled=0.95]{helvet} % required to use sans-serif in normal text \renewcommand{\familydefault}{\sfdefault}  \usepackage[T1]{fontenc} &amp; &lt;-- comment/uncomment this line  \begin{document} \noindent normal: {I'm Batman and Superman} \\ ttfamily: {\ttfamily I'm Batman and Superman} \end{document}   I assume it's related to the fact that helvet has no serif-fonts, but \ttfamily tries to select one. Is there any way around this? I thought about redefining \ttfamily with (another?) monospace font, but couldn't yet figure out how exactly to do this properly.
I use 'Helvetica' as my font and build my document using Texmaker. But the PDF generated has jagged edges while using this font and when I use a different font (say Times or even Helvetica sans-serif) it builds just fine.     Please suggest if there is anyway I can get over this. The problem with these jagged edges is that it appears very dull and unreadable at 100% resolution.  OK guys, now here is the MWE  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% HEADER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[a4paper,twoside,12pt]{book}  %% Language %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} %\usepackage[utf8]{inputenc} \usepackage{graphicx,color,subfigure}  %% Line Spacing %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{setspace} %\singlespacing        %% 1-spacing (default) %\onehalfspacing       %% 1,5-spacing \doublespacing        %% 2-spacing  %% Other Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[left=1.5in, right=1.5in, top=1in, bottom=1in, includefoot, headheight=13.6pt]{geometry} \usepackage[pagebackref=true,breaklinks=true,letterpaper=true,colorlinks,bookmarks=false]{hyperref} \usepackage{helvet} \usepackage[square,numbers]{natbib} \usepackage{hyphenat} \usepackage{fancyhdr}   \begin{document}  \pagestyle{empty} %No headings for the first pages.  \cleardoublepage %The first chapter should start on an odd page.  \pagestyle{plain} %Now display headings: headings / fancy / ...  \pagebreak  %------------------------------------------------------------------------ \chapter{Divorce}   A major change that has occurred in the Western family is an increased incidence in divorce. Whereas in the past, divorce was a relatively rare occurrence, in recent times it has become quite commonplace. This change is borne out clearly in census figures. For example thirty years ago in Australia, only one marriage in ten ended in divorce; nowadays the figure is more than one in three (Australian Bureau of Statistics, 1996: p.45). A consequence of this change has been a substantial increase in the number of single parent families and the attendant problems that this brings (Kilmartin, 1997).   \end{document}
Shape of confidence interval for predicted values in linear regression Initial value problem $t\frac{dx}{dt}=x+\sqrt{t^2+x^2}$ Dirichlet's problem in the unit disk is to construct the harmonic function from the given continuous function on the boundary circle. It is solved by the convolution with the Poisson kernel, and we know that the constructed function has uniform limit which is the given continuous function as $r\to 1$, and we can complexify the solution by taking the Schwarz integral formula. Now (in this very particular case) does the imaginary part has a uniform limit? If it does, why don't we prove the uniqueness of the solution by a simple application of the Cauchy integral formula? Here is the proof that I reckon to be reasonable(which is what I expose here to be criticised)  We construct the Schwarz integral, or $\frac{1}{2\pi}\int _{0}^{2\pi}\frac{\exp(it)+z}{\exp{(it)}-z}u(\exp{(it)})\mathrm{d}t$. This function is an analytic function in the interior unit disk, and is continuous in the closed unit disk(its closure). Let this analytic function denoted by $f$, and another analytic function that has the same uniform limit function on the circle be $v$. Then $u-v$ is an complex analytic function in the interior of the unit disk, continuous on the closure, with boundary value identically zero. An application of Cauchy's integral formula gives rise to the conclusion that $u-v$ in identically zero on the entire disk.   Another question being if the boundary function has finite jump discontinuities, what is the behaviour of the convolution with the Poisson kernel near the discontinuous points? My flight got canceled yesterday and I am currently waiting for the delayed next flight.   Is there any website that keeps records of airlines being delayed/canceled? I would like to know my chances. I did find some sites through google (flightaware, flightstats), but they focus on us flights only and I am currently in the azores. Get real client IP in a Servlet I wrote a script to create a big number of heat maps for a given scenario. I would like to save the result of every heat map as an PNG image. I have figured it out doing it with simple Map Rendering but the quality of the result is too low. Furthermore I would like to export to OpenLayers using the same code, which does not seem to be possible with simple rendering.   Now I am trying to do it with QgsComposition instead. Manually in the Map Composer you can just set the paper color to transparent and disable the background of the map canvas.   This is the code that I have so far. I just cannot figure out why it is not working. The result png-file always has a white opaque background.   My OS is Windows 7 and I'm using QGIS 2.6 Brighton.  I hope someone can help me out here.  # PARAMETERS mainPath = 'path/to/folder/' filename = 'filename' imageType = "png" imageWidth_mm = 400 imageHeight_mm = 160 dpi = 300  mapRenderer = iface.mapCanvas().mapRenderer()  c = QgsComposition(mapRenderer) c.setPlotStyle(QgsComposition.Print)  c.setPaperSize(400, 160)  x, y = 0, 0 w, h = c.paperWidth(), c.paperHeight() composerMap = QgsComposerMap(c, x ,y, w, h) c.addItem(composerMap)  # get all items and disable the backgrounds itemList = c.items() c.removeItem(itemList[2]) c.removeItem(itemList[2]) itemList[2].setBackgroundEnabled(False) itemList[3].setBackgroundEnabled(False) # add them to the composition c.addItem(itemList[2]) c.addItem(itemList[3])  c.refreshItems() c.refreshDataDefinedProperty(QgsComposerObject.AllProperties)  c.setPrintResolution(dpi) dpmm = dpi / 25.4 width = int(dpmm * c.paperWidth()) height = int(dpmm * c.paperHeight())  # create output image and initialize it # image = QImage(QSize(width, height), QImage.Format_ARGB32) image = QImage(QSize(width, height), QImage.Format_ARGB32_Premultiplied) image.setDotsPerMeterX(dpmm * 1000) image.setDotsPerMeterY(dpmm * 1000) #image.fill(0)  imagePainter = QPainter(image)  # This part does not seem to have any effect #brush = QBrush(Qt.BrushStyle(0)) # transparent brush # #imagePainter.setBackgroundMode(0) #c.setBackgroundBrush(brush)  c.renderPage( imagePainter, 0 ) imagePainter.end()   imageFilename =  mainPath + filename + '.' + imageType image.save(imageFilename, imageType) print 'image saved' print 'done' How to vertically center content with variable height within a div? What is the best way to vertically center the content of a div when the height of the content is variable.  In my particular case, the height of the container div is fixed, but it would be great if there were a solution that would work in cases where the container has a variable height as well. Also, I would love a solution with no, or very little use of CSS hacks and/or non-semantic markup. Is short-circuiting logical operators mandated? And evaluation order? Does the ANSI standard mandate the logical operators to be short-circuited, in either C or C++?  I'm confused for I recall the K&amp;R book saying your code shouldn't depend on these operations being short circuited, for they may not. Could someone please point out where in the standard it's said logic ops are always short-circuited? I'm mostly interested on C++, an answer also for C would be great.  I also remember reading (can't remember where) that evaluation order isn't strictly defined, so your code shouldn't depend or assume functions within an expression would be executed in a specific order: by the end of a statement all referenced functions will have been called, but the compiler has freedom in selecting the most efficient order.  Does the standard indicate the evaluation order of this expression?  if( functionA() &amp;&amp; functionB() &amp;&amp; functionC() ) cout&lt;&lt;"Hello world"; Needing to upgrade Squid 3.5.12 on Ubuntu 16.04.3 LTS to a more recently patched version (Squid 3.5.23) I found some instructions here:   Entered the first 3 commands exactly and got a note from apt-get: "N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository ' xenial InRelease' doesn't support architecture 'i386'"  I don't have typos and nonexistent foreign architectures as others have done:  root@wprdsqd01:/# dpkg --print-foreign-architectures i386 root@wprdsqd01:/# dpkg --print-architecture amd64 root@wprdsqd01:/#   Does this just mean that the repository doesn't have i386 (32bit) binaries ?  Thanks I am trying to understand the permission usage for the cp command in unix.   What are the permissions required for copying a file into a directory What are the permissions required for copying out of a directory?   I'm assuming for my first question, the directory will need execute permissions to perform the operation and the file will need read permissions to read the binary of the file and then the output file will need write permissions.  For the second the directory itself would need execute permissions to perform the copy operation and the file would need read permissions to extract the data from the file.  Can anyone tell me if my logic is flawed? EM with Binomial how to replace multiple strings together in Oracle What does Pokémon Appraisal actually tell you in Pokémon Go? Can someone explain a stock's "bid" vs. "ask" price relative to "current" price? In my online brokerage account, I want to buy a particular stock and I see the following:  Bid:  13.20 x200           Ask:  13.27 x1,000   the current stock price is 13.22.   Can someone explain what the bid and ask prices mean relative to the current price?  If I buy 1000 shares, why would I pay more? This is problem 6.2 from the 3rd edition of Principles of Mathematical Analysis.      Problem 6.2: Suppose $f\geq 0$, f is continuous on $[a, b]$, and $\int_a^b f(x) \, dx = 0$. Prove that $f(x)=0$ for all $x \in [a, b]$.   I'm looking for a critique of my proof. It's a pretty easy problem, but I am always wary of making too bold of assumptions, especially on these low level/fundamental proofs. I'll be using Rudin's notation and refer to theorems from the text (If I should include the text of each theorem, feel free to leave a comment... I'm lazy but could probably use the TeX practice :p)  Proof: Assume, for contradiction, that $f&gt;0$. Then, for any partition $P$ we have the Lower Riemann Sum: $L(P, f)=\sum_{i=1}^n m_i \, \Delta x_i$. At least one $\Delta x_i$ must be positive, since $a &lt; b$, and each $m_i$ must be positive since we have $f&gt;0$ by assumption, so certainly $\sup f &gt; 0$. That means $L(P, f)&gt;0$. Thus, we have: $$0 = 0(b-a) &lt; L(P,f)\leq \sup L(P, f) = \inf U(P,f) =L$$ where the last string of equalities holds because our function is continuous on a compact interval, so is integrable by theorems 6.8 and 6.6. So our integral has value $L&gt;0$. This is in contradiction to our given assumption that $\int_a^b f(x) \, dx = 0$, so we must have that $f=0$ on $[a, b]$. $\Box$  So, I am wondering if my proof is correct (and is presented well). Also if someone could enlighten me as to what Rudin means when he say "Compare this with exercise 1," I'd be appreciative. Is it a hint or is there something else he expects you to notice? there are a lot of things I could compare :)...  Exercise 6.1: Suppose $\alpha$ increases on $[a, b]$, $a \leq x_0 \leq b$, $\alpha$ is continuous at $x_0$, $f(x_0)=1$, and $f(x)=0$ if $x\neq x_0$. Prove that $f$ is Riemann-Stieltjes Integrable and that $\int f \, d\alpha = 0$ Maven artifact and groupId naming How to get the ASCII value of a character How do I get the  value of a character as an int in ? In the Wikipedia article on positive definite matrices they claim that if $M$ is positive definite, then the determinant of $M$ is bounded by the product of its diagonal entries. How might we show this?  Ideas: The sum of the diagonal entries of $M$ is the trace, which is also the sum of the eigenvalues. The product of the eigenvalues is the determinant. All the diagonal entries of $A$ must be real and strictly positive. Also we have $|m_{ij}|\leq \sqrt{m_{ii}m_{jj}}\leq \frac{m_{ii}+m_{jj}}{2}$. So far nothing is working...  We might try to write the Gram matrix $m_{ij} = \langle v_i, v_j \rangle$, and then $\prod_i m_{ii} = \prod_i \|v_i\|^2$. Now we'd need to show that the determinant, which is a polynomial in the entries of $v_i$, is less than $\prod_i \|v_i\|^2$ somehow. Possible Duplicate:          I would like to know if when I'm writing about a "user" (in the broad sense), what do I use? Example: "from the user’s perspective, saving a file is very easy; ? only needs..."  What is correct: she, he, she or he, or they. php/mysql - foreign characters