Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"MakeTextLowerCase" error #64

Open
GoogleCodeExporter opened this issue Mar 12, 2015 · 11 comments
Open

"MakeTextLowerCase" error #64

GoogleCodeExporter opened this issue Mar 12, 2015 · 11 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Added labels: Type-Defect, Priority-High

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

@yihui
Copy link

yihui commented Jan 21, 2016

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 added a commit to rstudio/tufte that referenced this issue Jan 21, 2016
…x#64

otherwise we will get an error like this

! Argument of \MakeTextLowercase has an extra }.
<inserted text>
                \par
l.242 \begin{Highlighting}[]
@fgrosshans
Copy link

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

@mlbaker171
Copy link

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.

@conradolandia
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants