Questions tagged [everypar]
The everypar tag has no usage guidance.
5
questions
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}
\...
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}
\...
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 ...
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 ...
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{...