Tag Info

New answers tagged

3

in \OriginalSection% \everypar you are passing \everypar as the argument to the original section. You can do as below to set \everpar after the section argument has been read. Need to work a bit harder if you need star forms and optional arguments of \section. It really is not supported to set \everypar like this lots of things that use paragraph ...


5

One approach using the linguex package: \documentclass{article} \usepackage{lipsum} % for dummy text \usepackage{linguex} % Counter format \renewcommand{\ExLBr}{\bfseries} \renewcommand{\ExRBr}{} % http://tex.stackexchange.com/a/57279/11604 % Reset \ex. at each section \usepackage{chngcntr} \counterwithin{ExNo}{section} % add section counter ...


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 ...


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 ...


0

Word uses only single carriage returns at end of paragraph. Paste into notepad++ or some other decent free text editor Replace single carriage returns by double returns In Notepad++ the steps would be: Search > Replace Select "extended" in search field type \n in replace field type \n\n start at the top and select replace all


0

To take a wild guess, whatever markup word uses to indicate a paragraph break is rendered as a blank line by the on-screen shareLaTeX text editor, but not by TeX nor by notepad. Another wild guess at a work-around. Do a find/replace in Word to replace all of the paragraph breaks with some improbable text sequence (6843684684, for example), past the file into ...


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

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 ...


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 ...


0

It should be noted that \everypar is used by many packages for their own purposes, and gets set to \relax frequently. \documentclass{article} \usepackage[paperwidth=4in,paperheight=3in]{geometry} \renewcommand{\thefootnote}{\arabic{paragraph}.\arabic{footnote}} \begin{document} \everypar{\refstepcounter{paragraph}\setcounter{footnote}{0}}% must be renewed ...


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 ...


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 ...



Top 50 recent answers are included