Is it possible to do something like  ... \end{multicols} \section{A very long header that looks ugly if it does not span the columns} \begin{multicols}{2} Lorem ipsum dolor ... \end{multicols} \section{Next header}   Without the effect that LaTeX thinks my section title does not belong to the following paragraph.  EDIT:  I found the answer here:
120899
I have some ugly (?) code that produces a vertical bar to the left of Sections. All is well until I introduce multicols right after the section start. That gives me an undesired indent for the first line. How can I remedy this?  Visualization:    \documentclass[11pt]{article} \usepackage{multicol} % Set font family to sans serif: \renewcommand{\rmdefault}{cmss} % Remove subsection numbering: \setcounter{secnumdepth}{-1} % Create PDF bookmarks: \usepackage[pdftex,bookmarks=true]{hyperref} % Smaller margins: \usepackage[hmargin=3cm,vmargin=3cm]{geometry} % Use symbols for footnotes: \renewcommand{\thefootnote}{\fnsymbol{footnote}} % Overload the \section command with left-hanger formatting: \newcommand{\sectionf}[1]{% \section[#1]{%     \rule{-2em}{0em}%     \rule[-1em]{0.125em}{3em}%     \rule{1.875em}{0em}%     #1} } % Bullets: \renewcommand{\labelitemi}{$\cdot$} \renewcommand{\labelitemii}{$\cdot$} \renewcommand{\labelitemiii}{$\cdot$} \renewcommand{\labelitemiv}{$\cdot$}  \begin{document} \sectionf{Industry Experience} \begin{multicols}{2} Health Care\\ Health Insurance\\ Public Health\\
9250
In a twocolumn layout, how can I balance columns at the end of each chapter?   Package multicol is not appreciated because it doesn't offer nice float placement in the columns (floats are not allowed inside multicols  environment, [H] placement is not floating) Package flushend does the jobs, but only for the last page of the document... why not for the last page of every chapter ? FWIW, every chapter of my document starts on a new page FWIW, I use the memoir class, but I don't think it matters here
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}
97662
Simple question here: how to make section headings invisible, but still get the correct list of sections in the TOC and headers ? e.g. on page 10, if I do a \section{New section}, I must not see the text "X. New section", but I still want the section to be in the TOC and in the \rightmark of the following pages, until a new section of course.  I'm using a minimalistic document (class article, with no package that are used to adjust section headings style)
86874
I wrote my diploma in LaTeX using Lyx, but now I have big problem to fit the output to universities' standards.  I need to remove Part/Section... title from header, I found that using:   \pagestyle{empty}   does the job, but it also removes page numbers, and I spent more than an hour trying to fit them together, especially that in some pages I need no page numbers, while in others has to start from some number, so I'm using:  \setcounter{page}{3}   which also conflicts with the first command.  Any help will be highly appreciated, because I need to print it today, thank you in advance.
6125
I'm trying to typeset a table that would have a header in the first row (I'm not looking for a different/better solution to adding a header, but for a fix to this solution. Thanks). I want to achieve this by having a multicolumn cell spanning all the columns of the first row. The problem is that if the text is too long, the column widths are uneven, with the last column accumulating excess width. I would expect all of the columns to be of approximately the same width (although I cannot find a decent source that would say they should), given the fact that all the text in the second row is of approximately the same width.  I find this behaviour quite puzzling and have no idea what the cause could be. I know I could perhaps remedy this by manually setting the column widths, but am curious as to how to fix this without doing that (I do not need or indeed want the columns to be of the same width, but roughly proportional to the length of their content), preferably but not necessarily by using the tabular environment only (some other conflict with the document class I am using).   What is it that I'm doing or assuming wrong? And why?  MWE:  \documentclass{article} \begin{document}  \begin{tabular}{ccccc} \multicolumn{5}{c}{This is a piece of text. The longer it is, the longer the last column.} \\  1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 \\ \hline \end{tabular}  \end{document}   Resulting table. Notice how the last column of the second row accumulates excess width.
61857
Basically, here's my MWE, and I need to include "Chapter" before every section title in the ToC (without changing anything else).      \documentclass[12pt]{article} \usepackage[utf8]{inputenc}  \usepackage[english]{babel} \usepackage[titles]{tocloft} \usepackage{titlesec} \usepackage{titletoc}  \addto\captionsenglish{ \renewcommand*\contentsname{\centerline{TABLE OF CONTENTS}}}  %\renewcommand{\thesection}{CHAPTER} %\renewcommand{\cftsecpresnum}{Chapter \thesection} \titleformat{\section}[display]% {\null\vskip1em\sffamily\bfseries\filcenter}{Chapter \thesection}{0em}{}[] \titlespacing*{\section}{0em}{1em}{1em}  \titlecontents{section} [1.5em] % ie, 1.5em (chapter) + 2.3em {} {\contentslabel{1em}} {\hspace*{-1.5em}} {\titlerule*[0.5pc]{.}\contentspage}  \begin{document} \newpage \tableofcontents \newpage  \section{Section One} \section{Section Two} Content \end{document}   The commented out code is what I've already tried. The first one just changes the number to "CHAPTER" and doesn't move the text in the ToC (so it just overlays on top of the name of the section), and if I include "\thesection" after "CHAPTER" it creates an infinite loop definition error. The second one causes no differences, and the code still compiles.  Thanks!
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?
9459
I'm using the multicol package for my columns. So far, I have \setlength\columnsep{10pt} in the preamble to set the default column separation. But for one particular page, I'd like to set the columnsep to 30pt.  I wasn't able to get it to work by inserting a new \setlength at the start of the page.  Here's an example:  \documentclass{article} \usepackage{blindtext} \usepackage{multicol} \setlength\columnsep{10pt} % This is the default columnsep for all pages \begin{document}  \begin{multicols*}{2} \blindtext  \newpage \setlength\columnsep{30pt} % I want the columnsep to be wider only on this page. Right now, nothing happens. The default 10pt is still being used. \blindtext \columnbreak \blindtext  \newpage \blindtext  \end{multicols*} \end{document}   Any help would be appreciated.
65813
I've got a rather long table of contents for my presentation in beamer, and it doesn't fit on one frame. I know I can provide a table of contents per section, or to manually break it between sections into a few frames using \tableofcontents[sections={1-3}] etc., but I was hoping there is a way for LaTeX/beamer to do it automatically for me.  So, in short:      Is it possible to automatically break the table of contents in beamer between frames?   And of course, if yes, how would I go about it?
42313
I am having difficulty adding the section number after the section title. Normally the order is section number followed by section title. I want it to be the opposite. I am looking for what I should add to the following .tex file code:  \usepackage[compact]{titlesec} \titleformat{\section}[runin]{\large\bfseries}{\thesection}{}{}
64380
So far, I've been trying code from various examples, and landed with:  \usepackage(titlesec) \titleformat{\section}[block]{\bfseries}{\thesection.}{1em}{}  \titleformat{\subsection}[block]{\hspace{2em}{\thesubsection}{1em}{} \titleformat{\subsubsection}[block]{\hspace{3em}}{\thesubsubsection}{1em}{}   to indent the headers and their numbering. But I don't know how to get the content within each section/subsection/subsubsection to have an indented margin. In other words, I'd like to have the section/subsection/subsubsection content to be in line with it's indented header.  Is titlesec able to do this? I've been battling with the documentation, but I think they assume some more tex knowledge than I have as everything I try doesn't seem to work.  I'd like to use titlesec because, according to my understanding, I won't have to make any further adjustments while writing the document. I'm using pandoc to generate that part from markdown, so I can't have inline formatting on my sections.  Added the following as per comment requests:  Here is what I have:    And, here is what I would like:    Or, I would like something like this:
23664
Related to  and .  This :    looks like this in the 'Hot Network Questions' section of e.g. :    I think Latex formatting of question titles should be disabled if the question comes from a site that don't use Latex formatting.
116099
With LaTeX, I would like to set all my section titles in small capitals but I need the \textsc to be 'cancelled' in my table of content. Is that possible somehow ?  I currently do this :   \section[Introduction]{\textsc{Introduction}}   Is there a automatic way?
78172
I have been using LaTeX for about a year now, and I quite like it.  However, I like to space out my source code. In most languages, this doesn't cause an issue, as extra newlines don't affect meaning.  However, in LaTeX, two newlines in fact changes the document, by creating a new paragraph.  I'm wondering, is there a way to turn this feature off in latex, and require me to specify new paragraphs manually? If not, is there an alternative to LaTeX (preferably similar i.e. still TeX based) which isn't so sensitive?
5322
I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the   \chapter[short title]{long title}   command. But then, "short title" appears in the table of contents instead of the original/true/long one.  How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?  For reference, here is the code I use:  \documentclass[11pt,a4paper]{book} \begin{document} \tableofcontents  \chapter[Short title]{Very vey very very very very very very long title     i can't display in the header} Lorem ipsum dolor sit amet, consectetur adipiscing elit. \end{document}
16419
Im trying to create a multicolumn table in LaTex that would look like this:     Unfortunately I tried pretty much all the codes for multi row and multi column tables but it never looks even remotely similar. My main problem is to fit the Chronological periods on top of the 2 names.  The last code I tried was:  \documentclass[11pt]{article} \begin{document}  \begin{left} \begin{tabular}{|lc|ll|l|ll|}  \hline  {\bfseries Bronze Age} &amp; {} &amp; {\bfseries Iron Age} &amp; {} &amp;{\bfseries    Hellenistic}  &amp; {\bfseries Roman}\\  \hline  \multirow {Kilise Tepe &amp; Ephesos &amp; Kilise Tepe  &amp; Ephesos &amp; Gordion &amp;  Ephesos&amp; Sagalassos}\\ \hline \end{tabular} \end{left}   \end{document}   Could someone please put me in the right direction?  Thank you in advance.