Skip to main content

Questions tagged [everypar]

The tag has no usage guidance.

2 votes
1 answer
52 views

Trigger code in para/begin hook for a precise paragraph

I made a simple system of multiple levels paragraph counters using the para/begin hook: \documentclass{article} \usepackage{lipsum} \usepackage{expl3} \usepackage{xparse} \usepackage{fancyhdr} \...
Antony Geedies's user avatar
8 votes
1 answer
185 views

What is the recommended way to use \everypar now that LaTeX has hooks?

Now that LaTeX has hooks, there is a recommendation to use the hooks interface for everypar? How should this be done in l3 programs? \documentclass{article} \ExplSyntaxOn \newcounter{eplinenumber} \...
yannisl's user avatar
  • 118k
0 votes
1 answer
47 views

Unexpected \obeylines behavior in an environment

I am puzzled by the fact that when \obeylines is placed within a \begingroup...\endgroup pair inside an environment, an argument to a macro in that environment seems still to be under the influence of ...
sgmoye's user avatar
  • 8,941
0 votes
1 answer
55 views

How to set specific font for the first paragraph in every chapter/section

I need to have the first paragraph typeset with a different font in every chapter and section and I don't want this to affect \lstlisting. I tried to use \everypar but if \lstlisting is there it ...
Yola's user avatar
  • 481
0 votes
0 answers
23 views

How to control font in lstlisting (\everypar, frame=<not_none>)

This piece of code produces different font sizes in the listings depending on whether frame = lines is there. \documentclass[a4paper,10pt]{book} \usepackage{listings} \makeatletter \def\@afterheading{...
Yola's user avatar
  • 481