I'm not sure, if I'm just overlooking a simple preference setting or if what I would like to achieve is possible at all...  Anyway, I recently created a LaTeX class file (it's based on scrbook from the KOMA-Script package, but that might be beside the point) that looks like that:  \NeedsTeXFormat{LaTeX2e} \ProvidesClass{MyBook}[2016/06/03 My Book Class]  \LoadClass[ paper=17cm:22cm, DIV=12, twoside, fontsize=9pt, toc=flat ]{scrbook}  (...skipping a few more adjustments...)   I then created a LyX layout file by simply copying the contents of the original file scrbook.layout:  #% Do not delete the line below; configure depends on this #  \DeclareLaTeXClass{MyBook}  Format 35 Input scrclass.inc Input numreport.inc  Sides                   2 PageStyle               Headings  NoStyle Abstract   Style Chapter     LabelString          "\thechapter"     TocLevel 0 End   # Equations are numbered by chapter Counter equation     Within chapter     LabelString "\thechapter.\arabic{equation}" End   Style Bibliography     TopSep                4     LabelString           "Bibliography"     LabelFont       Series              Bold       Size                Largest     EndFont End   I put the files into the correct directories, reconfigured LyX and so far, everything is working perfectly.  ...well, except for the fact that LyX seems to ignore both the paper size (set as 17cm:22cm) and the margins (defined by setting DIV=12). Instead LyX always uses A4 for the paper size and standard margins (not sure how big). I'm assuming that LyX takes these from its own set of preferences, instead of honoring the class settings.  I could, of course, define the paper size and the margins in the preferences of the LyX document itself. However, I would like to give the class definition to several authors, without them having to do any further adjustments in the preferences. So, I would really prefer to define the paper size and the margins in a more central place.  Is this possible? Any help would be much appreciated. Thanks in advance!
I want to write several classes, most of them will use KOMA classes as base class.  However I stumbled upon the problem that some options (mainly concerned with layout) are not processed if given in the wrapper class:    \begin{filecontents}{test.cls}     \ProvidesClass{test}[2015/01/01]     \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}     \ProcessOptions\relax     \LoadClass[paper=a5]{scrartcl}   \end{filecontents}  \documentclass{test}  \usepackage{blindtext}  \begin{document}   \section{Test}   \blindtext \end{document}   This results in   LaTeX Warning: Unused global option(s):     [paper=a5]  If i give the option as \documentclass[paper=a5]{test} it is used correctly, because I pass the options to scrartcl. However I want to change the defaults for the layout.   How can I achieve this?
I have a register \count0=&lt;some-value&gt; and need to get the letter of the alphabet on the index of \count0. That is, if it is 1, I need an A, if 2, a B, etc.  Is this possible?  I'm reluctant sharing an MWE as it seems to overcomplicate things a bit:  \begin{tikzpicture} \node[regular polygon, regular polygon sides=7, minimum size=5cm] (A) {}; \foreach \i in {1,...,7}{     \count0=8     \advance\count0 by -\i     \node[circle, label=above:\scriptsize\the\count0, fill=black, minimum size=4pt, inner sep=0pt] (\the\count0) at (A.corner \i) {}; } \end{tikzpicture}   With the tikz package and the shapes.geometric tikz library.  This draws seven nodes labelled 1 .. 7 on a circle. I need to have A .. G instead of 1 .. 7. Let $(X,\mathcal{M},\mu)$ be a measure space and $\{f\}$ be a sequence of functions on $X$, each of which is integrable over $X$. Show that $\{f_n\}$ is uniformly integrable if and only if for each $\varepsilon \gt 0$, there is a $\delta \gt 0$ such that for any natural number $n$ and measurable subset $E$ of $X$, if $\mu(E) \lt \delta$, $$ \left|\int_E f_n~d\mu\right| \lt \epsilon.$$     I think one direction $(\Rightarrow)$ is clear. Since $f_n$ being uniformly integrable imply that for every $\varepsilon\gt 0,~\exists \delta \gt 0$ such that for any $E\in \mathcal{M},~\mu(E)\lt \delta$, $\int_E |f_n|~d\mu$ for every natural $n$. But then   $$ \left|\int_E f_n~d\mu\right|\le \int_E|f_n|~d\mu \lt \varepsilon.$$    Any suggestions for the other direction?   Edit:  Following Davide's suggestions, I have   $$ \begin{align*} \int_E |f_n|~d\mu &amp; \le \int_{E\cap [f_n \ge 0]} f_n~d\mu + \int_{E\cap [f_n \lt 0]} (-f_n)~d\mu\\ &amp; = \left| \int_{E\cap [f_n \ge 0]} f_n~d\mu \right| + \left| \int_{E\cap [f_n \lt 0]}f_n~d\mu \right| \\ &amp; \lt \varepsilon + \varepsilon = 2\varepsilon. \end{align*} $$ Are enemies with immunity to the Poisoned condition unaffected by Contagion? After the , the spell  now inflicts the  condition upon a successful melee spell attack. The relevant spell text is below, with updated portions highlighted in bold:  Your touch inflicts disease. Make a melee spell attack against a creature within your reach. On a hit, the target is poisoned. At the end of each of the poisoned target's turns, the target must make a Constitution saving throw. If the target succeeds on three of these saves, it is no longer poisoned, and the spell ends. If the target fails three of these saves, the target is no longer poisoned, but choose one of the diseases below. The target is subjected to the chosen disease for the spell's duration. Since this spell induces a natural disease in its target, any effect that removes a disease or otherwise ameliorates a disease's effects apply to it.  The wording of the spell leads me to conclude that this spell still inflicts a disease, which has the immediate effect of poisoning the target. Therefore, even if a target has poison immunity, they will still make Constitution saves as designated to see if the disease takes effect. However, the line, &quot;At the end of each of the poisoned target's turns...&quot; also leads me to think that an enemy with poison-immunity cannot be the Poisoned target, therefore disallowing the remaining sequence of events. Are targets with immunity to the Poisoned condition therefore immune to contagion? Arrangements of MISSISSIPPI with all S's and P's separated If the all S,P are separated in the word MISSISSIPPI then the total possible arrangements are $k\frac {10!}{4!.4!} $ then value of k is? Now all S,P are separated so we can have slash method. Thus they can be placed alternatively in $6! $ ways and rest 5 can be placed in $5! $ ways. Thus we equate to get $$6!.5!=k\frac {10!}{4!.4!} $$  to get $k=13.7$ while $k=4/3$ .Where is my mistake Thanks What happen if I install VirtualBox Guest Additions on a host? I have a bootable USB drive with Ubuntu installed.   This morning I Installed VirtualBox and booted my Ubuntu drive in a VM. I then installed the guest additions in Ubuntu.   My question/curiosity is, what would happen if I boot the drive again outside of the VirtualBox VM, using a physical computer?  Will my Ubuntu work normally or is something going to change? Why does ice make such peculiar sounds? I've come across a couple of videos where some interesting sounds are produced using ice.  (Click on the images to see the video.)      Here, they drop a block of ice into a deep crevice and as the block falls, you can hear some strange sounds. These sounds remind me of some sound effects in old cartoons and sci-fi movies. The pitch of the sounds start high and end up low. Is this some kind of doppler effect?      Here, there's a man performing 'nordic skating', making the same sounds as he skates on top of a thin ice sheet. Maybe they are caused by the cracking ice. But why does that sound like this?    There are some other videos too, where they skip stones on frozen lakes.    Here the ice makes some high-frequency sounds which correspond to the chirping of birds.  What are these sounds and why do they sound the way they sound? Is there a word to describe someone who tends to disagree with others only to upset them? What's the word to describe someone who acts arrogantly and always disagrees with others unreasonably in order to upset people around him/her?  [I'm not looking for adjectives like unpleasant, annoying, unfriendly, rude, I'm looking for a more specific term like opinionated, didactic, loquacious, gregarious ]  I think I'd come across it before but I've forgotten what it is.. How do I change the plymouth bootscreen? With regards to Plymouth --  Are there alternative boot screens available?  What's the easiest way to change the boot screen? I just manually summoned the Eye of Cthulhu, going into battle with copper armour, tungsten broadsword, gold bow, jester arrows and plenty of lesser healing potions. I came rather close to death but I managed to stay alive. However, the Eye took off when I had his health down to ~1700. I'm assuming this means you only have a few minutes to finish it off after a certain point. Is there any equipment I'm missing to help kill the Eye faster and to help my survivability? If it's relevant, my current life is 120. Object not visible in render I have a model which you can see here (camera perspective).    In the second image, you can see how the render turned out.    I'm at my wit's end trying to figure our why it's not showing up in the render. If anyone needs more information, just ask and I'll get it to you. I've already checked the normals and they're not the cause. Show that $\frac 1{1+x+y^{-1}}+\frac1{1+y+z^{-1}}+\frac1{1+z+x^{-1}}=1$ if $xyz=1$ Does anyone know any sources for free European city boundary data? Checking for null before event dispatching... thread safe? I have a large dictionary file with 300,000+ words in it and I'm trying to find all words with the vowels aeiou in that order and have only exactly 5 vowels. My current attempt does not seem to be working and for the life of me I don't understand why.  less mywords | grep -iE [^aeiou]*a[^aeiou]*e[^aeiou]*i[^aeiou]*o[^aeiou]*u[^aeiou]*   I think it get's all the words I'm looking for but there are a few words that pop up which I can not get rid of.  abstemiousnesses ultraserious   There are a few other but they are in the same vein. Curiously, even if I add something like [^u]* to the front ultraserious keeping popping back up! Any solution would be fine however I would like it restricted to grep as we've been told it can be done using only grep. ETS() function, how to avoid forecast not in line with historical data? I am working on an alogorithm in R to automatize a monthly forecast calculation. I am using, among others, the ets() function from the forecast package to calculate forecast. It is working very well.  Unfortunately, for some specific time series, the result I get is weird.  Please, find below the code i am using :  train_ts&lt;- ts(values, frequency=12) fit2&lt;-ets(train_ts, model="ZZZ", damped=TRUE, alpha=NULL, beta=NULL, gamma=NULL,              phi=NULL, additive.only=FALSE, lambda=TRUE,              lower=c(0.0001,0.0001,0.0001,0.8),upper=c(0.9999,0.9999,0.9999,0.98),              opt.crit=c("lik","amse","mse","sigma","mae"), nmse=3,              bounds=c("both","usual","admissible"), ic=c("aicc","aic","bic"),             restrict=TRUE)   ets &lt;- forecast(fit2,h=forecasthorizon,method ='ets')      Please, you will find below the concerned history data set :   values &lt;- c(27, 27, 7, 24, 39, 40, 24, 45, 36, 37, 31, 47, 16, 24, 6, 21,  35, 36, 21, 40, 32, 33, 27, 42, 14, 21, 5, 19, 31, 32, 19, 36,  29, 29, 24, 42, 15, 24, 21)   Here, on the graph, you will see the historical data (black), the fitted value (green) and the forecast(blue). The forecast is definitely not in lines with the fitted value.  Do you have any idea on how to "bound" the forecat to be "in line" with the historical sales? Can I successfully bake previously-frozen bread dough? I prefer my bread freshly baked (who doesn't?), but my mixer prefers kneading two loaves at a time to just kneading one. I have tried to freeze the second loaf before baking it, but when I thaw it, it does not rise well before baking. I've tried thawing it entirely in the refrigerator and then letting it rise on the counter, but that did not seem to work. Does anyone have a good technique or suggestion for this? If $m$ divides $n$, find a free resolution of $\mathbb{Z}/m$ as a $\mathbb{Z}/n$-module. If $m$ divides $n$, find a free resolution of $\mathbb{Z}/m$ as a $\mathbb{Z}/n$-module.   I have tried this one and got $0 \leftarrow \mathbb{Z}/m \leftarrow \mathbb{Z}/n \leftarrow \mathbb{Z}/n$.  The map $\mathbb{Z}/n \to \mathbb{Z}/n$ is multiplication by $m$, but I couldn't go further. Please help me. Where can I ask a question about finding general software that meets certain requirements? Improve alignment of "Learn more" button in "Newest badge" popup The popup when you click on your newest badge in your user profile has a &quot;Learn more&quot; button, but its alignment is suboptimal; it's too close to the top of its container:  It looks better with a 4px top margin: Execute program from within a C program How should I run another program from within my C program? I need to be able to write data into STDIN of the launched program (and maybe read from it's STDOUT)  I am not sure if this is a standard C function. I need the solution that should work under Linux.