Bookmarks hierarchy with custom titleclass
I'm new here, but I've been using LaTeX for some years already.
Recently I had to define new chapter- and section-like levels in my document, and I created them using the titlesec
package, with the titleclass
command. For a correct formatting in the TOC I used titletoc
(titlecontents
command).
titleclass{fase}{straight}[chapter]
newcounter{fase}
titleformat{fase}{centeringsffamilyhugebfseries}{}{0em}{FASE thefase\ }
titlespacing*{fase}{0pt}{3.25ex plus 1ex minus .2ex}{1cm}
titlecontents{fase}[0pt]{vspace{1em}}{bfseries Fase thecontentslabel : }{}{bfserieshfillcontentspage}
titleclass{tarea}{straight}[fase]
newcounter{tarea}[fase]
titleformat{tarea}{sffamilyLARGEbfseries}{TAREA thefase.thetarea: }{0em}{}
titlespacing*{tarea}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
titlecontents{tarea}[1.5em]{}{Tarea thecontentslabel : }{}{ hfillcontentspage}
The thing is that it does not respect the levels in the pdf bookmarks. In Overleaf, hyperref
throws a warning saying that the level is unknown for tarea
and it sets it to 0, so I guess there must be a way to set the level for this section-like command. But nothing appears in my local distribution (texlive for windows)
To show what I mean, here's a screenshot:
So 'Introducción' was created with chapter
, 'Objetivos', 'Herramientas a utilizar' y 'Zona de trabajo' with section
.
Now, 'Sistema de separación' and 'Sistema ARQUIMEA' are fase
, and the rest are tarea
(fase = phase, tarea = task)
I looked online, but none of the solutions that I found deal with exactly the same problem, so their solutions didn't work.
Any idea?
hyperref pdf titlesec bookmarks
add a comment |
I'm new here, but I've been using LaTeX for some years already.
Recently I had to define new chapter- and section-like levels in my document, and I created them using the titlesec
package, with the titleclass
command. For a correct formatting in the TOC I used titletoc
(titlecontents
command).
titleclass{fase}{straight}[chapter]
newcounter{fase}
titleformat{fase}{centeringsffamilyhugebfseries}{}{0em}{FASE thefase\ }
titlespacing*{fase}{0pt}{3.25ex plus 1ex minus .2ex}{1cm}
titlecontents{fase}[0pt]{vspace{1em}}{bfseries Fase thecontentslabel : }{}{bfserieshfillcontentspage}
titleclass{tarea}{straight}[fase]
newcounter{tarea}[fase]
titleformat{tarea}{sffamilyLARGEbfseries}{TAREA thefase.thetarea: }{0em}{}
titlespacing*{tarea}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
titlecontents{tarea}[1.5em]{}{Tarea thecontentslabel : }{}{ hfillcontentspage}
The thing is that it does not respect the levels in the pdf bookmarks. In Overleaf, hyperref
throws a warning saying that the level is unknown for tarea
and it sets it to 0, so I guess there must be a way to set the level for this section-like command. But nothing appears in my local distribution (texlive for windows)
To show what I mean, here's a screenshot:
So 'Introducción' was created with chapter
, 'Objetivos', 'Herramientas a utilizar' y 'Zona de trabajo' with section
.
Now, 'Sistema de separación' and 'Sistema ARQUIMEA' are fase
, and the rest are tarea
(fase = phase, tarea = task)
I looked online, but none of the solutions that I found deal with exactly the same problem, so their solutions didn't work.
Any idea?
hyperref pdf titlesec bookmarks
add a comment |
I'm new here, but I've been using LaTeX for some years already.
Recently I had to define new chapter- and section-like levels in my document, and I created them using the titlesec
package, with the titleclass
command. For a correct formatting in the TOC I used titletoc
(titlecontents
command).
titleclass{fase}{straight}[chapter]
newcounter{fase}
titleformat{fase}{centeringsffamilyhugebfseries}{}{0em}{FASE thefase\ }
titlespacing*{fase}{0pt}{3.25ex plus 1ex minus .2ex}{1cm}
titlecontents{fase}[0pt]{vspace{1em}}{bfseries Fase thecontentslabel : }{}{bfserieshfillcontentspage}
titleclass{tarea}{straight}[fase]
newcounter{tarea}[fase]
titleformat{tarea}{sffamilyLARGEbfseries}{TAREA thefase.thetarea: }{0em}{}
titlespacing*{tarea}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
titlecontents{tarea}[1.5em]{}{Tarea thecontentslabel : }{}{ hfillcontentspage}
The thing is that it does not respect the levels in the pdf bookmarks. In Overleaf, hyperref
throws a warning saying that the level is unknown for tarea
and it sets it to 0, so I guess there must be a way to set the level for this section-like command. But nothing appears in my local distribution (texlive for windows)
To show what I mean, here's a screenshot:
So 'Introducción' was created with chapter
, 'Objetivos', 'Herramientas a utilizar' y 'Zona de trabajo' with section
.
Now, 'Sistema de separación' and 'Sistema ARQUIMEA' are fase
, and the rest are tarea
(fase = phase, tarea = task)
I looked online, but none of the solutions that I found deal with exactly the same problem, so their solutions didn't work.
Any idea?
hyperref pdf titlesec bookmarks
I'm new here, but I've been using LaTeX for some years already.
Recently I had to define new chapter- and section-like levels in my document, and I created them using the titlesec
package, with the titleclass
command. For a correct formatting in the TOC I used titletoc
(titlecontents
command).
titleclass{fase}{straight}[chapter]
newcounter{fase}
titleformat{fase}{centeringsffamilyhugebfseries}{}{0em}{FASE thefase\ }
titlespacing*{fase}{0pt}{3.25ex plus 1ex minus .2ex}{1cm}
titlecontents{fase}[0pt]{vspace{1em}}{bfseries Fase thecontentslabel : }{}{bfserieshfillcontentspage}
titleclass{tarea}{straight}[fase]
newcounter{tarea}[fase]
titleformat{tarea}{sffamilyLARGEbfseries}{TAREA thefase.thetarea: }{0em}{}
titlespacing*{tarea}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
titlecontents{tarea}[1.5em]{}{Tarea thecontentslabel : }{}{ hfillcontentspage}
The thing is that it does not respect the levels in the pdf bookmarks. In Overleaf, hyperref
throws a warning saying that the level is unknown for tarea
and it sets it to 0, so I guess there must be a way to set the level for this section-like command. But nothing appears in my local distribution (texlive for windows)
To show what I mean, here's a screenshot:
So 'Introducción' was created with chapter
, 'Objetivos', 'Herramientas a utilizar' y 'Zona de trabajo' with section
.
Now, 'Sistema de separación' and 'Sistema ARQUIMEA' are fase
, and the rest are tarea
(fase = phase, tarea = task)
I looked online, but none of the solutions that I found deal with exactly the same problem, so their solutions didn't work.
Any idea?
hyperref pdf titlesec bookmarks
hyperref pdf titlesec bookmarks
asked Jan 14 at 23:09
Daniel L.Daniel L.
62
62
add a comment |
add a comment |
0
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%2f470153%2fbookmarks-hierarchy-with-custom-titleclass%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
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.
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%2f470153%2fbookmarks-hierarchy-with-custom-titleclass%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