I am having some trouble using the new Source Han Sans font (; ) released by Google and Adobe in latex documents. I compile using XeLaTeX and have the TeX Live installation. I have spent the last 4 hours or so looking for a solution but couldn't find one.  My code is the following:  \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{Source Han Sans J Normal} \renewcommand{\arraystretch}{1.5} \setlength\parindent{0pt} % Removes all indentation from paragraphs \topmargin=-0.45in \evensidemargin=0in \oddsidemargin=0in \textwidth=6.5in \textheight=28cm \headsep=0.25in  \footskip = 20pt \begin{document} \thispagestyle{empty} 日本 \end{document}   Now when I run this it doesn't give me an outright error. However when I try to open the compiled pdf it tells me it is broken. When I look at the log file I find this at the bottom (the file name is "Core 1000 1-10.tex"):  Error 1 (driver return code) generating output; file Core 1000 1-10.pdf may not be valid.   The complete .log file can be found here:   When I comment out the line \setCJKmainfont{Source Han Sans J Normal} it works correctly again.  I have installed all the fonts in the family and did the procedure to load new fonts into LaTeX using TeX Live-manager.  Is this font maybe just not supported by xeCJK or am I doing something wrong?
I was trying to find a font which has obsolete jamo and the right combining behaviour. Yesterday I found out about , which seems to have both of these. However, when I use it in XeTeX, I get some seemingly-arbitrary hanja (or blank spaces) instead of the expected characters.  (I’m guessing the composing behaviour will fix itself when the right characters are selected. And yes, I know that Code2000 is working perfectly in this example, but unfortunately it is the ugliest font in the world. :p)  MWE:  \documentclass{article} \usepackage{fontspec}  % 1. precomposed: U+BB47 % 2. separate jamo: U+1106, U+116E, U+11BA % 3. obsolete [separate jamo]: U+113B, U+119F, U+11EB \newcommand\test[1]{#1 &amp; {\fontspec{#1}{뭇; 뭇; ᄻᆟᇫ}} \\}  \begin{document}  \begin{tabular}{rl} \test{Arial Unicode MS} \test{Batang} \test{Code2000} \test{Gulim} \test{GungSeo} \test{HeadLineA} \test{Nanum Brush Script} \test{Nanum Myeongjo} \test{Nanum Pen Script} \test{Noto Sans Korean} \test{PCMyungjo} \test{PilGi} \test{Adobe Gothic Std} \test{Adobe Myungjo Std} \test{Apple SD Gothic Neo} \test{AppleGothic} \test{AppleMyungjo} \end{tabular}  \end{document}
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. how to prove $G_1$ and $G_2$ aren't isomorphic? Proving $(P(AB))^2+(P(AB^c))^2+(P(A^cB))^2+(P(A^cB^c))^2\ge\frac{1}{4}$ for any events $A$ and $B$ Show that for any two events $A$ and $B$, $$(P(AB))^2+(P(AB^c))^2+(P(A^cB))^2+(P(A^cB^c))^2\ge\frac{1}{4}$$   Using the Inclusion-Exclusion formula, De Morgan's law and $P(AB^c)=P(A)-P(AB)$, I was able to expand the $\rm{l.h.s.}$ as $$(x+y)(x+y-4z)+2z(2z+1)+x(x-2)+y(y-2)+1\quad...\quad(*),$$ where $x=P(A),y=P(B)$ and $z=P(AB)$.  However I'm not being able to group the terms involved in the $\rm{l.h.s.}$ to form a 'suitable' expression and probably the way I have grouped them is not correct.  The expression $(*)$ is subject to the condition   $\max\{0,x+y-1\}\le z\le \min\{x,y\}$ and obviously $0\le x,y,z\le 1$, but I am unable to use this.      Is there an elegant/slick way to show the inequality? It probably can be shown without a lot of work and it's possible I'm missing something trivial here. Why on the first page Google says there are thousands of results but on the last page there are less than a hundred? Arguably the most famous scene in Star Wars is when Darth Vader reveals to Luke Skywalker that      He is Luke's father.   This surprise was kept secret to most of the crew and even the cast , with Dave Prowse, the actor playing Darth Vader, delivering a fake line, the actual line being overdubbed. (Of course, Darth Vader wasn't voiced by him in the first place; all lines were overdubbed by James Earl Jones).   Like Mark Hamill relates in :     But, for example, your big scene, one of the classic cinematic moments when Darth Vader divulges his true identity, is no longer a revelation.       It's such a great moment! The fake line that was put in there just to try and keep the secret was "You don't know the truth: Obi-Wan killed your father!" But as much as I enjoyed leaking false information, it was a wonderfully hard secret to keep because (Irvin) Kershner, the director, brought me aside and said "Now I know this, and George knows this, and now you're going to know this, but if you tell anybody, and that means Carrie or Harrison, or anybody, we're going to know who it is because we know who knows."   So how do we explain ?       And [David Prowse] offered a glimpse of a possible plot for the second sequel. Darth Vader and Luke Skywalker, the young hero in the first film played by Mark Hamill, are hooked up in a do-or-die light saber duel when Luke learns that Darth is, in fact, his long-lost father.   So exactly how secret was this secret anyway?    As DVK points out , the newspaper article is probably authentic. DXF file not to scale in Blender When I open the DXF file in LibreCAD, then it shows the correct size of an object, but when I import that file in Blender, then the size of that object becomes very large. How do you refer to a hyponym that is the same word as the hypernym? What word (or how do you phrase things) do you use when the ostensible word for the class is the same as the word for a subset of the class?  For example, in the United States, there are many brands of sugared, carbonated soft drink that one can buy: Coca-Cola (or Coke), Pepsi, RC Cola, Sprite, 7-Up, A&amp;W or Mug Root Beer, etc). The first two are kinds of 'coke' or 'cola' (but no one says 'cola').  , one asks for any type of such drink as 'coke'. How does one then ask for the particular kind of 'coke' that is 'Coke' (pronounced the same)? Does one reduplicate and say a 'Coke coke', does one repeat with emphasis (or without), does one use a different word like 'coca-cola' (co-cola), or what?  The (perceived) difficulty (surely those in the South are able to get the drink they want somehow) isn't limited to there. Where the drink is called 'soda', if you ask for a 'coke', you'll still sometimes have the choice among Coca-Cola, Pepsi, etc. "Can I have a Coke?" the response might be "Is Pepsi OK?". "Sure, Pepsi, Coke, whatever." You don't use 'cola', you just ask for the particular kind and hope the listener will help differentiate.   Given these multiple strategies for disambiguating, what do you do say to get a 'Coke' in the southern US? are there any other examples of a hypernym being the same as the hyponym, and so creating a disambiguation problem? What is the meaning of "algebraically indistinguishable" I heard the term couple of times (in Field theory class and book), for example: The different roots of $p(x)=x^3-2$ are "algebraically indistinguishable".  I understand the meaning intuitively, but what does it really mean ? How could towns restrain a magic user? The modern concept of crime and punishment is very reliant on the ability to disarm and restrain and control an individual (think handcuffs, the dividers in police cars, and jails).  How can that be replicated in a world where even a wizard's apprentice has a much power as an armed man with a handgun?  I've seen stories where magical restraints are present, but you can't write that into every thorp and hamlet, even in Eberron.    How can you restrain a magic user in a fantasy setting?   Either answers that conform to modern concepts of crime and punishment or answers about restraining a magic-user in a psuedo-medieval setting are acceptable. Do I have to do any configuration to start brace expansion? When I run mkdir {1..10}, it just creates a dir naming {1..10}. Why is sudoers NOPASSWD option not working? Can I kill an indestructible creature with -X/-X and sufficient damage marked on it? Can I hit a 4/4 indestructible creature with a  (3 damage) and give it -1/-1 with  to kill it? (Does it matter which way around I cast those?)  I read  here and it says, damage is removed in cleanup step, so it should be on the creature still after both spells.     702.12. Indestructible   702.12a Indestructible is a static ability.   702.12b A permanent with indestructible can’t be destroyed. Such permanents aren’t destroyed by lethal damage, and they ignore the state-based action that checks for lethal damage (see rule 704.5g).   702.12c Multiple instances of indestructible on the same permanent are redundant. What does the term "86'd" relate to? What does it mean when someone or something is referred to as being "86'd"? Formatting floats differently based on placement Lately I see a blue screen of death a lot and want to know why it appears. Where should I gather the information so the problem can be diagnosed best? Couldn't find anything in C:\Windows\Logs. I have installed Ubuntu 13.04 on my desktop (runs like a charm). Then I used Crouton to install Ubuntu 12. 04 on my chromebook samsung (ARM). It also works quite well.  Here comes my question. Can we have a true Ubuntu (preferably 13.04) on my ARM chromebook?  It seems that the Crouton/Ubuntu is not 100% the real thing.  The best option would be to have the full Ubuntu 13.04 and remove the Chrome OS. How to rename a group of files with what looks like a Windows file path in their names I got a bunch of files with the filename messed up. All the file names have the same beginning which appear to be windows file directories. The problem is there are 700+ files and I really don't want go through and manually rename all of them. These are examples of the file names (Note: None of these have file directories):  G:some\really\long\file\path\then\the\name1.jpg G:some\really\long\file\path\then\the\name2.png G:some\really\long\file\path\then\the\filename.txt G:some\really\long\file\path\then\the\file_name.mov ...   The important take away is that each file has G:some\really\long\file\path\then\the\ before the file name that I would like.   So I would want the above files to look like:  name1.jpg name2.png filename.txt file_name.mov   I've tried the rename command and was not successful. I am still new with Linux and really am not sure on how to go about it or really what to google. Any help would be appreciated. How to avoid noisy renders in Cycles? I know that this question is a bit old or maybe overdone, but I'm running the latest edition of Blender and when I use the Cycles engine I get really fuzzy results and I can't find a simple, non-compromising solution to the quality.  I don't know exactly what I'm doing wrong here, but I'm sure others share my frustration.  Leaving everything in default settings, I started a new project and switched to the Cycles render.  I duplicated the cube and set colors for two Diffuse BSDF shaders, then went ahead and made walls and a floor all sharing the same diffuse shader.  I made two windows to emit blue light.  The screenshot has gaps between the walls because of the setup:  I'm aware that it's considered very incomplete and many have come to terms with some amount of noise, but is this normal?  Furthermore, with default settings or not, I can't change the amount of noise produced.  Supposedly, using "progressively refine" in the rendering tab should make it refine itself indefinitely, however Cycles only counts to 10 refines and then stops, creating a render which is a pixel-perfect match of the ordinary rendering method when it's completed.  I understand that there are tricks that can be used to reduce noise, but at the cost of extra processing time and usually small quality conflicts, like blurring.  My question essentially boils down to is this Cycles' current limit? Although we can create or update fieldsets using salesforce UI but Is there any way to insert or update FieldSets using apex code (using metadata or API calls) ? Trouble downloading packages list due to a "Hash sum mismatch" error