Tag Info

10

From the TeX Book (Chapter 13 Modes, p 86): Exercise 13.1: If you say \hbox{...} in horizontal mode, TeX will construct the specified box and it will contribute the result to the current paragraph. Similarly, if you say \hbox{...} in vertical mode, TeX will construct a box and contribute it to the current page. What can you do if you want to ...

4


3

arguably this is a bug in amsart, you can avoid it by allowing paragraphs in the latex command it uses \documentclass[10pt]{amsart} \makeatletter \long\def\@cdr#1#2\@nil{#2} \makeatother \begin{document} \begin{figure} blah \caption[lh]{ Paragraph 1. Paragraph 2. } \end{figure} \end{document} amsart defines \@makecaption explictly using \long so that ...

3

There is alredy a built in environment for this: \documentclass[11pt,a4paper,openany]{book} \usepackage{indentfirst} \begin{document} \chapter{Group Theory} \subsection{Homomorphism from $S_4$ to $S_3$} It is not hard to check that To show it is surjective, thanks to the answer provided by @David Wheeler on MSE: \begin{quote} No indent here No indent ...

2

Wow. Okay I figured it out. In the body of one of the chapters I wanted to move a book title to be all together on the next page. So I wrapped it in a \raggedright{randombooktitle} However it appears that somehow screwed up the formatting in the entire document. It even stopped paragraphs from indenting in different chapters. So this is a new question I ...

2

Like this? \documentclass{book} \usepackage{amsthm} \theoremstyle{plain} \newtheorem{theorem}{Theorem} \begin{document} \let\oldpar=\par \def\par{\hfill\the\inputlineno\oldpar} \chapter{First chapter} Text text text text text text text text text. \section{First section} Text text text text text text text text text text text text text text text text text ...

1

Here is a modified version of the code from Inserting predefined paragraph numbers in page header. I think that this does what you want. What I have one is made \chapter set a flag \IsNewChaptertrue which is then used by the \section command to determine whether or not it should start a new page using \clearpage. I think that I tested this when I was ...

1

xgalley (or l3galley) provides a similar means to adjust margins either relative to the current margins or in an absolute way. Below I've used the latter: \documentclass{article} % http://river-valley.zeeba.tv/media/conferences/tug-2015/0302-Joseph-Wright/ \usepackage{xgalley} \usepackage{kantlipsum} \ExplSyntaxOn \cs_new_eq:NN \SetAbsMargins ...

Only top voted, non community-wiki answers of a minimum length are eligible