I met these latex format problem, anyone can offer some help?
the .tex file:
usepackage{booktabs}
usepackage{longtable}
usepackage[bf,singlelinecheck=off]{caption}
usepackage{graphicx}
setmainfont[UprightFeatures={SmallCapsFont=AlegreyaSC-Regular}]{Alegreya}
usepackage{framed,color}
definecolor{shadecolor}{RGB}{248,248,248}
renewcommand{textfraction}{0.05}
renewcommand{topfraction}{0.8}
renewcommand{bottomfraction}{0.8}
renewcommand{floatpagefraction}{0.75}
renewenvironment{quote}{begin{VF}}{end{VF}}
letoldhrefhref
renewcommand{href}[2]{#2footnote{url{#1}}}
ifxetex
usepackage{letltxmacro}
setlength{XeTeXLinkMargin}{1pt}
LetLtxMacroSavedIncludeGraphicsincludegraphics
defincludegraphics#1#{% #1 catches optional stuff (star/opt. arg.)
IncludeGraphicsAux{#1}%
}%
newcommand*{IncludeGraphicsAux}[2]{%
XeTeXLinkBox{%
SavedIncludeGraphics#1{#2}%
}%
}%
fi
makeatletter
newenvironment{kframe}{%
medskip{}
setlength{fboxsep}{.8em}
defat@end@of@kframe{}%
ifinnerifhmode%
defat@end@of@kframe{end{minipage}}%
begin{minipage}{columnwidth}%
fifi%
defFrameCommand##1{hskip@totalleftmargin hskip-fboxsep
colorbox{shadecolor}{##1}hskip-fboxsep
% There is no \@totalrightmargin, so:
hskip-linewidth hskip-@totalleftmargin hskipcolumnwidth}%
MakeFramed {advancehsize-width
@totalleftmarginz@ linewidthhsize
@setminipage}}%
{parunskipendMakeFramed%
at@end@of@kframe}
makeatother
makeatletter
@ifundefined{Shaded}{
}{renewenvironment{Shaded}{begin{kframe}}{end{kframe}}}
makeatother
newenvironment{rmdblock}[1]
{
begin{itemize}
renewcommand{labelitemi}{
raisebox{-.7height}[0pt][0pt]{
{setkeys{Gin}{width=3em,keepaspectratio}includegraphics{images/#1}}
}
}
setlength{fboxsep}{1em}
begin{kframe}
item
}
{
end{kframe}
end{itemize}
}
newenvironment{rmdnote}
{begin{rmdblock}{note}}
{end{rmdblock}}
newenvironment{rmdcaution}
{begin{rmdblock}{caution}}
{end{rmdblock}}
newenvironment{rmdimportant}
{begin{rmdblock}{important}}
{end{rmdblock}}
newenvironment{rmdtip}
{begin{rmdblock}{tip}}
{end{rmdblock}}
newenvironment{rmdwarning}
{begin{rmdblock}{warning}}
{end{rmdblock}}
usepackage{makeidx}
makeindex
urlstyle{tt}
usepackage{amsthm}
makeatletter
defthm@space@setup{%
thm@preskip=8pt plus 2pt minus 4pt
thm@postskip=thm@preskip
}
makeatother
frontmatter
and the error message:
! Extra }, or forgotten endgroup.
endMakeFramed ...eight z@ penalty -100 egroup
begingroup fb@put@frame ...
l.907 end{rmdtip}
I feel that the error is in rmdtip, although I tried everything possible, I can not generate the pdf file. I have already updated TinyTex, but nothing.
Anyone can offer help?
Really appreciate all the comments!
1