Trouble while using emph or textup
up vote
0
down vote
favorite
Have a good time there! I have the following codes:
documentclass[a4paper,openany,12pt]{book}
usepackage[a]{esvect}
usepackage[utf8x]{inputenc}
usepackage{pgf,tikz,pgfplots}
usepgfplotslibrary{patchplots}
usetikzlibrary{backgrounds,fit}
usetikzlibrary{shadows,calc,matrix}
pgfplotsset{compat=1.14}
usepackage{pgffor}
usepackage{amsmath,amssymb,amsthm,amsfonts}
usepackage{mathrsfs,mathtools}
usepackage{libertine}
usepackage{graphicx,color}
usepackage{diagbox}
usepackage{dsfont}
usepackage{fontenc}
usepackage{mathptmx}
usepackage{setspace}
usepackage{systeme}
usepackage{xcolor}
usepackage{wrapfig}
usepackage{diagbox}
usepackage{pifont}
usepackage{setspace}
usepackage{fontspec}
usepackage{easybmat}
usepackage{ptext}
usepackage[nottoc]{tocbibind}
usepackage{makeidx}
makeindex
usepackage{verbatim}
usepackage{mathptmx}
usepackage{nicefrac}
usepackage{setspace}
usepackage{fontspec}
usepackage{easybmat}
usepackage{geometry}
geometry{text={7in,9.5in},headheight=15pt}
geometry{left=40.5mm,right=44.5mm,top=61mm,bottom=51mm}
usepackage[pagebackref=false,colorlinks,linkcolor=blue,citecolor=blue]{hyperref}
usepackage{fancyhdr}
usepackage{enumerate}
usepackage{xfrac}
RequirePackage{hyperref}
usepackage{paralist,enumitem}
usepackage{emptypage}
usepackage{multicol}
usepackage{setspace}
usepackage{stmaryrd}
usepackage{titlesec}
usepackage{mdframed}
usepackage{framed}
usepackage{lastpage}
usepackage{etoolbox}
usepackage[all]{xy}
AtBeginEnvironment{pmatrix}{setlength{arraycolsep}{4pt}}
usepackage{xtab}
usepackage{tabto}
usepackage{array}
usepackage{booktabs}
usepackage[nottoc]{tocbibind}
usepackage{mdframed}
usepackage[computeautoilg=off]{xepersian}
settextfont[Scale=1.2]{IRXLotus}
setdigitfont[Scale=1.2]{IRXLotus}
setlatintextfont[Scale=1.1]{Times New Roman}
pagestyle{fancy}
renewcommand{chaptermark}[1]{%
markboth{#1}{}}
renewcommand{sectionmark}[1]{%
markright{thesection #1}}
fancyhf{} % delete current header and footer
fancyhead[RO]{slshapeleftmark}
fancyhead[LE]{slshaperightmark}
fancyhead[LO,RE]{slshape thepage}
renewcommand{headrulewidth}{0.7pt}
renewcommand{arraystretch}{0.75}
newtheorem{example}{مثال}[chapter]
newtheorem{exam}{تمرین}[chapter]
newtheorem{remark}{تذکر}[chapter]
newtheorem{ghar}{قرارداد}[chapter]
newtheorem{defen}{تعریف}[chapter]
newtheorem{nokte}{نکات}[chapter]
newtheorem{yaad}{یاد آوری}[chapter]
AtBeginEnvironment{nokte}{small}
AtBeginEnvironment{ghar}{small}
AtBeginEnvironment{yaad}{small}
AtBeginEnvironment{remark}{emph}
setstretch{1.4}
newcolumntype{R}{>{$}r<{$}}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{3}
makeatletter newcommand*bigcdot{mathpalettebigcdot@{.5}}
newcommand*bigcdot@[2]{mathbin{vcenter{hbox{scalebox{#2}{$m@th#1bullet$}}}}}
makeatother newcommand*circled[1]{tikz[baseline=(char.base)]{node[shape=circle,draw,inner sep=2pt](char){#1};}}
newcommand{xdownarrow}[1][2ex]{mathrel{rotatebox{90}{$xleftarrow{rule{#1}{0pt}}$}}}
As you see, I used AtBeginEnvironment
to make remark environment non italic. The output pdf gets non italic but I get error:
! Missing endcsname inserted. aftergroup l.914
begin{remark} The control sequence marked should
not appear between csname and endcsname.
What could I do? Thanks for the time!
xepersian
add a comment |
up vote
0
down vote
favorite
Have a good time there! I have the following codes:
documentclass[a4paper,openany,12pt]{book}
usepackage[a]{esvect}
usepackage[utf8x]{inputenc}
usepackage{pgf,tikz,pgfplots}
usepgfplotslibrary{patchplots}
usetikzlibrary{backgrounds,fit}
usetikzlibrary{shadows,calc,matrix}
pgfplotsset{compat=1.14}
usepackage{pgffor}
usepackage{amsmath,amssymb,amsthm,amsfonts}
usepackage{mathrsfs,mathtools}
usepackage{libertine}
usepackage{graphicx,color}
usepackage{diagbox}
usepackage{dsfont}
usepackage{fontenc}
usepackage{mathptmx}
usepackage{setspace}
usepackage{systeme}
usepackage{xcolor}
usepackage{wrapfig}
usepackage{diagbox}
usepackage{pifont}
usepackage{setspace}
usepackage{fontspec}
usepackage{easybmat}
usepackage{ptext}
usepackage[nottoc]{tocbibind}
usepackage{makeidx}
makeindex
usepackage{verbatim}
usepackage{mathptmx}
usepackage{nicefrac}
usepackage{setspace}
usepackage{fontspec}
usepackage{easybmat}
usepackage{geometry}
geometry{text={7in,9.5in},headheight=15pt}
geometry{left=40.5mm,right=44.5mm,top=61mm,bottom=51mm}
usepackage[pagebackref=false,colorlinks,linkcolor=blue,citecolor=blue]{hyperref}
usepackage{fancyhdr}
usepackage{enumerate}
usepackage{xfrac}
RequirePackage{hyperref}
usepackage{paralist,enumitem}
usepackage{emptypage}
usepackage{multicol}
usepackage{setspace}
usepackage{stmaryrd}
usepackage{titlesec}
usepackage{mdframed}
usepackage{framed}
usepackage{lastpage}
usepackage{etoolbox}
usepackage[all]{xy}
AtBeginEnvironment{pmatrix}{setlength{arraycolsep}{4pt}}
usepackage{xtab}
usepackage{tabto}
usepackage{array}
usepackage{booktabs}
usepackage[nottoc]{tocbibind}
usepackage{mdframed}
usepackage[computeautoilg=off]{xepersian}
settextfont[Scale=1.2]{IRXLotus}
setdigitfont[Scale=1.2]{IRXLotus}
setlatintextfont[Scale=1.1]{Times New Roman}
pagestyle{fancy}
renewcommand{chaptermark}[1]{%
markboth{#1}{}}
renewcommand{sectionmark}[1]{%
markright{thesection #1}}
fancyhf{} % delete current header and footer
fancyhead[RO]{slshapeleftmark}
fancyhead[LE]{slshaperightmark}
fancyhead[LO,RE]{slshape thepage}
renewcommand{headrulewidth}{0.7pt}
renewcommand{arraystretch}{0.75}
newtheorem{example}{مثال}[chapter]
newtheorem{exam}{تمرین}[chapter]
newtheorem{remark}{تذکر}[chapter]
newtheorem{ghar}{قرارداد}[chapter]
newtheorem{defen}{تعریف}[chapter]
newtheorem{nokte}{نکات}[chapter]
newtheorem{yaad}{یاد آوری}[chapter]
AtBeginEnvironment{nokte}{small}
AtBeginEnvironment{ghar}{small}
AtBeginEnvironment{yaad}{small}
AtBeginEnvironment{remark}{emph}
setstretch{1.4}
newcolumntype{R}{>{$}r<{$}}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{3}
makeatletter newcommand*bigcdot{mathpalettebigcdot@{.5}}
newcommand*bigcdot@[2]{mathbin{vcenter{hbox{scalebox{#2}{$m@th#1bullet$}}}}}
makeatother newcommand*circled[1]{tikz[baseline=(char.base)]{node[shape=circle,draw,inner sep=2pt](char){#1};}}
newcommand{xdownarrow}[1][2ex]{mathrel{rotatebox{90}{$xleftarrow{rule{#1}{0pt}}$}}}
As you see, I used AtBeginEnvironment
to make remark environment non italic. The output pdf gets non italic but I get error:
! Missing endcsname inserted. aftergroup l.914
begin{remark} The control sequence marked should
not appear between csname and endcsname.
What could I do? Thanks for the time!
xepersian
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Have a good time there! I have the following codes:
documentclass[a4paper,openany,12pt]{book}
usepackage[a]{esvect}
usepackage[utf8x]{inputenc}
usepackage{pgf,tikz,pgfplots}
usepgfplotslibrary{patchplots}
usetikzlibrary{backgrounds,fit}
usetikzlibrary{shadows,calc,matrix}
pgfplotsset{compat=1.14}
usepackage{pgffor}
usepackage{amsmath,amssymb,amsthm,amsfonts}
usepackage{mathrsfs,mathtools}
usepackage{libertine}
usepackage{graphicx,color}
usepackage{diagbox}
usepackage{dsfont}
usepackage{fontenc}
usepackage{mathptmx}
usepackage{setspace}
usepackage{systeme}
usepackage{xcolor}
usepackage{wrapfig}
usepackage{diagbox}
usepackage{pifont}
usepackage{setspace}
usepackage{fontspec}
usepackage{easybmat}
usepackage{ptext}
usepackage[nottoc]{tocbibind}
usepackage{makeidx}
makeindex
usepackage{verbatim}
usepackage{mathptmx}
usepackage{nicefrac}
usepackage{setspace}
usepackage{fontspec}
usepackage{easybmat}
usepackage{geometry}
geometry{text={7in,9.5in},headheight=15pt}
geometry{left=40.5mm,right=44.5mm,top=61mm,bottom=51mm}
usepackage[pagebackref=false,colorlinks,linkcolor=blue,citecolor=blue]{hyperref}
usepackage{fancyhdr}
usepackage{enumerate}
usepackage{xfrac}
RequirePackage{hyperref}
usepackage{paralist,enumitem}
usepackage{emptypage}
usepackage{multicol}
usepackage{setspace}
usepackage{stmaryrd}
usepackage{titlesec}
usepackage{mdframed}
usepackage{framed}
usepackage{lastpage}
usepackage{etoolbox}
usepackage[all]{xy}
AtBeginEnvironment{pmatrix}{setlength{arraycolsep}{4pt}}
usepackage{xtab}
usepackage{tabto}
usepackage{array}
usepackage{booktabs}
usepackage[nottoc]{tocbibind}
usepackage{mdframed}
usepackage[computeautoilg=off]{xepersian}
settextfont[Scale=1.2]{IRXLotus}
setdigitfont[Scale=1.2]{IRXLotus}
setlatintextfont[Scale=1.1]{Times New Roman}
pagestyle{fancy}
renewcommand{chaptermark}[1]{%
markboth{#1}{}}
renewcommand{sectionmark}[1]{%
markright{thesection #1}}
fancyhf{} % delete current header and footer
fancyhead[RO]{slshapeleftmark}
fancyhead[LE]{slshaperightmark}
fancyhead[LO,RE]{slshape thepage}
renewcommand{headrulewidth}{0.7pt}
renewcommand{arraystretch}{0.75}
newtheorem{example}{مثال}[chapter]
newtheorem{exam}{تمرین}[chapter]
newtheorem{remark}{تذکر}[chapter]
newtheorem{ghar}{قرارداد}[chapter]
newtheorem{defen}{تعریف}[chapter]
newtheorem{nokte}{نکات}[chapter]
newtheorem{yaad}{یاد آوری}[chapter]
AtBeginEnvironment{nokte}{small}
AtBeginEnvironment{ghar}{small}
AtBeginEnvironment{yaad}{small}
AtBeginEnvironment{remark}{emph}
setstretch{1.4}
newcolumntype{R}{>{$}r<{$}}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{3}
makeatletter newcommand*bigcdot{mathpalettebigcdot@{.5}}
newcommand*bigcdot@[2]{mathbin{vcenter{hbox{scalebox{#2}{$m@th#1bullet$}}}}}
makeatother newcommand*circled[1]{tikz[baseline=(char.base)]{node[shape=circle,draw,inner sep=2pt](char){#1};}}
newcommand{xdownarrow}[1][2ex]{mathrel{rotatebox{90}{$xleftarrow{rule{#1}{0pt}}$}}}
As you see, I used AtBeginEnvironment
to make remark environment non italic. The output pdf gets non italic but I get error:
! Missing endcsname inserted. aftergroup l.914
begin{remark} The control sequence marked should
not appear between csname and endcsname.
What could I do? Thanks for the time!
xepersian
Have a good time there! I have the following codes:
documentclass[a4paper,openany,12pt]{book}
usepackage[a]{esvect}
usepackage[utf8x]{inputenc}
usepackage{pgf,tikz,pgfplots}
usepgfplotslibrary{patchplots}
usetikzlibrary{backgrounds,fit}
usetikzlibrary{shadows,calc,matrix}
pgfplotsset{compat=1.14}
usepackage{pgffor}
usepackage{amsmath,amssymb,amsthm,amsfonts}
usepackage{mathrsfs,mathtools}
usepackage{libertine}
usepackage{graphicx,color}
usepackage{diagbox}
usepackage{dsfont}
usepackage{fontenc}
usepackage{mathptmx}
usepackage{setspace}
usepackage{systeme}
usepackage{xcolor}
usepackage{wrapfig}
usepackage{diagbox}
usepackage{pifont}
usepackage{setspace}
usepackage{fontspec}
usepackage{easybmat}
usepackage{ptext}
usepackage[nottoc]{tocbibind}
usepackage{makeidx}
makeindex
usepackage{verbatim}
usepackage{mathptmx}
usepackage{nicefrac}
usepackage{setspace}
usepackage{fontspec}
usepackage{easybmat}
usepackage{geometry}
geometry{text={7in,9.5in},headheight=15pt}
geometry{left=40.5mm,right=44.5mm,top=61mm,bottom=51mm}
usepackage[pagebackref=false,colorlinks,linkcolor=blue,citecolor=blue]{hyperref}
usepackage{fancyhdr}
usepackage{enumerate}
usepackage{xfrac}
RequirePackage{hyperref}
usepackage{paralist,enumitem}
usepackage{emptypage}
usepackage{multicol}
usepackage{setspace}
usepackage{stmaryrd}
usepackage{titlesec}
usepackage{mdframed}
usepackage{framed}
usepackage{lastpage}
usepackage{etoolbox}
usepackage[all]{xy}
AtBeginEnvironment{pmatrix}{setlength{arraycolsep}{4pt}}
usepackage{xtab}
usepackage{tabto}
usepackage{array}
usepackage{booktabs}
usepackage[nottoc]{tocbibind}
usepackage{mdframed}
usepackage[computeautoilg=off]{xepersian}
settextfont[Scale=1.2]{IRXLotus}
setdigitfont[Scale=1.2]{IRXLotus}
setlatintextfont[Scale=1.1]{Times New Roman}
pagestyle{fancy}
renewcommand{chaptermark}[1]{%
markboth{#1}{}}
renewcommand{sectionmark}[1]{%
markright{thesection #1}}
fancyhf{} % delete current header and footer
fancyhead[RO]{slshapeleftmark}
fancyhead[LE]{slshaperightmark}
fancyhead[LO,RE]{slshape thepage}
renewcommand{headrulewidth}{0.7pt}
renewcommand{arraystretch}{0.75}
newtheorem{example}{مثال}[chapter]
newtheorem{exam}{تمرین}[chapter]
newtheorem{remark}{تذکر}[chapter]
newtheorem{ghar}{قرارداد}[chapter]
newtheorem{defen}{تعریف}[chapter]
newtheorem{nokte}{نکات}[chapter]
newtheorem{yaad}{یاد آوری}[chapter]
AtBeginEnvironment{nokte}{small}
AtBeginEnvironment{ghar}{small}
AtBeginEnvironment{yaad}{small}
AtBeginEnvironment{remark}{emph}
setstretch{1.4}
newcolumntype{R}{>{$}r<{$}}
setcounter{secnumdepth}{3}
setcounter{tocdepth}{3}
makeatletter newcommand*bigcdot{mathpalettebigcdot@{.5}}
newcommand*bigcdot@[2]{mathbin{vcenter{hbox{scalebox{#2}{$m@th#1bullet$}}}}}
makeatother newcommand*circled[1]{tikz[baseline=(char.base)]{node[shape=circle,draw,inner sep=2pt](char){#1};}}
newcommand{xdownarrow}[1][2ex]{mathrel{rotatebox{90}{$xleftarrow{rule{#1}{0pt}}$}}}
As you see, I used AtBeginEnvironment
to make remark environment non italic. The output pdf gets non italic but I get error:
! Missing endcsname inserted. aftergroup l.914
begin{remark} The control sequence marked should
not appear between csname and endcsname.
What could I do? Thanks for the time!
xepersian
xepersian
edited 8 mins ago
Kurt
35k847158
35k847158
asked 10 mins ago
mrs
1618
1618
add a comment |
add a comment |
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f466488%2ftrouble-while-using-emph-or-textup%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f466488%2ftrouble-while-using-emph-or-textup%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown