The present state is:    I get two ttf fonts, say font1.ttf and font2.ttf.  I used autoinst tool to convert the both into latex usable fonts.    In my document preamble, now I'm able to use:  \usepackage{font1}   or   \usepackage{font2}   The question now is how (with or without this ability) to redefine fonts for chapter and section names with one of the font?  My first idea was to \usepackage{font1} to set a main font for the document and to \usepackage{titlesec} to format the section/chapter names with the other, but now I can't find how to make use of my font2 inside the \titleformat command
I would change the font of section and subsection of my document. I have created it using book class. I would use this font:    According to Adobe pdf propriety, this font is AvantGarde-Demi. How can I use it in Latex. what command I should use to recreate this in latex. I think I should use titlesec package right?
Create Java console inside a GUI panel How can I create an instance of the Java console inside of a GUI panel? Do we have negative prime numbers? Do we have negative prime numbers?   $..., -7, -5, -3, -2, ...$ What is involved in converting a PC video card to have boot screen on the Mac? I've seen a contraction of two words.  I can't see why it wouldn't've been possible to have been contracted twice.  Is it possible and how should it be punctuated?  Update:  Ok, to sum up the answers so far   This appears in spoken British and American English It is from one of the lower  Even if spoken this way sometimes, it isn't really written as a double contraction, except as written speech in fiction. And from my own googling in , it appears most written forms are old British words, often nautical like fo'c'sle. Look and you shall find (a correlation) Often (via Google Now, or when searching for a solution to some problem), I'll open a question from a non-favourite site in the app. Sometimes, I'd like to see what else is going on in the site where the question was posted. Currently, I have one of two ways:   Via tag icon:   Click one of the tag icons beneath the title Delete the [tag] text (at which point, thankfully, the sorting changes to Active from Votes).  Via manually searching for the site, which is more cumbersome. I type in hard and Hardware Recommendations is the fourth entry (below Ask Different, Raspberry Pi and Arduino)! This more annoying for meta sites, where I have to pick Meta from the dropdown menu.   Can I pretty please have a way to head to the site directly from the question? Maybe:   the site name in the top bar could become clickable and lead to the site, or an option in the More menu?     This would be especially useful for Meta sites, where questions posted around the same time could be related. Interestingly enough, most questions that Google Now are for metas of sites I visit on occasion, but haven't pinned to the list. $$\lim _{x\rightarrow 5}\frac{x^2-25}{x-5}  = \lim_{x\rightarrow 5} (x+5)$$  I understand that to evaluate a limit that has a zero ("hole") in the denominator we have to factor and cancel terms, and that the original limit is equal to the new and simplified limit. I understand how to do this procedurally, but I'd like to know why this works. I've only been told the methodology of expanding the $x^2-25$ into $(x-5)(x+5)$, but I don't just want to understand the methodology which my teacher tells me to "just memorize", I really want to know what's going on. I've read about factoring in abstract algebra, and about irreducible polynomials (just an example...), and I'd like to get a bigger picture of the abstract algebra in order to see why we factor the limit and why the simplified is equal to the original if it's missing the $(x-5)$, which has been cancelled. I don't want to just memorize things, I would really like to understand, but I've been told that this is "just how we do it" and that I should "practice to just memorize the procedure." I really want to understand this in abstract algebra terms, please elaborate. Thank you very much. I have 2 monitors connected to a NVIDIA GeForce GTX 660:   Left is 1920x1080 via DVI (Samsung SyncMaster 2443BW) Right is 2560x1440 via DisplayPort and is set to Primary (Samsung SyncMaster SA850)   I often leave my computer running overnight (working on long render job, doing backups, etc) so I only power off my monitors manually. However, if I power off the primary monitor, it is disabled completely as if it were unplugged from the graphics card (i.e. icons are moved, open apps are moved and resized to fit on the new primary monitor). If I switch from DP to a DVI cable, this does not occur. It seems to be an issue when using DisplayPort.  Is there a way to disable the monitor from being disabled completely in Windows when I power it off physically?   I have found no relevant settings in either Windows Display settings, nor the NVIDIA control panel software.  Edit #1: I'm using an .  Edit #2: Here is a screenshot of my NVIDIA Control Panel v7.2.710.0:   Edit #3: Here are screenshots of my Monitor configuration:    Clicking on Advanced settings reveals a Generic PnP monitor running at 59 Hz? 60 Hz is the only other option available.    Here is my secondary monitor which is connected via DVI:    Edit #4: If I open the "Screen Resolution" configuration panel and power the monitor off (via the power switch), this is what is shown:    It looks like I disconnected the monitor from the video card. How do I start Chrome using a specified "user profile"? How to shop for a lens filter? What should I consider when shopping for a lens filter?    I see filters that range from $15 to $115 and more.  What are the differences between the $15 and the $115 filter?    I'm asking in the generic sense but if you need specifics, I'm looking to buy a UV filter and a polarizing filter for a Panasonic GF1 w/ 20mm pancake lens.  EDIT: I've read some of the other posts and some refer to multi-coating but doesn't explain what is this and why it matters.  What I've gathered from reading related posts is that price is generally the only indication of quality in the case of choosing a filter.  Is this right? How do I clear the render border? In the 3d viewport I am using a border region to only render things inside the selected region. I did this with CtrlB. I cannot get rid of the region. How can I make the border disappear? \nameref breaks for the star versions of section, paragraph when titlesec is loaded. I have a document that numbers paragraphs by default, but I have a few I do not want to number but would like to refer to. These are marked with \paragraph*, however, if the titlesec package is loaded at the same time, it causes nameref to display an empty string (the link box of hyperref is still visible).  MWE:  \documentclass[12pt]{article} \usepackage[sf]{titlesec} %comment this out and it works fine. \usepackage{hyperref} \begin{document} \section{Sections} \label{sec} This is \nameref{sec} \paragraph{A named Paragraph} \label{par} This is \nameref{par} \paragraph*{A starred named Paragraph} \label{par:star} This is \nameref{par:star} \end{document}   I suspect titlesec causes this defect for ALL star variants of sectioning commands but have not tested this. For me only paragraph* is relevant however a fix for all variants would be the best.  I have a hunch it might be related to this:  however this happens to go way beyond my latex knowledge and is just "magic" for me. I've been reading a Wikipedia article that describes the symptoms of rabies in various species, and I want to add a clarification note about which species (or species) a specific paragraph refers to. How can I make it clear that I'm referring either to the singular or plural of the word "species" when the singular of this word is the same as its plural? "Species or species" is the only grammatically correct way that I can think of, but it seems redundant and confusing. Is there any better way to contrast the singular of "species" from the plural of "species"? I frequently find myself writing code like this:  List&lt;int&gt; list = new List&lt;int&gt; { 1, 3, 5 }; foreach (int i in list) {     Console.Write("{0}\t", i.ToString()); } Console.WriteLine();   Better would be something like this:  List&lt;int&gt; list = new List&lt;int&gt; { 1, 3, 5 }; Console.WriteLine("{0}\t", list);   I suspect there's some clever way of doing this, but I don't see it. Does anybody have a better solution than the first block? Did Luke attempt to retake the Jedi Temple on Coruscant? After the New Republic gains control of Coruscant through the Galactic Concordance, did Luke Skywalker attempt to reclaim (or even visit) the former and still very much intact Jedi Temple, now converted to be the deceased Emperor's palace?   If Luke is so insistent on saving a tree just because it belongs to the Jedi and the Empire stole it, then shouldn't reclaiming the Jedi Temple be even higher priority?  If he did, is he aware of the Sith shrine beneath it? Which is something even Yoda does not know. And if he didn't, why didn't he? invalid EFI file path on windows 8 Estimate the population variance from a set of means var functionName = function() {} vs function functionName() {} I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other? When would you call java's thread.run() instead of thread.start()? How to remove uninstalled snaps from cache?