I am using some code recommended by the editor of a journal.  However, the \renewcommand line for \thesubsection and \thesubsubsection seems to be causing a problem with the cross-referencing function \ref.  When I reference a subsection (e.g., 'II.A') it only displays "A" or a subsubsection (e.g., 'II.A.1') I just get "1".  Is there a way to fix this code so that it properly references the subsections with the section number included.  \documentclass[12pt, titlepage, reqno]{article}  %load packages \usepackage[margin=1in]{geometry} %overwrites 1.5" default margins   from    article class \usepackage{graphicx}% Include figure files \usepackage{dcolumn}% Align table columns on decimal point \usepackage{amssymb,amsmath,amsfonts}% popular packages from the American Mathematical Society \usepackage{bm}% Bold Math package \usepackage{array} \usepackage{color} %colored text \usepackage{float} \usepackage{setspace} \usepackage[super,comma,sort,compress]{natbib} \usepackage{latexsym} \usepackage[mathscr]{eucal} \usepackage{enumerate} \usepackage{titlesec} %for formatting section titles %\usepackage{appendix}   %% SECTION TITLE FORMATTING \renewcommand{\thesection}{\Roman{section}} %numbering \titleformat{\section}   {\normalfont \bfseries \raggedright \uppercase}   {\thesection.} %numbering   {0.5em}{}  \renewcommand{\thesubsection}{\Alph{subsection}} %numbering \titleformat{\subsection}   {\normalfont \bfseries \raggedright}   {\thesubsection.} %numbering   {1em}{}  \renewcommand{\thesubsubsection}{\arabic{subsubsection}} %numbering \titleformat{\subsubsection}   {\normalfont \bfseries \itshape \raggedright}   {\thesubsubsection.} %numbering   {1em}{}
I have a document divided into \part \chapter \section and \subsection. I have 3 parts and in each part I reset all the counters.  I want that, when I do a crossref to something that is in the 1st part, chapter 3 and section 5, that LaTeX prints something like I-3.5, but  I don't want that in the tableofcontents part that LaTeX prints the part number. For example, what I want is:     Part I      chapter 1 section 1.1 section 1.2      chapter 2   AND NOT     chapter I-1 section I-1.1 section I-1.2      chapter I-2   The command that I've tried   \renewcommand{\thechapter}{\thepart-\arabic{chapter}} \renewcommand{\thesection}{\thechapter.\arabic{section}}   does exactly what I've said  Can anyone help me?
Ubuntu 18.04 bond with netplan duplicate MAC address after cloning linq: order by random What are 'user' and 'system' times measuring in R system.time(exp) output? When exactly can a caster stop concentrating on a spell? Proving a sequence converges by defining the sequence recursively. Let $a &gt; 0$. Choose $x_1 &gt;$ $\sqrt a$. Define a sequence {$x_n$} recursively as $x_{n+1} = 1/2(x_n + a/x_n)$ for $n &gt; 1$.   Prove that lim$x_n = \sqrt a$.  I think I first want to prove that {$x_n$} is bounded below by $\sqrt a$. But, I am having trouble with this. Could someone help me out a little? A Basic Question about Gravity, Inertia or Momentum or something along those lines Let us say you are in an inertial reference frame with a circular planar disk. If you take your meter measuring rods (or perhaps tape measure) you can find the diameter and circumference of the disk. If you divide the circumference by the diameter, you will get exactly $\pi$. Now you start rotating the disk. A book I have claims that now the ratio will be different (lets call it $\pi_\circ$ to avoid ambiguity.) This has caused to reevaluate my understanding of special relativity (this is a set up to general relativity, but the problem itself only requires the special theory.) My problem is that, sure, the measuring rods (or tape) would contract on the circumference, but wouldn't the circumference contract a similar amount, therefore giving a measurement of $\pi$ in every reference frame according to your own measuring rods. Of course, this reasoning goes on to make me question how I understood all of special relativity up this point. Prevent VLC from starting a new instance every time a media file is opened I know there are some command-line applications like pdflatex that can help me to compile a LaTex document from C#.Net (using the System.Diagnostics.Process class) .   I wanna know that what's the best command-line tool for compiling a TeX document ? I have a laptop running 11.10 with 2 network interfaces, wired and wireless.  Wireless interface connects to the router with DHCP and connects to the internet. Wired interface is connected to a switch. I want the computers on the switch to get their IP addresses from the router not my laptop.     How would I go about setting this up? Bridging the interfaces? Can I travel to the UK one day before my visa starts? I am planning to travel to the UK with my mother. Her visa is valid from 15th June and my visa's validity starts on July 1st.   I will be leaving from Chennai on June 30th, with a transit in Mumbai, but the arrival in the UK is late on the 30th of June. Will I be permitted to travel or will I be prevented from boarding because of the July 1 validity?   Do I need to apply for a vignette transfer? I'm confused about it, as some sites say it is only for those with a new passport. If I do need a vignette transfer, what is the procedure and what documents are required? Sample size for logistic regression? I want to make a logistic model from my survey data. It is a small survey of four residential colonies in which only 154 respondents were interviewed. My dependent variable is "satisfactory transition to work". I found that, of the 154 respondents, 73 said that they have satisfactorily transitioned to work, while the rest did not. So the dependent variable is binary in nature and I decided to use logistic regression. I have seven independent variables (three continuous and four nominal). One guideline suggest that there should be 10 cases for each predictor / independent variable (Agresti, 2007). Based on this guideline I feel that it is OK to run logistic regression.    Am I right? If not please let me know how to decide the number of independent variables? What does Superman do with his regular clothes after changing in the phone booth? We all know that Superman changes in the phone booth. But where does he put his regular clothes while he's on a mission? He doesn't throw it out, because he changes back. But we don't see him carrying a bag of dirty laundry while he's on a mission.  ("In his right hand, Superman has Lois Lane, and in his left hand he seems to be holding... boxers??)  And I can't imagine he leaves it in the phone booth.  So where does Superman leave his regular clothes after he changes? are two consecutive numbers relatively prime? What the #$@&%*! is that called? Is there a name for the use of symbols in place of curse words, for example #$@&amp;%*!? Why am I allowed to turn my focusing ring beyond infinity? parskip package, keep the indents That may be a stupid question but is there a way to keep the indent while using the parskip package? I use parskip to keep spacing between my paragraphs while leaving the table of contents and lists intacts but I would like to keep the indents in my text.  Code 1 :  \usepackage{parskip}  \tableofcontents  \section{Section 1} \subsection{Sub 1}  Paragraph 1  Paragraph 2   Code 2  \setlength{\parskip}{10pt}  \tableofcontents  \section{Section 1} \subsection{Sub 1}  Paragraph 1  Paragraph 2   Basically I want the aspect of the table of contents (and possible lists) from the code 1 while keeping the indent like in the code 2. The package parskip works great but I just don't like that it deletes the indents and I'd like to find a way to prevent it from doing that.   Thank you. Plot points:   I think the man was one-armed or had one damaged/withered arm. He is an artist when we meet him. He's picked up by aliens to represent earth in a galactic armada. Put in a ship with other aliens only there so a representative of their species can be said to be present - but not expected to actually contribute much to the coming fight. Fight is to protect against invaders from another galaxy. Somehow or other, their ship and crew become integral to winning the war. I'm hoping someone can give me a nudge in the right direction...     Let $F$ be a finite field, and let $f(x)$ be a nonconstant polynomial whose derivative is the zero polynomial.  Prove that $f$ cannot be irreducible over $F$.   I've got that every root of $f$ is a multiple root and that for $F=\mathbb{F}_{p^r}$, the exponent of every term of $f$ is a multiple of $p$. Show reference label when it is undefined When a reference is undefined, LaTeX shows simply [??] which doesn't give much information. I would like it to show the label instead. This is useful when more collaborators work on the same preprint and the references are yet to be done.  I'm using neither biblatex nor natbib. I do use bibtex but it is irrelevant for this question.  MWE:  \documentclass{article}  \begin{document}  This: \cite{undef} should look like: [{\bfseries ?? undef}]  \end{document}