Use contour package in tufte-book title
I want to use coutour
for the title of a tufte-book document.
Here's the codes:
newcommand*{myfont}{fontfamily{qzc}selectfont}
newcommand{undertitle}[1]{
gdefundertitle{#1} }%
newcommand{overtitle}[1]{
gdefovertitle{#1} }%
newboolean{@logobool}
newlength{logoshift}
newcommand{logo}[2][0cm]{%
gdefthelogo{#2}
setboolean{@logobool}{true}
setlength{logoshift}{-0.75cm}
addtolength{logoshift}{#1}
}%
renewcommand{maketitlepage}{%
cleardoublepage%
{%
%%
begin{fullwidth}%
{sffamily fontsize{18}{20}selectfontparnoindenttextcolor{darkgray}{allcaps{thanklessauthor}}}%
%vspace{0.2cm}
ifthenelse{boolean{@logobool}}{
hfill makebox[0cm][r]{raisebox{logoshift}{includegraphics[height=2cm]{thelogo}}}%
}{}
vspace{9.5pc}%
fontsize{18}{40}selectfontparnoindenttextcolor{black}{contour{red}{overtitle}}%
{myfont
fontsize{40}{40}selectfontparnoindent{countour{red}textcolor{black}{thanklesstitle}}%
fontsize{26}{40}selectfontparnoindenttextcolor{black}{{undertitle}}}%
{}%
vspace{0.5in}
vfill
fontsize{12}{16}selectfontparnoindentallcaps{thanklesspublisher}%
end{fullwidth}%
}
thispagestyle{empty}%
clearpage%
}
overtitle{Test Over Title}
title{
Test title
\ noindent
& Title title title title
} %title
undertitle{}
logo{logo.png}
%pchen02.jpg
author{Author} % Author
publisher{
} % Publisher
date{today}
maketitle
I want to use contour
command in the title-line as above, the result of the overtitle
is exactly what I want. But it doesn't work in the title
line.
The errors was
Argument of \@contouras an extra }.
and
Paragraph ended before \@ contour was complete.
Is it because of the font? I'm using sffamily
for overtitle and qzc
for the title.
packages titles contour
New contributor
add a comment |
I want to use coutour
for the title of a tufte-book document.
Here's the codes:
newcommand*{myfont}{fontfamily{qzc}selectfont}
newcommand{undertitle}[1]{
gdefundertitle{#1} }%
newcommand{overtitle}[1]{
gdefovertitle{#1} }%
newboolean{@logobool}
newlength{logoshift}
newcommand{logo}[2][0cm]{%
gdefthelogo{#2}
setboolean{@logobool}{true}
setlength{logoshift}{-0.75cm}
addtolength{logoshift}{#1}
}%
renewcommand{maketitlepage}{%
cleardoublepage%
{%
%%
begin{fullwidth}%
{sffamily fontsize{18}{20}selectfontparnoindenttextcolor{darkgray}{allcaps{thanklessauthor}}}%
%vspace{0.2cm}
ifthenelse{boolean{@logobool}}{
hfill makebox[0cm][r]{raisebox{logoshift}{includegraphics[height=2cm]{thelogo}}}%
}{}
vspace{9.5pc}%
fontsize{18}{40}selectfontparnoindenttextcolor{black}{contour{red}{overtitle}}%
{myfont
fontsize{40}{40}selectfontparnoindent{countour{red}textcolor{black}{thanklesstitle}}%
fontsize{26}{40}selectfontparnoindenttextcolor{black}{{undertitle}}}%
{}%
vspace{0.5in}
vfill
fontsize{12}{16}selectfontparnoindentallcaps{thanklesspublisher}%
end{fullwidth}%
}
thispagestyle{empty}%
clearpage%
}
overtitle{Test Over Title}
title{
Test title
\ noindent
& Title title title title
} %title
undertitle{}
logo{logo.png}
%pchen02.jpg
author{Author} % Author
publisher{
} % Publisher
date{today}
maketitle
I want to use contour
command in the title-line as above, the result of the overtitle
is exactly what I want. But it doesn't work in the title
line.
The errors was
Argument of \@contouras an extra }.
and
Paragraph ended before \@ contour was complete.
Is it because of the font? I'm using sffamily
for overtitle and qzc
for the title.
packages titles contour
New contributor
You will get much quicker an answer if you provide us with a compilable code. (And did you try to useprotect
beforecontour
?)
– marmot
12 mins ago
add a comment |
I want to use coutour
for the title of a tufte-book document.
Here's the codes:
newcommand*{myfont}{fontfamily{qzc}selectfont}
newcommand{undertitle}[1]{
gdefundertitle{#1} }%
newcommand{overtitle}[1]{
gdefovertitle{#1} }%
newboolean{@logobool}
newlength{logoshift}
newcommand{logo}[2][0cm]{%
gdefthelogo{#2}
setboolean{@logobool}{true}
setlength{logoshift}{-0.75cm}
addtolength{logoshift}{#1}
}%
renewcommand{maketitlepage}{%
cleardoublepage%
{%
%%
begin{fullwidth}%
{sffamily fontsize{18}{20}selectfontparnoindenttextcolor{darkgray}{allcaps{thanklessauthor}}}%
%vspace{0.2cm}
ifthenelse{boolean{@logobool}}{
hfill makebox[0cm][r]{raisebox{logoshift}{includegraphics[height=2cm]{thelogo}}}%
}{}
vspace{9.5pc}%
fontsize{18}{40}selectfontparnoindenttextcolor{black}{contour{red}{overtitle}}%
{myfont
fontsize{40}{40}selectfontparnoindent{countour{red}textcolor{black}{thanklesstitle}}%
fontsize{26}{40}selectfontparnoindenttextcolor{black}{{undertitle}}}%
{}%
vspace{0.5in}
vfill
fontsize{12}{16}selectfontparnoindentallcaps{thanklesspublisher}%
end{fullwidth}%
}
thispagestyle{empty}%
clearpage%
}
overtitle{Test Over Title}
title{
Test title
\ noindent
& Title title title title
} %title
undertitle{}
logo{logo.png}
%pchen02.jpg
author{Author} % Author
publisher{
} % Publisher
date{today}
maketitle
I want to use contour
command in the title-line as above, the result of the overtitle
is exactly what I want. But it doesn't work in the title
line.
The errors was
Argument of \@contouras an extra }.
and
Paragraph ended before \@ contour was complete.
Is it because of the font? I'm using sffamily
for overtitle and qzc
for the title.
packages titles contour
New contributor
I want to use coutour
for the title of a tufte-book document.
Here's the codes:
newcommand*{myfont}{fontfamily{qzc}selectfont}
newcommand{undertitle}[1]{
gdefundertitle{#1} }%
newcommand{overtitle}[1]{
gdefovertitle{#1} }%
newboolean{@logobool}
newlength{logoshift}
newcommand{logo}[2][0cm]{%
gdefthelogo{#2}
setboolean{@logobool}{true}
setlength{logoshift}{-0.75cm}
addtolength{logoshift}{#1}
}%
renewcommand{maketitlepage}{%
cleardoublepage%
{%
%%
begin{fullwidth}%
{sffamily fontsize{18}{20}selectfontparnoindenttextcolor{darkgray}{allcaps{thanklessauthor}}}%
%vspace{0.2cm}
ifthenelse{boolean{@logobool}}{
hfill makebox[0cm][r]{raisebox{logoshift}{includegraphics[height=2cm]{thelogo}}}%
}{}
vspace{9.5pc}%
fontsize{18}{40}selectfontparnoindenttextcolor{black}{contour{red}{overtitle}}%
{myfont
fontsize{40}{40}selectfontparnoindent{countour{red}textcolor{black}{thanklesstitle}}%
fontsize{26}{40}selectfontparnoindenttextcolor{black}{{undertitle}}}%
{}%
vspace{0.5in}
vfill
fontsize{12}{16}selectfontparnoindentallcaps{thanklesspublisher}%
end{fullwidth}%
}
thispagestyle{empty}%
clearpage%
}
overtitle{Test Over Title}
title{
Test title
\ noindent
& Title title title title
} %title
undertitle{}
logo{logo.png}
%pchen02.jpg
author{Author} % Author
publisher{
} % Publisher
date{today}
maketitle
I want to use contour
command in the title-line as above, the result of the overtitle
is exactly what I want. But it doesn't work in the title
line.
The errors was
Argument of \@contouras an extra }.
and
Paragraph ended before \@ contour was complete.
Is it because of the font? I'm using sffamily
for overtitle and qzc
for the title.
packages titles contour
packages titles contour
New contributor
New contributor
New contributor
asked 14 mins ago
W.Z.Zhang
133
133
New contributor
New contributor
You will get much quicker an answer if you provide us with a compilable code. (And did you try to useprotect
beforecontour
?)
– marmot
12 mins ago
add a comment |
You will get much quicker an answer if you provide us with a compilable code. (And did you try to useprotect
beforecontour
?)
– marmot
12 mins ago
You will get much quicker an answer if you provide us with a compilable code. (And did you try to use
protect
before contour
?)– marmot
12 mins ago
You will get much quicker an answer if you provide us with a compilable code. (And did you try to use
protect
before contour
?)– marmot
12 mins ago
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
});
}
});
W.Z.Zhang is a new contributor. Be nice, and check out our Code of Conduct.
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%2f467868%2fuse-contour-package-in-tufte-book-title%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
W.Z.Zhang is a new contributor. Be nice, and check out our Code of Conduct.
W.Z.Zhang is a new contributor. Be nice, and check out our Code of Conduct.
W.Z.Zhang is a new contributor. Be nice, and check out our Code of Conduct.
W.Z.Zhang is a new contributor. Be nice, and check out our Code of Conduct.
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%2f467868%2fuse-contour-package-in-tufte-book-title%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
You will get much quicker an answer if you provide us with a compilable code. (And did you try to use
protect
beforecontour
?)– marmot
12 mins ago