tufte-latex icon indicating copy to clipboard operation
tufte-latex copied to clipboard

"MakeTextLowerCase" error

Open GoogleCodeExporter opened this issue 9 years ago • 11 comments

I'm using revision 169 for compiling the tex source with texlive 2010:

The file MakeTextLowerCaseError.tex produces the following error:

! Argument of \MakeTextLowercase has an extra }.
<inserted text> 
                \par 
l.76 \end{document}

Errors prevent a pdf from being generated.

However, as I repeatedly deleted the last paragraph of the documnt until I got 
a clean compile and output (MakeTextLowerCaseNOError.tex) I note that the 
resulting pdf is only *one* page. Apparently the error appears when it is 
necessary to format a second page. I've attached logs with the debug option 
enabled as well as the generated pdf.

I *think* this is a bug. When I downgrade to tufte-latex 3.0.0 I get a clean 
compile and pdf of a multi-page document.

Original issue reported on code.google.com by [email protected] on 19 Jun 2011 at 10:47

Attachments:

GoogleCodeExporter avatar Mar 12 '15 19:03 GoogleCodeExporter

This is a bug in my letterspacing logic. To fix it, just add the following two 
lines to the preamble of your document (somewhere after the fontspec package 
has been loaded and your fonts are set up):

  % Set up the spacing using fontspec features
  \renewcommand\allcapsspacing[1]{{\addfontfeature{LetterSpace=15}#1}}
  \renewcommand\smallcapsspacing[1]{{\addfontfeature{LetterSpace=10}#1}}

Let me know if this doesn't work for you.

Original comment by [email protected] on 19 Jun 2011 at 11:23

  • Changed state: Accepted

GoogleCodeExporter avatar Mar 12 '15 19:03 GoogleCodeExporter

Yes, this solved the problem! Is this a workaround to be used until the next 
release?

Original comment by [email protected] on 20 Jun 2011 at 10:24

GoogleCodeExporter avatar Mar 12 '15 19:03 GoogleCodeExporter

I hope so.  I need to revisit the letterspacing logic and test it thoroughly.

Original comment by [email protected] on 20 Jun 2011 at 7:00

GoogleCodeExporter avatar Mar 12 '15 19:03 GoogleCodeExporter

Okay. Thanks for all your work.

Perhaps this should be reported to the user list?

Original comment by [email protected] on 20 Jun 2011 at 8:27

GoogleCodeExporter avatar Mar 12 '15 19:03 GoogleCodeExporter

Original comment by [email protected] on 11 Aug 2011 at 10:28

  • Added labels: Type-Defect, Priority-High

GoogleCodeExporter avatar Mar 12 '15 19:03 GoogleCodeExporter

Oh, oh, please, please!

The current letterspacing logic is completely pdflatex-dependent.  This simply 
does not work for latex|dvips route.  [nols] is basically mandatory.  :-( 

Original comment by [email protected] on 3 Oct 2013 at 7:06

GoogleCodeExporter avatar Mar 12 '15 19:03 GoogleCodeExporter

I had the same problem as well and the answer solved my question. Just wanted 
to thank the original poster and the responder. Would be wonderful to have it 
in the downloadable package though :)

Original comment by [email protected] on 8 Dec 2014 at 8:40

GoogleCodeExporter avatar Mar 12 '15 19:03 GoogleCodeExporter

This bug seems to be five years old now: https://groups.google.com/forum/#!topic/tufte-latex-commits/JcgGP-1R138 I'm wondering why it is still not fixed...

yihui avatar Jan 21 '16 20:01 yihui

#105 and #107 are duplicate of this issue (for LuaLaTex and XeLaTex).

fgrosshans avatar Feb 13 '16 14:02 fgrosshans

After I updated the lines above I get the following error also: ! Undefined control sequence. \smallcapsspacing #1->{\addfontfeature {LetterSpace=10}#1} l.60 This style provides \textsc{a} - and \textsc{b}-heads (that is,

Is there an easy fix for this? I really like the result.

mlbaker171 avatar Feb 18 '20 06:02 mlbaker171

\addfontfeature can only be invoked when using fontspec with LuaTeX, afaik.

conradolandia avatar Feb 18 '20 06:02 conradolandia