* tex error Argument of \titlecmd has an extra }
@ 2018-03-05 9:18 =?gb18030?B?1ebO0rfnssk=?=
0 siblings, 0 replies; only message in thread
From: =?gb18030?B?1ebO0rfnssk=?= @ 2018-03-05 9:18 UTC (permalink / raw)
To: =?gb18030?B?bnRnLWNvbnRleHQ=?=
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: Type: text/plain; charset="gb18030", Size: 7246 bytes --]
Dear list,
I got a tex setting file env-plain.tex from Internet and reference it in project-openstack-source-analysis.tex,
when I used the the command "context project-openstack-source-analysis", the result of output shows
"tex error > tex error on line 19 in file /root/openstack_doc/project-openstack-source-analysis.tex: ! Argument of \titlecmd has an extra }".
I don't know the reason of this error.How to fix this error? Many thanks for your help!
the evn-plain.tex file content is below:
\startenvironment env-plain
% C ´úÂë¸ßÁÁ³Â¼Ä£¿é
%\usemodule[pretty-c]
% ÖÐÎÄ×ÖÌåÄ£¿é£¬Ö§³ÖÖÐÎ÷ÎÄ×ÖÌåÉèÖÃÓë±êµã΢ÅÅ°æ
% ÏÂÔصØÖ·: http://github.com/liyanrui/t-zhfonts
%\usemodule[zhfonts]
%\setupzhfonts[feature][onum=yes, pnum=yes]
%\setupzhfonts[latin, mono][regular=Monaco@0.8]
%\zhfonts[rm,14pt]
% ascii Êýѧ¹«Ê½Ä£¿é
\usemodule[asciimath]
\setupinteraction[state=start,
color=darkblue,
contrastcolor=darkblue,
focus=standard]
% ÊÊºÏ A4 Ö½ÕÅ´òÓ¡µÄ°æʽ
\setuplayout[backspace=25mm,
width=150mm,
rightmargin=10mm,
topspace=20mm,
header=15mm,
footer=10mm,
height=260mm,]
% \setuppagenumbering[alternative=doublesided]
% ·âÃæ layout
\newdimen\AppendicesTextWidth
\AppendicesTextWidth=\textwidth
\advance\AppendicesTextWidth by\rightmarginwidth
\definelayout[normal][width=\AppendicesTextWidth]
% ҳüÓëÒ³½Å
\setuppagenumbering[location=]
\newdimen\headerwidth
\headerwidth=\the\textwidth
\advance\headerwidth by \rightmarginwidth
\newdimen\LineWidth
\LineWidth=2pt
\def\HeaderFrame#1{%
\framed[width={\headerwidth},
frame=off,
offset=none,
bottomframe=on,
framecolor=darkgray,
rulethickness=\LineWidth]{\ss#1}}
\def\PageFrame{%
\inframed[width=14mm,
height=6mm,
frame=off,
offset=0pt,
framecolor=darkgray,
background=color,
backgroundcolor=darkgray]{\color[white]{\ssx\pagenumber}}}
\def\HeadStr#1{\headnumber[#1]\hskip1em\getmarking[#1]}
\def\RightHeader{\HeaderFrame{\HeadStr{section}\hfill\PageFrame\hbox to -\LineWidth{}}}
\def\LeftHeader{\HeaderFrame{\hbox to -\LineWidth{}\PageFrame\hfill\HeadStr{chapter}}}
\def\FooterFrame#1{%
\framed[width={\headerwidth},
frame=off,
offset=0pt]{#1}}
\def\BookNameFrame[#1]{%
\framed[width=fit,
height=fit,
frame=off,
offset=2pt,
background=color,
backgroundcolor=darkgray]{%
\color[white]{\ss \rotate[rotation=#1]{GLIB ѧϰ±Ê¼Ç}}}}
\def\RightFooter{\FooterFrame{\hfill\BookNameFrame[-90]}}
\def\LeftFooter{\FooterFrame{\BookNameFrame[90]\hfill}}
\startsetups Text
\setupheadertexts[text][\RightHeader][][][\LeftHeader]
% \setupfootertexts[text][\RightFooter][][][\LeftFooter]
\stopsetups
\startsetups Appendices
\def\RightAppendicesHeader{\HeaderFrame{\ssx\getmarking[title]\hfill%
\PageFrame\hbox to -\LineWidth{}}}
\def\LeftAppendicesHeader{\HeaderFrame{\hbox to -\LineWidth{}\PageFrame\hfill\ssx ¸½Â¼}}
\setupheadertexts[text][\RightAppendicesHeader][][][\LeftAppendicesHeader]
\stopsetups
\startsetups Empty
\setupheadertexts[text][][][][]
\setupfootertexts[text][][][][]
\stopsetups
% ±êÌâ
\setupheads[indentnext=yes]
\definepagebreak[headpagebreak][yes, header, footer, odd]
\setuphead[chapter,title][header=empty, style=\ssc, page=headpagebreak,]
\def\HeadOffset{\hbox to -10mm{}}
\def\chaptercmd#1#2{\hbox to \hsize{#2\hfill\switchtobodyfont[48pt]{%
\color[darkgray]{#1}}\HeadOffset}}
\setuphead[chapter][command=\chaptercmd,after={\blank[2cm]}]
\def\ContentTitle#1{%
\inframed[width=fit,
height=fit,
frame=off,
offset=4pt,
loffset=10mm,
roffset=10mm,
framecolor=darkgray,
background=color,
backgroundcolor=darkgray]{\color[white]{#1}}}
\def\titlecmd#1#2{\hbox to \hsize{\hfill%
\ContentTitle{#2}\HeadOffset}}
\setuphead[title][command=\titlecmd,after={\blank[2cm]}]
\setuphead[section, subject][style=\ssa]
% ¶ÎÂä
\setupindenting[first,always,2em]
\setupinterlinespace[line=1.5em]
\setupheads[indentnext=yes]
\setupwhitespace[big]
\setupfootnotes[bodyfont=9pt]
% ³Â¼
\setuplinenumbering[style=small,location=text,color=darkgreen]
\setuptype[style=\ttx]
%\setuptype[space=on]
\setuptyping[bodyfont=9pt, numbering=line, before=\blank, after=\blank]
\setupitemize[paragraph, packed, broad]
% Ŀ¼
\setupcombinedlist[content][alternative=c,aligntitle=yes,interaction=pagenumber]
\setuplist[section][margin=2em,]
\setuplist[subsection][margin=5em,]
\setuplist[subsubsection][margin=8em,]
% ·âÃæ
\defineoverlay[CruxOrnament][\useMPgraphic{crux}]
\def\CruxFramed#1{\framed[frame=off,width=12cm,height=fit]{#1}}
\startuseMPgraphic{crux}
color ccc ;
pair p, h[], v[] ;
u := \overlaywidth ; v := \overlayheight ;
hdelta := .15u ; vdelta := .03v ;
drawoptions (withpen pensquare scaled 2pt) ;
randomseed := day + time*epsilon ;
show time * epsilon ;
for i :=1 upto 128 :
ccc := (uniformdeviate (1), uniformdeviate (1), uniformdeviate (1)) ;
p := (uniformdeviate (u), uniformdeviate (v)) ;
h0 := (xpart (p) - uniformdeviate (hdelta) , ypart (p)) ;
h1 := (xpart (p) + uniformdeviate (hdelta) , ypart (p)) ;
v0 := (xpart (p), ypart (p) - uniformdeviate (vdelta)) ;
v1 := (xpart (p), ypart (p) + uniformdeviate (vdelta)) ;
draw h0 -- h1 withcolor transparent(1,.4,ccc) ;
draw v0 -- v1 withcolor transparent(1,.4,ccc) ;
endfor ;
\stopuseMPgraphic
\startsetups BG
\defineoverlay[bg][\useMPgraphic{crux}]
\setupbackgrounds[page][background=bg]
\stopsetups
\definestartstop[BG][commands=\setups{BG}]
% misc
\setupheadtext[en][pubs=²Î¿¼ÎÄÏ×]
\setupheadtext[en][content=Ŀ¼]
\setupheadtext[en][index=Ë÷Òý]
\setuplabeltext[en][figure=ͼ\;]
\setuplabeltext[en][table=±í\;]
\setupcaptions[style=\tfx,headstyle=\normal]
% Êýѧ¹«Ê½×Ô¶¯ÉèÖñêµã¼ä¾à
\setupmathematics[autopunctuation=no]
% ¿ªÆô ascii ģʽ
\asciimode
\stopenvironment
the project-openstack-source-analysis.tex file content is below:
\environment env-plain
\starttext
\startBG
\setuplayout[normal]
\startstandardmakeup
\midaligned{\CruxFramed{\ssd OpenStackÔ´Âë·ÖÎö}}
\vfil
\stopstandardmakeup
\stopBG
\startfrontmatter
\setuplayout[reset]
\setuppagenumbering[conversion=romannumerals]
\setuppagenumber[number=1]
\completecontent
% \completelistoffigures
% \completelistoftables
\stopfrontmatter
\startbodymatter
\setuppagenumbering[conversion=numbers]
\setuppagenumber[number=1]
\setups{Text}
\component component-01-openstack-outline
\component component-02-openstack-nova
\page
\setups{Empty}
\stopbodymatter
\startappendices
\setups{Appendices}
\title{²Î¿¼ÎÄÏ×}
\placepublications
\title{Ë÷Òý}
\placeindex
\page
\setups{Empty}
\stopappendices
\startbackmatter
\stopbackmatter
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 7858 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-03-05 9:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-05 9:18 tex error Argument of \titlecmd has an extra } =?gb18030?B?1ebO0rfnssk=?=
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).