Is there any way to transpose table? I mean row to column and column to row?   Here is the code.     \documentclass[a4paper]{article} % &lt;-- remove12pt, again too big for your table. \usepackage{amsmath} \usepackage{amssymb} \usepackage{tabularx} \usepackage{comment} \oddsidemargin-16mm \usepackage{graphicx} \usepackage{hyperref} \usepackage[english]{babel} \usepackage{pdflscape} \usepackage{rotating} \newcommand{\specificthanks}[1]{\@fnsymbol{#1}}% Inserts a specific \thanks symbol %\usepackage[left=1.25in, right=1.0in, top=1.25in, bottom=1.0in]{geometry} \usepackage[margin=1cm]{geometry} %&lt;---- your table is larger then your original setting by geometry above \usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables for horizontal lines \newcommand{\piRsquare}{\pi r^2} \begin{document} \baselineskip=22pt \begin{landscape} \begin{tabularx}{1.3\textwidth}{|l|*{10}{X|}}\hline &amp; Low &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; High \\ \hline Fall &amp; Consumer Staples 15.83\% &amp; Healthcare 17.70\% &amp; Utilities 19.48\% &amp; Industrials 23.36\% &amp; Consumer Discretionary 24.04\% &amp; Energy 24.87\% &amp; Telecom 25.50\% &amp; Materials 26.92\% &amp; Financials 28.33\% &amp;Information Technology 34.91\% \\ \hline 2000 &amp; Utilities 14.50\% &amp; Consumer Staples 15.92\%  &amp; 200 &amp; &amp; &amp; &amp; &amp; &amp; &amp;\\\hline  2001&amp; Consumer Staples 16.70\% &amp; Utilities 16.81\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\\hline 2002&amp; Consumer Staples 21.20\% &amp; Utilities 22.49\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\\hline 2031&amp; Consumer Staples 17.49\% &amp; Utilities 18.67\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp;  \\\hline 2004&amp; Consumer Staples 10.04\% &amp; Utilities 10.70\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp;  \\\hline 2005&amp; Consumer Staples 8.73\% &amp; Financials 10.25\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp;  \\\hline 2006&amp; Consumer Staples 9.66\% &amp; Healthcare 11.46\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp;  \\\hline 2007&amp; Healthcare 12.58\% &amp; Consumer Staples 12.77\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\\hline 2008&amp; Consumer Staples 28.83\% &amp; Healthcare 28.84\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\\hline 2009&amp; Healthcare 16.10\% &amp; Consumer Staples 16.64\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\\hline 2010&amp; Healthcare 13.59\% &amp; Consumer Staples 14.53\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp; \\\hline 2011&amp; Consumer Staples 14.21\% &amp; Healthcare 15.89\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp;  \\\hline 2012&amp; Consumer Staples 11.12\% &amp; Healthcare 11.28\% &amp; &amp; &amp; &amp; &amp; &amp; &amp; &amp;  \\\hline \end{tabularx} \end{landscape} \end{document}
I would like to be able to transpose a tabular(x) table like in the following example. It is not necessary to be completely automated, but I don't want to change the data order, which is a painful and stupid. By "not completely automated" I mean that e.g. the headers can be done seperately etc.  Let's see the MWE:  \documentclass{article}  \usepackage{booktabs} \def\Midrule{\midrule[\heavyrulewidth]}  \begin{document}  \centering  \begin{tabular}{*6c}\toprule \bfseries Name &amp; Alice &amp; Bob &amp; Chuck &amp; Dave &amp; Eve\\\Midrule \bfseries Sex &amp; Female &amp; Male &amp; Male &amp; Male &amp; Female\\\midrule \bfseries Age &amp; 18 &amp; 19 &amp; 20 &amp; 21 &amp; 22\\\bottomrule \end{tabular}  \bigskip  Which I want to look like  \bigskip  \begin{tabular}{*3c}\toprule \bfseries Name &amp; \bfseries Sex &amp; \bfseries Age\\\Midrule Alice &amp; Female &amp; 18\\\midrule Bob &amp; Male &amp; 19\\\midrule Chuck &amp; Male &amp; 20\\\midrule Dave &amp; Male &amp; 21\\\midrule Eve &amp; Female &amp; 22\\\bottomrule \end{tabular}   \end{document}     Note: I know that , but I would like to get it without expl3 (mostly because people would might use my code quite often have an old LaTeX installed and I cannot be convincing them to change this).
Arriving at a different port of entry in the same state in USA? I am a girl in my early twenties traveling to USA from India and in my visa application I have provided the contact address for a relative in San Francisco, and their invitation letter. I would like to visit LA first. Will I face problems during immigration if I land in LA (with an immediate on wards ticket to SF)? I dont plan to get on the flight from LA to SFO.  Initially I was planning to fly to SFO from India and then fly to LA immediately after completing immigration at SFO airport. Restore Missing "Settings" (gnome-control-center) Icon in Ubuntu 18.04 I have been running Ubuntu 18.04 for a couple of weeks. I upgraded from 16.04 and all went smoothly.   I am not sure what I changed, but this morning I noticed that the "Settings" Icon that launches gnome-control-center is missing from "Show Applications" and the applications menu as well. When I searched from "Show Applications" for gnome-control-center or just settings, nothing showed up.   So, I figured I must have accidentally removed it and figured a reinstall of the package would resolve the issue. I have searched and found several postings where this worked. I tried:  sudo apt install gnome-control-center   And then rebooted - which reinstalled the gnome-control-center and I could then launch it from the command line. However, there was still no Settings Icon in any of the menus.   I also tried many other suggestions including:  sudo apt-get install --reinstall gnome-control-center sudo apt-get install ubuntu-desktop sudo apt install ubuntu-desktop --reinstall sudo apt-get install unity-control-center   However, none of these has been successful in restoring the icon into "Show Applications" or any applications menu.   Anyone have any suggestions on something I haven't tried? Would be much appreciated.  Or, is there a way to just manually recreate the icon?   Output of locate gnome-control-center.desktop:  /usr/share/applications/gnome-control-center.desktop  /home/dccrens/.local/share/applications/gnome-control-center.desktop /home/dccrens/.gnome/apps/gnome-control-center.desktop   I am running Ubuntu 18.04 desktop on kernel 4.15.0-45-generic. Today a couple of buffer overflows in NTP were announced , . It looks like updating my system to fix these issues is in order.   How can I find out if they have been fixed in the Ubuntu repositories, such that if I were to run:   sudo apt-get update sudo apt-get upgrade   then the fix would get installed and the vulnerability closed?   Edit: The selected answer specifically addresses the question of how to identify if a given CVE has been fixed or not, "Does Ubuntu generally post timely security updates?"  is certainly related but not identical Why are the lower 3 bits of curve25519/ed25519 secret keys cleared during creation? I am currently experimenting with ed25519 and I noticed that on secret key creation, bit 254 is always set and the lower 3 bits are always cleared. I found that bit 254 is always set to protect against timing attacks in this question:   But why are the lower 3 bits cleared. Obviously it has to do with the formula in the curve25519 paper:  The set of secret keys is defined to be $\{\underline{n} : n \in 2^{254} + 8\{0, 1, 2, 3,\ldots, 2^{251}-1\}\}$  It's because of the 8 in there, but why is that 8 there? I suspect it has something to do with theorem 2.1 in the curve25519 paper, but I am not sure, because I do not understand fully what is being proven there.   I am experimenting with ed25519 primitives in some cryptographic routines which need me to add scalars to the secret key (add secret keys). Even if I add two well formed ed25519 secret keys, the result will not always have bit 254 set and the lower 3 bits cleared. Is this a security problem? I understand the risk for bit 254 but not the lower 3. Regular expression to match DNS hostname or IP Address? Does anyone have a regular expression handy that will match any legal DNS hostname or IP address?  It's easy to write one that works 95% of the time, but I'm hoping to get something that's well tested to exactly match the latest RFC specs for DNS hostnames. Initialize class fields in constructor or at declaration? I've been programming in C# and Java recently and I am curious where the best place is to initialize my class fields.  Should I do it at declaration?:  public class Dice {     private int topFace = 1;     private Random myRand = new Random();      public void Roll()     {        // ......     } }   or in a constructor?:  public class Dice {     private int topFace;     private Random myRand;      public Dice()     {         topFace = 1;         myRand = new Random();     }      public void Roll()     {         // .....     } }   I'm really curious what some of you veterans think is the best practice. I want to be consistent and stick to one approach. A complete picture of the lattice of subfields for a cyclotomic extension over $\mathbb{Q}$. Is there a good general purpose algorithm (batch of theorems) allowing one to determine the intermediate fields between $\mathbb{Q}(\zeta)$ and $\mathbb{Q}$, where $\zeta$ is some primitive root of unity?  Let $p$ be a prime. Consider the case where $\zeta=\zeta_{p}$ is a primitive $p$-th root of unity. Then the Galois extension is cyclic of order $p-1$ and $1,\zeta,\dots,\zeta^{p-1}$ is a $\mathbb{Q}$-basis for the extension. In this case for any subgroup $H$ of $G=\mathbb{Z}/(p-1)$, by considering the sum $$\alpha_H=\sum_{\sigma\in H}\sigma\zeta,$$ we can observe that $\alpha_H$ lies in the fixed field for $H$, and any automorphism $\tau$ not in $H$ (note automorphisms are identified with subgroups of $\mathbb{Z}/(p-1)$ in the natural way), $\tau$ does not fix $\alpha_H$. Therefore we can conclude that $\mathbb{Q}(\alpha_H)$ is the fixed field of $H$.  In this way we can get all of the intermediate fields of $\zeta_p$ for all odd primes $p$.  We also have a theorem that says if we have $n=p^sq^t$, then $$\text{Gal}(\mathbb{Q}(\zeta_n)/\mathbb{Q})\simeq \text{Gal}(\mathbb{Q}(\zeta_{p^s})/\mathbb{Q})\times\text{Gal}(\mathbb{Q}(\zeta_{q^t})/\mathbb{Q}).$$  So what I have yet to understand is  How can one generally find the intermediate fields between $\mathbb{Q}(\zeta_{p^s})$ and $\mathbb{Q}$ for $s\ge 1$? I would like to also understand the case where $p=2, s&gt;1$ though this might turn out to be a separate case.  EDIT: Even the case $n=pq$ is a little murky to me. Even given the isomorphism given by the Chinese Remainder Theorem I don't see a priori how to get all the "product" subfields. My idea is that you can consider the separate subfields under $\text{Gal}(\mathbb{Q}(\zeta_{p})/\mathbb{Q})$ and $\text{Gal}(\mathbb{Q}(\zeta_{q})/\mathbb{Q})$ separately and then consider the pairwise product of the generators of various subfields to see if you get anything new, but my idea is too inchoate. What is the best way to copy a folder and all subfolders and files using c# GoogleApiClient.isConnected() return always false Why isn't it possible to combine vendor-specific pseudo-elements/classes into one rule set? In Java, are enum types inside a class static? How to add tags to files in Windows 7 so that they appear in search results In Windows 7, I want to add tags to my files (PDF, Word, Images etc) so that they appear directly in the search results, regardless of their content, title etc.    shows how to search by tag, but it does not tell how to add a tag in any file.  In the long term, I'm planning to add such tags programmatically as well. Can every non-simple group $G$ be written as a semidirect product? When people want to classify a group with certain (small) order, they seem to find a normal subgroup $H$ and a subgroup $K$, and then consider how many distinct $H \rtimes_\varphi K$ are there.  My question is: For any group $G$, does it always exist normal subgroup $H$, subgroup $K$ and $\phi : K \rightarrow Aut(H)$ s.t. $G\cong H \rtimes_\varphi K $?  Sorry if this question is too basic...  Thanks the comment and the answers. Then if the $G$ is not simple, can we have can $G\cong H\rtimes_\varphi K$ for proper subgroup $H$, $K$, with $H$ normal?  EDIT:  If we have a group $G$, that is not simple (then $G$ has at least one normal subgroup), are there always a non-trivial normal subgroup $H$ and a proper subgroup $K$ s.t. $G \cong H \rtimes K$. (Note that if $G$ is simple this is clearly not possible).  But the quaternion group and $Z_4$ given in answers have shown that we cannot always have it. Transparent text cut out of background Can you explain the "Axiom of choice" in simple terms? As I'm sure many of you do, I read the  webcomic regularly. The  involves a joke about the Axiom of Choice, which I didn't get.     I went to Wikipedia to see what the Axiom of Choice is, but as often happens with things like this, the Wikipedia entry is not in plain, simple, understandable language. Can someone give me a nice simple explanation of what this axiom is, and perhaps explain the XKCD joke as well? Dragging files into blender I am looking for a transparent screensaver. Or a way for there to be no screen saver, but instead of locking, it disables the mouse and most of the keyboard, until I hit an unlock key. How do I solve this limit: $\lim _{x \to 0} \left(\frac{ \sin x}{x}\right)^{1/x}$? $$\lim _{x \rightarrow 0} \left(\frac{ \sin x}{x}\right)^{1/x}$$  I have spent an hour on the above limit and have no work to show. I tried using L'Hopital's Rule, but just kept going around in circles. Any help would be appreciated. Thank you. Correct way to render crepuscular rays in cycles? While trying to use the new cycles volumetric rending features to create  (with the intention of updating ), I have found this to be a little trickier than I anticipated.    When I create a basic setup with a spot lamp (sun lamps don't seem to work, not sure if that is a result of their one directional nature or what..) and a world material like this:    Which gives me this (500 samples):    The problems with this that make me think that I'm missing something (aside from the rendertime and noise, which I understand to be a part of using bleeding edge new features) are:   The background shader/sky texture isn't visible at all (volume is too dense?) The lamp needed to be set to 50000 strength (this is of course dependent on the distance from the camera, but the kinds of strengths required to get some nice defined rays will blow everything out if volumes are disabled)   I can't seem to get a straight render (no compositing tricks) to look anything remotely like the pretty image in the release notes:        (source: )     Is this just how it works? Or is there some trick I have missed (not counting compositing/renderlayer tricks)? How does Delta baryon decay conserve angular momentum?