I'm using twoside on my article. The first pages in the report (Abstract and preface) has the correct margins (larger margins to the right for left-pages, and larger margins to the left for right-pages).  However, the margins swap when the toc begins, and remains wrong for the rest of the report.  Any suggestions? I don't know how to make a MWE of this problem.  EDIT: It turns out that the first pages have wrong margins, while the rest of the article has correct margins.
Shouldn't the twoside option produce a wider margin at the binding/spine edge, rather than the other way around? I'm using \documentclass[twoside]{report}.
How do I determine whether a drive is an HDD or SSD in Windows 8? I've recently received an assembled PC. I don't know if the disk is an SSD or old HDD (whether SATA or other technologies).  I can't find a way to tell if the disk is SSD or not, apart from the size of the disk. However, now that the sizes of SSDs are getting close to that of HDDs, checking the size is not a good and robust way to distinguish drive type. Is there some other way to determine if the disk is an SSD? "At the time" versus "at that time" Are there any disadvantages to always using nvarchar(MAX)? In SQL Server 2005, are there any disadvantages to making all character fields nvarchar(MAX) rather than specifying a length explicitly, e.g. nvarchar(255)? (Apart from the obvious one that you aren't able to limit the field length at the database level) How to choose the default gcc and g++ version? Is it possible to configure Windows 7 to use YYYY-MM-DD instead of DD/MM/YYYY as the date format? How? Where? Discuss convergence of the series $\sum \frac{(1+n)^n}{n!}x^n$. Let    $$a_n = \dfrac{(1+n)^n}{n!}$$   Discuss convergence of the series $\displaystyle \sum a_nx^n$.   I've shown that the series converges absolutely when |x| &lt; 1/e and diverged when |x| > 1/e. I can't seem to determine what happens at |x| = 1/e Errors in matrix equation? I'm getting errors in a matrix equation. When I compile it looks fine, but I'd like to fix them so I don't have to press return for every error at compile time. The code for the equation is:  \begin{equation*}  \begin{bmatrix} U(1,t)  &amp; \cdots &amp; U(n,t) \\  \vdots &amp; \ddots &amp; \vdots \\ O_{n1} &amp; \cdots &amp; O_{nn}  \end{bmatrix} \times \begin{bmatrix} W(1,1)  &amp; \cdots &amp; W(1,n) \\  \vdots &amp; \ddots &amp; \vdots \\  W(n,1) &amp; \cdots &amp; W(n,n)  \end{bmatrix} = \begin{bmatrix}  D(1,t)  &amp; \cdots &amp; D(n,t) \\ \vdots &amp; \ddots &amp; \vdots \\ I_{n1} &amp; \cdots &amp; I_{nn} \end{bmatrix}  \end{equation*}   The errors I'm getting are related to missing $'s inserted. Does the new guidance on duplicate questions suggest closing a question as duplicate, if the original answers the OP's question? In other words, should we now look at the content of the answers when we are evaluating questions for possible duplication?  Is it sufficient to say "Your answer can be found in this question over here, therefore your question is a duplicate?"  The new guidance is here:    Among other things, it describes the new close banner:     This question already has an answer here:   Link to the Duplicate Question   ... which seems to suggest that, if some other question in the system answers the OP's question, then the OP's question can be closed as a duplicate on that basis (even if the question itself is not necessarily duplicated).  Example Here:    Note the comments below the question, where I dispute the assertion made there that it is a duplicate question.  The original question doesn't mention unit testing. polyglossia or bidi bug: [\d\.] gets inverted to [\.\d] After bidi was updated to v. 19.6 (2016-05-23), using at least one RTL language with polyglossia leads to number and following dot being inverted. Cf.  \documentclass{book} \usepackage{polyglossia} \setotherlanguage{hebrew} \begin{document} 6. \end{document}   with and without \setotherlanguage{hebrew}. Note that it is not necessary to actually use that language.  I do not know whether this is a bug in bidi or an incompatible change which polyglossia needs to adapt to. Because of this I have not opened an issue on polyglossia's github page. Sadly, bidi's contact information are outdated – the sourceforge referred to on CTAN is unused and the github page that is mentioned in the package's readme and PDF does not seem to exist any more either.  The problem might be something along the lines of     Does anybody have the previous version of bidi at hand?  TIA, Dario When would you use a voltage regulator vs a resistor voltage divider?  Are there any uses for which a resistor divider is particularly bad? Prove: If $a\mid m$ and $b\mid m$ and $\gcd(a,b)=1$ then $ab\mid m$ Prevent Windows 7 from sleep + power button hook I'm used to not shutdown Windows but to sleeping it. I set up power button (PB) action to do it. When I want to shutdown I must go to start -> Shutdown. That's OK.  Now I think of a mechanism that will be hooked up to a PB. Should be started after I press PB but before OS will go to sleep. Something that will check few conditions (i.e. running backup, running AV scan, ...) and if true (something is running) prevent go to sleep.  Optionally: It would be nice to start the same "mechanism" before restart and shutdown (invoked not only from Start menu, but also by other software (i.e. installers) but with option to allow some sources (i.e. UPS software)  Generally: How to run something after PowerButton but before Sleeping. How to code (C#.NET, vbs, batch (preferred)) sleep prevention (cancellation). Class is not key value coding-compliant Correct location for piping and redirecting output in find -exec? I'm using find with the -exec option in console, on FreeBSD (for example, find . -exec sha1 {} \;).   How do I correctly place (and if needed, escape) redirect and other execution control symbols that could syntactically apply to either of the exec command or the find command, such as > >> | and &amp;, where I might want the symbol to apply to the find or the exec commands on different occasions?  On the same theme, what is the syntax if I want to use tee to view the output of the -exec commands on the console (to watch progress) and also appended to a file (for later use)?   (I know shells vary but hopefully the most used shells such as sh/csh are quite similar?)  Update:  In part, I want to learn if nested find -exec can be done without scripting, as a simple command. Here is the use-case that prompted the questio :   outer find: find all subdirs matching DIR_MATCH_TEXT in DIR1  inner find: for each matching subdir found in the outer loop (call it DIR2), execute the commandfind DIR2 -name "FILE_MATCH_TEXT" -exec sha1 {} \; &gt;&gt; DIR1/DIR2_hashes.txt   The aim being to create a set of files, one for each matching subdir, containing the output of some find -exec action on that subdir.  By this I mean that, if /backups contains /jan2017 and /feb2017, the result will be two files at /backups/jan2017_hashes.txt and /backups/feb2017_hashes.txt, with jan2017_hashes.txt containing the output from sha1 for (say) all .pdf files in /backups/jan2017, and feb2017_hashes.txt containing the output from sha1 for all .pdf files in /backups/feb2017.  From replies so far I gather the outer find would have to use a shell call as the argument to -exec? CSS transition shorthand with multiple properties? Array Modifier - Fit Curve too short I want to create a simple road. To do this I first want to apply an 'Array Modifier' which fits the curve. So in the Array modifier I changed the 'Fit Type' from 'Fixed Count' to 'Fit Curve'. But now the Path is much shorter than the road it self.  And If I extrude the curve the road goes even longer and longer. Is there a way the road is as long as the path? Short description of the scoping rules? What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers. : So how many named special cases of each modal verb are there, in toto? There's   1. subjunctive should, and   2. mandative should, and   3. , at least;   and I s[up]pose 4. Should we? is suggestive should, and   5. Shouldn't we? is tag **should**, and I can think of a lot more.    I ask about only operative uses of this modal verb including literary and formal usage,  but please omit anything obsolete. I'm trying to classify them and learn the formal terms describing each. Are there any apt others in addition to the ones above? (I added the enumeration below)  1. What's 'subjunctive should'?  Whenever should is conjugated in the subjunctive mood? 5. What's a tag **should** ? 6. Where does  should/would  feature? What's it called? This should is detailed in   or  or . Recently, I found this , that allows you to generate a 3D model from a 2D image.   It works very well and you can download an OBJ file. Vertex are colored and when I import it using Blender, I can't see any Vertex color.   Using Cycle (I prefer a internal solution if it exists) according to some answers I've found on Blender Stack Exchange, I patched some nodes : Attribute -> Diffuse BDSF -> Material Output.  Unfortunately, I can't get it works, the model stills black.    When I open the OBJ file, I see that color per vertex are there :  v 43.747554 107.000000 69.000000 0.470588 0.380392 0.309804 v 43.780163 115.000000 64.500000 0.427451 0.337255 0.266667 v 43.782527 107.000000 68.500000 0.470588 0.380392 0.309804 v 43.801902 115.000000 65.000000 0.427451 0.337255 0.266667 v 43.806461 107.000000 69.500000 0.470588 0.380392 0.309804 v 43.821703 115.000000 64.000000 0.427451 0.337255 0.266667 v 43.838352 108.000000 68.500000 0.466667 0.376471 0.305882 v 43.854670 106.000000 69.000000 0.482353 0.392157 0.321569 v 43.856176 108.000000 69.000000 0.466667 0.376471 0.305882 v 43.873876 106.000000 69.500000 0.482353 0.392157 0.321569 v 43.888855 110.000000 68.000000 0.466667 0.376471 0.305882 v 43.891471 109.000000 68.000000 0.466667 0.376471 0.305882 v 43.892733 110.000000 67.500000 0.466667 0.376471 0.305882 v 43.895170 108.000000 68.000000 0.466667 0.376471 0.305882 v 43.900904 109.000000 68.500000 0.466667 0.376471 0.305882 v 43.907584 107.000000 68.000000 0.470588 0.380392 0.309804 v 43.917898 115.000000 65.500000 0.427451 0.337255 0.266667 v 43.925000 111.000000 67.500000 0.454902 0.364706 0.294118   According to some answers here, Blender import more easily the vertex color of a PLY file so I tried to convert to PLY with two different sites :   1. meshconvert .com : Give me a 3.5 Mo file  2. greentoken.de/onlineconv : Give me a 2.3 Mo file  (Of course, if you know some other sites I could try, it interest me)  I guess that color data are lost with greentoken (not sure).   When I import the 3.5 Mo PLY file in blender, I need to be in textured display mode, then I think I see my vertex color value but in black &amp; white instead of RGB, that is weird. Anyway, I can't get it work  EDIT 1 : I opened PLY files and color vertex aren't there... I need to find a better converter   EDIT 2 : I tried www.ofoct.com/3d-model-file-for-3d-printer-converter it doens't take vertex color into account. In fact, in each PLY files I converted with the various sites here, there is a common line :      comment Created by Open Asset Import Library -    (v3.2.0)   (the version varies)  EDIT 3 : In fact it seems that model converted by Green token, keep the vertex color. That is weird because that's the smallest file :   ply format ascii 1.0 comment Created by Open Asset Import Library - http://assimp.sf.net (v3.1.187496374) element vertex 29793 property float x property float y property float z property float nx property float ny property float nz element face 59582 property list uint uint vertex_index end_header 82 103 6.37528 0.40963 0.0331735 0.911648 82 102 6.57043 0.272087 0.235193 0.933088 82.6603 103 6.5 -0.14071 0.043367 0.9891 82 103.935 6.5 0.201161 -0.136681 0.969976 81.5475 103 7 0.825371 0.0489484 0.562465 83 102 6.62244 -0.248588 0.147929 0.957247 83 103 6.56417 -0.411487 -0.0867124 0.907281 81.5819 104 7 0.787841 -0.0338904 0.614946 82 105 6.63886 0.0715144 -0.131383 0.988749 83 104 6.77321 -0.431167 -0.171652 0.885794 83.6781 102 7 -0.470137 0.061235 0.880467 83.6327 103 7 -0.543939 -0.0905203 0.834228 83 105 6.96709 -0.445324 -0.163091 0.880391 84 103 7.23724 -0.520118 -0.141377 0.842313 84 104 7.47775 -0.546517 -0.195833 0.814229 84 102 7.16782 -0.416323 -0.021798 0.908955 83.3508 101 7 -0.314426 0.156435 0.936304 84 101 7.22581 -0.280388 0.0301462 0.959413 84.9009 101 7.5 -0.339848 -0.0219793 0.940223 84.6939 102 7.5 -0.435242 -0.0925323 0.895546   As you can see, nx, ny and nz correspond to RGB values.. 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..