New answers tagged

2

The reason for this break between the \paragraph and \epigraph stems from the construction of the \epigraph: it uses skips before (and after) and lists to adjust the layout. You may be better suited writing your own \epigraph: \documentclass[a4paper,12pt]{article} \usepackage{etoolbox} \usepackage{lipsum} \raggedbottom \newcommand{\epigraph}[2]{% \par\...


1

You could load the needspace package and issue the instruction \needspace{3\baselineskip} immediately before the \paragraph/\epigraph combination in question. The full MWE (the paragraph header and the epigraph will show up at the top of a page: \documentclass[a4paper,12pt,oneside,french]{article} \usepackage{epigraph,lipsum} \usepackage{needspace} \...


7

This approach uses a defined macro \startcount that ends with \stopcount to count within a multi-paragraph argument. EDITED to add \pausecount and \continuecount functionality within paragraphs, even mid-sentence. RE-EDITED to detect sentences that are questions (?) and exclamations (!). RE-EDITED [jorge]: Superscripts are used for the parenthesis ...


2

If you want to hyphenate the centered text use: \usepackage{ragged2e} [...] \gmc{4}{@{}p{0.8\textwidth}@{}}{\Centering Summary of monthly cross-portfolio regressions: 25 Fama-French portfolios (constructed on 5 size and 5 book-to-market portfolios, including dividends)} and without hyphenated text use \centering instead of \Centering


4

You can automate the placement of the notes with the combination of the layer mechanism the \setupparagraphintro command. \setuppapersize[A4,landscape] \setuplayout [width=18cm, rightmargin=6cm] \setupnote [footnote][location=text] \setupnotation[footnote][numbercommand=,alternative=serried] \definelayer[notelayer][width=\paperwidth,height=\...


2

A simple solution is to use catchfile: \listfiles \documentclass{article} \usepackage{regexpatch}% use for \xapptocmd \usepackage{atveryend}% Add support for \AtEndAfterFileList \usepackage{catchfile} \newenvironment{logmessage}[1]{% \typeout{^^J**************************************************^^J% #1% ^^J*********************************************...


3

I'm not sure I understand the question but \def\readtolog#1{% LOGIC NEEDED TO REMOVE TRAILING \par \openin\customfile=#1\relax {\endlinechar-1 \loop\unless\ifeof\customfile \read\customfile to\fileline \typeout{\fileline} \repeat}% \closein\customfile } would suppress the special handling of two end of line turning into \par If you want ...



Top 50 recent answers are included