Search found 9 matches

by PierreJ
Thu Nov 07, 2024 4:57 pm
Forum: Text Formatting
Topic: How to have numbered poem titles ?
Replies: 2
Views: 3533

How to have numbered poem titles ?

I've found a way (I should have thought of it right away!).

In the preamble:

Code: Select all

\newcounter{poem}
\setcounter{poem}{0}
For each poem title, instead of the line "\poemtitle{Some title}", the following two lines:

Code: Select all

\stepcounter{poem}
\poemtitle{\arabic{poem}.\; Some title}
by PierreJ
Wed Nov 06, 2024 11:47 am
Forum: Text Formatting
Topic: How to have numbered poem titles ?
Replies: 2
Views: 3533

How to have numbered poem titles ?

That sounds silly, but I can't find a way to number poem titles, like "1. First poem", "2. Second poem", etc., instead of "First poem", "Second poem", etc. Thanks a lot for your help!

% XeLaTeX, manual
\documentclass[twoside,french,10pt]{scrbook}
\usepackage{fontspec}
\usepackage{polyglossia ...
by PierreJ
Thu Mar 17, 2022 2:54 pm
Forum: General
Topic: No config error on one computer, 115 errors on the other
Replies: 3
Views: 2156

No config error on one computer, 115 errors on the other

Thank you very much Stefan!
by PierreJ
Tue Mar 15, 2022 5:31 pm
Forum: General
Topic: No config error on one computer, 115 errors on the other
Replies: 3
Views: 2156

No config error on one computer, 115 errors on the other

I've just found the culprit, it's the line:

\usepackage[fontsize=13pt]{scrextend}

I don't know why this package works perfectly on the notebook but not on the iMac, but at least the problematic line is now identified.

Your help would still be much appreciated: is there a way to tell LaTeX that ...
by PierreJ
Mon Mar 14, 2022 5:49 pm
Forum: General
Topic: No config error on one computer, 115 errors on the other
Replies: 3
Views: 2156

No config error on one computer, 115 errors on the other

Hello all,

I have a LaTeX document on my M1 MacBook Pro, and everything is fine. No issue at all. The Pdf is perfect.

But when I copied the .tex file on my Intel iMac, I got 35 configuration errors. The Pdf could be generated, but the chapters and sections titles were in a smaller and thinner ...
by PierreJ
Mon Feb 07, 2022 11:43 pm
Forum: Text Formatting
Topic: Dysfunctionnal justification
Replies: 5
Views: 3642

Dysfunctionnal justification

Ijon Tichy, thank you very much for your input. I'll follow your advice and use \hyphenation to solve special cases. I'm not sure it's a bug problem, maybe it's just too complicated to manage. For instance, "pa-rent" is legal if it means "relative" but it's illegal if it means "(they) avert ...
by PierreJ
Mon Feb 07, 2022 8:44 pm
Forum: Text Formatting
Topic: Dysfunctionnal justification
Replies: 5
Views: 3642

Dysfunctionnal justification

I've just found a solution: replacing \usepackage{ebgaramond} with \usepackage{libertinus} solves almost all cases of lengthened lines.
The last remaining ones were solved with the line \usepackage[protrusion=true,expansion=true,final,babel]{microtype}. Thanks a lot MJK !
by PierreJ
Mon Feb 07, 2022 7:43 pm
Forum: Text Formatting
Topic: Dysfunctionnal justification
Replies: 5
Views: 3642

Dysfunctionnal justification

Thank you very much for your explanation! I've corrected my post.

The problem with changing \righthyphenmin and \lefthyphenmin is that I then get faulty hyphenation cases (for instance, in French, it's forbidden to have "chan-gent").
by PierreJ
Mon Feb 07, 2022 6:27 pm
Forum: Text Formatting
Topic: Dysfunctionnal justification
Replies: 5
Views: 3642

Dysfunctionnal justification

Hello All,

In my last text, justification is dysfunctional: I've had to use about 200 \linebreak commands, sometimes 2-3 in one paragraph, whereas I didn't need any in my previous texts (I didn't even know about \linebreak before). Why is this the case? Thanks in advance for your help.

Here is a ...