Text Formatting ⇒ memoir | Itemized List misaligned
-
- Posts: 10
- Joined: Wed Feb 08, 2012 7:29 pm
memoir | Itemized List misaligned
Here is a screen shot of the problem area (since my description may be confusing). The rest of the document is fine, it is only this part of the itemized list that is causing a problem.
I hope someone can give me some guidance on how to fix the problem.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
memoir | Itemized List misaligned
A proper minimal example would be much less confusing. This one here works as expected.spartanguy07 wrote:[…] Here is a screen shot of the problem area (since my description may be confusing). […]
Code: Select all
\documentclass{memoir}\usepackage[T1]{fontenc}\begin{document}The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.\begin{itemize}\item The quick brown fox jumps over the lazy dog.\item The quick brown fox jumps over the lazy dog.\item The quick brown fox jumps over the lazy dog.\end{itemize}\end{document}
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
-
- Posts: 10
- Joined: Wed Feb 08, 2012 7:29 pm
Re: memoir | Itemized List misaligned
When I create a test document to use the code that you sent me, it works fine, with no error.
Thank you for the welcome.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: memoir | Itemized List misaligned
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: memoir | Itemized List misaligned
Stefan
-
- Posts: 10
- Joined: Wed Feb 08, 2012 7:29 pm
memoir | Itemized List misaligned
Code: Select all
\documentclass[12pt,a4paper]{memoir}%%%% Begin latex configuration% command for code\DeclareFixedFont {\codefont}{OT1}{pcr}{m}{n}{10}\newcommand{\code}[1]{\codefont#1\normalfont}%%%% End latex configuration\begin{document}\begin{itemize}\item[File uploading (POST on \code{THIS IS SAMPLE TEXT}]\item [File downloading (GET on \code{This is a second example})]\end{itemize}\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
memoir | Itemized List misaligned
The reason for the misalignment is that there is only a restricted amount of reserved space for the width of the item label. And with the content inside the square brackets you add an optional argument to the \item command which represents a label. But the width of this label exceeds the reserved space.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 10
- Joined: Wed Feb 08, 2012 7:29 pm
Re: memoir | Itemized List misaligned
Removing the brackets on the test makes it align fine, however on my actual document I receive this error:
! Font \csname\endcsname=fplmr at 12.0pt not loadable: Metric (TFM) file not found.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
memoir | Itemized List misaligned
Hm. With your example I can't reproduce this compiler message. It compiles flawlessly. No warnings, no errors. Maybe due to the fact that your example doesn't load mathpazo, where »fplmr.tfm« belongs to.spartanguy07 wrote:! Font \csname\endcsname=fplmr at 12.0pt not loadable: Metric (TFM) file not found.
If you are using this font package in your document, it might be not installed properly. De-installation and re-installation of that package by the package manager of your TeX distribution might help to remedy this issue.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10