Suppose I want to change from numbering my \sections, \subsections, and so on to not numbering them.  As far as I know, the only way is to manually change (e.g.) \section{Foo} to \section*{Foo} and so on, all through the document... one by one.  That seems at odds with the LaTeX philosophy.  It is also a very manual and tedious process, especially when one has a master document and sub-files.  I know there are tricks within editors and the command line to globally replace text with replacement text... but a cleaner solution would be a LaTeX option.  In other words:  Is there a global LaTeX option one can set to swap from numbered to unnumbered sectioning (and vice verse)?  P.
120671
Every time I call \section{**Section Name**}, a number appears to the left of the name of the section.  How do I hide this number?
105475
I have many unnumbered sections in my report (more than 100), all created with:  \section*{section name}  I want to find a way to easily add them all to the TOC (specifically to a minitoc). Since I use the * to remove the numbering, they won't appear in TOC. I found out in minitoc documentation that I should use:  \addcontentsline{toc}{section}{repeat here section title}   However, I don't want to have a duplicated title in every section, or even to change all the involved files to add those already written sections to the TOC. How to add those sections' names to the minitoc without using the addcontentsline command? Is it possible?
35276
I'm looking for a way to change the color of the main title of a document without redefining the \maketitle.  A Google search only yields how to systematically change the section titles that does not include the main title.
16288
There is a problem with the alignment of the numbering of the ToC: When we use   \renewcommand{\thesection}{\Roman{section}}   the numbers encroach on the titles. When the command is commented out, the numbers are all aligned [from the first number on the left] but the titles do not begin at the same position.  What I want is to use \Roman{section} but with the numbers being displaced after V (or 9 in arabic) so that the first letters of the  titles are all aligned !  An illustration:  %\RequirePackage{fix-cm} \documentclass[a4paper, 11pt, twoside]{article}  \renewcommand{\thesection}{\Roman{section}}  \begin{document}   \tableofcontents \normalfont %\cleardoublepage  \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY}  \end{document}
105687
I have 20 text files with various extensions in a directory.  I want to replace "nnn" with "ooo" in all files.  I could import them into a project in Eclipse or Visual Studio to replace them all but that is overkill and would add other meta files etc.  What is a simple way to do this, I'm thinking: select all files, right click, choose some tool called (e.g. "QuickReplacer") and fill in find and replace, click and done.  Does anyone know of a tool like this?
56064
I have this text in LaTeX:  $$ sgn(x)= \begin{cases}    -1 &amp; \mbox{za podmínky } x&gt;0\\     0 &amp; \mbox{za podmínky } x=0\\     1 &amp; \mbox{za podmínky } x&gt;0 \end{cases} $$     But I would like to move the "0" and "1" more to the right. I need to move these numbers just below "1", not to have it below "-".
13890
I'm trying to make a document with multiple "themes." This involves changing the color of the headers, section names, and headers based on what the current section is. The colors I want to use are custom colors.  Now, I know how to make this the same for the whole document, but I was trying to find a way that would automatically change it automatically depending on the current section value. I thought that it would be really easy with the ifthen package, as it seemed to be made for this (I could see if the section was equal to a value). However, it did not go as expected. I have a MWE below. Here I changed only the subsection name for clarity. I tried to make the subsections of Section One red and the subsections of Section Two blue. However, it seems like everything is blue. I did something similar for the header, but didn't go anywhere. Could anyone kindly point me in the right direction with this?  \documentclass[twoside]{article}  % For blind text \usepackage[english]{babel} \usepackage{blindtext}  % Here begins my attempt \usepackage{ifthen} \usepackage{titlesec} % Coloring the section names (didn't mess with this, but I am using this as the basis of coloring the section and subsection names) \titleformat{\section}{\LARGE\normalfont\center\color{blue}}{\thesection}{1em}{} % My attempted ifthenelse statement. I put the if, then, and else arguments on different lines for clarity \ifthenelse {\equal{\thesection}{Section One}} {\titleformat{\subsection}{\Large\normalfont\color{red}}{\thesubsection}{1em}{}} {\titleformat{\subsection}{\Large\normalfont\color{blue}}{\thesubsection}{1em}{}} % Sections begin on new page \newcommand{\sectionbreak}{\clearpage}  % For headers \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[OR]{{\textsc{\leftmark}}\quad\quad\thepage} \fancyhead[EL]{\thepage\quad\quad{\textsc{\leftmark}}} \renewcommand{\sectionmark}[1]{\markboth{#1}{}}  % For colors \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}  \begin{document}  \section{Section One}  \subsection{Subsection One} \blindtext[5]  \subsection{Subsection Two} \blindtext[5]  \section{Section Two}  \subsection{Subsection One} \blindtext[5]  \subsection{Subsection Two} \blindtext[5]  \end{document}
67933
My question is how can I convert all text from uppercase to lowercase and vice versa? That is to change the cases of all the letters. It has to be done with a sed replacement somehow.
91134
I'm searching how to remove the chapter+section number on the theorem numbering with a section counter.  With no section counter it's like:  \newtheorem{thm}{Title} Chapter1 ----Section 1 --------thm 1 --------thm 2 ----Section 2 --------thm 3 --------thm 4 Chapter2 ----Section 1 --------thm 5 --------thm 6 ----Section 2 --------thm 7 --------thm 8   And with the section counter:  \newtheorem{thm}{Title}[section] Chapter 1 ----Section 1 --------thm 1.1.1 --------thm 1.1.2 ----Section 2 --------thm 1.2.1 --------thm 1.2.2 Chapter 2 ----Section 1 --------thm 2.1.1 --------thm 2.1.2 ----Section 2 --------thm 2.2.1 --------thm 2.2.2   And I want numbering my theorems like this:  \newtheorem???????? Chapter 1 ----Section 1 --------thm 1 --------thm 2 ----Section 2 --------thm 1 --------thm 2 Chapter 2 ----Section 1 --------thm 1 --------thm 2 ----Section 2 --------thm 1 --------thm 2   I know it's always a pain to remove such things, thanks for whoever will help me ^^
57993
If I only input the section title but no body text, Latex can not start new page automatically. The following is my minimal work.  \documentclass{book}  \begin{document}  \part{Title of Part I} \chapter{Title of chapter a} \section{section-1} \section{section-2} \section{section-3} \section{section-4} \section{section-5} \section{section-6} \section{section-7} \section{section-8} \section{section-9} \section{section-10}  \section{section-11} \section{section-12} \section{section-13} \section{section-14} \section{section-15} \section{section-16} \section{section-17} \section{section-18} \section{section-19} \section{section-20}  \end{document}
95571
I have two sections before the table of contents.  \documentclass{article} \usepackage{lipsum} \begin{document} \thispagestyle{empty} \section*{First random title} \lipsum[1] \section*{Second random title} \lipsum[2] \clearpage \tableofcontents \section{First section} \lipsum[3] \section{Second section} \lipsum[4] \section{Last section} Wombat \lipsum[5] \end{document}   The problem is, that LaTeX starts the page numbering on the first page and I don't want that. I want the page numbering to start after the table of contents. How can I do this?
73447
I am trying to implement a style to name tables and figures depending on the section for a thesis and can't figure out how to do it with LaTeX.  In the end it should look like this:   and my document:  \documentclass{article}  \begin{document}  \section{Start} Start text \section{Middle} Middle text \begin{table}[h]     \centering     \begin{tabular}{l}     first table\\     \end{tabular} \caption{A normal table} \end{table}  \section*{Supplemental}  \begin{table}[h]     \centering     \begin{tabular}{l}         table in supplemental part\\     \end{tabular} \caption{This should read: ``Table S1: caption text''} \end{table}  \end{document}      I don't want to change the naming permanently, it should continue normally in the next chapter. Is there any easy way to accomplish something like this?
115208
I'm looking for advise about handling sections a a special way. What I want:   Sections should not be numbered, they should be listed in the TOC and be available in the page header, and they should have not left indention.   A very much abridged version of what I'm currently trying is this:  \documentclass{book}  % No section numbers. \renewcommand{\thesection}{}  \begin{document}  \tableofcontents  \chapter{Foo}  % This section should be in the TOC and the page header. \section{Bar}  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.   \end{document}   Unfortunately this does not produce the desired result. 1. and 2 work but 3. doesn't: the section titles have a left indention in the text.  How can I make all three requirenments work at the same time?
9712
Hello I am trying to further modify my TOC.  I got an answer  as to how I could remove the \section numbers on the left side of the TOC and now I would like to expand that.  I would like to remove the left-hand numbering for \subsection and \subsubsection as well but I do not know how.  (I also want to keep these numbers out of the document and I am using \def\sectionformat{} to do that)  Also, my TOC is slightly over one page and so I would like to adjust the spacing from 2 to 1.5,  is there any way to do this?    \documentclass[12pt, a4paper, twoside]{article}     \usepackage{baskervald}     \usepackage[margin=1in,bindingoffset=15.5mm,heightrounded]{geometry}     \usepackage[T1]{fontenc}     \usepackage[notes]{biblatex-chicago}     \usepackage{filecontents}     \usepackage{microtype}     \usepackage{url}     \usepackage{makeidx}     \usepackage{indentfirst}     \usepackage{setspace}     \usepackage{chngcntr}\counterwithin*{footnote}{section}     \newcommand*{\textsubscript}[1]{$#1{}$}     \DefineBibliographyStrings{english}{references = {Works Cited}}     \DeclareBibliographyCategory{primary}     \makeindex     \addbibresource{bibliography.bib}     \makeatletter     \let\latexl@section\l@section     \def\l@section#1#2{\begingroup\let\numberline\@gobble\latexl@section{#1}{#2}\endgroup}     \def\@seccntformat#1{\ifcsname #1format\endcsname\else\csname the#1\endcsname\quad\fi}     \def\sectionformat{}     \def\subsectionformat{}     \def\subsubsectionformat{}     \makeatother     \author{}     \title{\vspace*{36 pt}\textbf{\emph{\Huge{Big Important Title}}}\vfill}     \date{}     \begin{document}     \tableofcontents     \section{Part I}     Hello World     \end{document}
57177
Is it possible to have LaTeX (or another program) to expand a the macros in a .tex file, and output the expanded LaTeX source?   If no such program exists: are LaTeX macros processed simply as string substitutions, before the document is interpreted? If so, it might be easy enough to write my own such converter.  Edit: The reason I ask is journals which don't accept LaTeX submissions with macros. It would be useful to be able to develop with my usual macros, and convert automatically to the 'macro-expanded' format for submission.
16552
I've a LaTeX source. I'm ready %for submission %But first I would like to strip its comments.  So I hope there are 100\% auto ways to get this done.  \begin{comment}    Because there are subtle ways to mess it up. \end{comment}   Is there a utility which will eliminate all these comments?  Yes, I could do it by hand, but that seems needlessly laborious, has the potential for mistakes, and makes maintenance difficult. I could also use sed, but there's a potential for mistakes. Besides, it is an axiom of the whole GNU/Linux thing that if you can think of it, someone's probably already made a utility for it.
44218
I am using the paragraph section head, i.e.,   \paragraph{This is a cool paragraph}    I would like it to compile with numbering. If I change the secnumdepth (i.e., \setcounter{secnumdepth}{4}) this will work, but produce the "wrong" type of numbering, i.e.,      1.1.1.1 This is a cool paragraph      1.1.1.2 This is another cool paragraph etc.   What I would like is      1 This is a cool paragraph      2 This is another cool paragraph   or, if not,      1.1 This is a cool paragraph      1.2 This is another cool paragraph   where the first 1 indicates the section number and suppresses the subsection and subsubsection numbers. Can this be done?