Why does a float with the [H] option not appear in as a bookmarkCustom bookmark list of figures and...

Custom shape shows unwanted extra line

Broad Strokes - missing letter riddle

When Are Enum Values Defined?

How vim overwrites readonly mode?

What species should be used for storage of human minds?

How big is a framed opening for a door relative to the finished door opening width?

Need help with a circuit diagram where the motor does not seem to have any connection to ground. Error with diagram? Or am i missing something?

Does Skippy chunky peanut butter contain trans fat?

Does the US government have any planning in place to ensure there's no shortages of food, fuel, steel and other commodities?

Equivalent of "illegal" for violating civil law

What senses are available to a corpse subjected to a Speak with Dead spell?

"Starve to death" Vs. "Starve to the point of death"

The No-Straight Maze

Boss asked me to sign a resignation paper without a date on it along with my new contract

A fantasy book with seven white haired women on the cover

How is this property called for mod?

Can we "borrow" our answers to populate our own websites?

Are the positive and negative planes inner or outer planes in the Great Wheel cosmology model?

How do you funnel food off a cutting board?

How to not let the Identify spell spoil everything?

Single-row INSERT...SELECT much slower than separate SELECT

Crack the bank account's password!

What's the oldest plausible frozen specimen for a Jurassic Park style story-line?

Taking headphones when quitting job



Why does a float with the [H] option not appear in as a bookmark


Custom bookmark list of figures and tablesFigures and Tables in ToC within sectionThe chapters appear twice in the bookmarkHow to embed the list figures into the document's main ToC without bad effects on the PDF ToCTable caption not appearing in PNAS document classPage number on the left with book classModifying the appearance of bookmarks through the 'bookmark' and 'hyperref' packageslist of figures and tables when there are no figures or tables?Extended figure caption and accompanying “List of”How to show Mini table only sections in a chapter not other chapter?line spacing between each number in list of figureNumbering chapters, sections and subsections continuous after figure label, not the document













2















In the image/code below, why does Figure 1.1 does not appear in the bookmarks?All other figures appear as normal, but the figure in Chapter 1 does not appear?



Figure 1.1 is the only figure that uses [H]. I am required to use this float specification. My code is based on this question: Custom bookmark list of figures and tables



How can I make Figure 1.1 appear in the bookmarks?



documentclass{book}
usepackage{caption}
usepackage{etoolbox}
usepackage{float}

usepackage[pdftex, bookmarksnumbered, pagebackref, colorlinks=true, citecolor=Blue, linkcolor=DarkBlue!30!Black, urlcolor=Black,bookmarksopen]{hyperref}
hypersetup{colorlinks,
linkcolor=blue,
linktoc=page}

usepackage{bookmark}
usepackage{copyrightbox}
usepackage{tcolorbox}

makeatletter
newcommand{listoffiguresbookmarks}{%
pdfbookmark[0]{listfigurename}{listoffiguresbookmark}
bookmarksetup{level=1}
@starttoc{lofb}
}
newcommand{listoftablesbookmarks}{%
pdfbookmark[0]{listtablename}{listoftablesbookmark}
bookmarksetup{level=1}
@starttoc{lotb}
}

makeatother

%%% Generate bookmarks for all figures and tables
makeatletter

pretocmdendfigure{%
addtocontents{lofb}{%
protect{%
bookmark[
rellevel=1,
keeplevel,
dest=@currentHref,
]{Figure thefigure: @currentlabelname}}}%
}{}{errmessage{Patching noexpandendfigure failed}}
pretocmdendtable{%
addtocontents{lotb}{%
protect{%
bookmark[
rellevel=1,
keeplevel,
dest=@currentHref,
]{Table thetable: @currentlabelname}}}%
}{}{errmessage{Patching noexpandendtable failed}}

makeatother



AtEndDocument{%
listoffiguresbookmarks
listoftablesbookmarks
}











begin{document}

tableofcontents
chapter*{Dedicatory}
to all my family
chapter*{Abstract}
hello world



chapter{ETAPA}
label{cap:experimental}
this intro

section{Exp}
this Exp SECTION


subsection{Descriptión}
description subSection

begin{figure}[H]
centering
caption{F1}
label{label1}
copyrightbox[b]{tcbox{includegraphics[scale=0.9]{example-image-a}}}{source: na.}
end{figure}

this image













chapter{chapter}
hellow
section{Introduction}
In this example several keywordsindex{keywords} will be
used which are important and deserve to appear in

begin{table}[ht]
begin{tabular}{cc}
Header & Header \
1&2\
end{tabular}
caption[Table caption text]{This is a table with a very long caption text
and it would be nice to use the short caption in the bookmark}
label{table 1}
end{table}

subsection{subsection}
Terms like generateindex{generate} and someindex{others}
will also show up. Terms in the index can also be
nested index{Index!nested}

begin{figure}[ht]
centering
caption{Caption.}
label{label2}
copyrightbox[b]{tcbox{includegraphics[width=3cm]{example-image-a}}}{fuente:fuente1}
end{figure}


clearpage

section{Second section}
This second sectionindex{section} may include some special



hello1
begin{figure}[ht]
centering
rule{6cm}{3cm}
caption{Figure caption text}
label{figura 1}
end{figure}
word, and expand the ones already usedindex{keywords!used}.


end{document}


enter image description here










share|improve this question

























  • @Kurt still does not appear, edit my question with your observation

    – x-rw
    2 hours ago
















2















In the image/code below, why does Figure 1.1 does not appear in the bookmarks?All other figures appear as normal, but the figure in Chapter 1 does not appear?



Figure 1.1 is the only figure that uses [H]. I am required to use this float specification. My code is based on this question: Custom bookmark list of figures and tables



How can I make Figure 1.1 appear in the bookmarks?



documentclass{book}
usepackage{caption}
usepackage{etoolbox}
usepackage{float}

usepackage[pdftex, bookmarksnumbered, pagebackref, colorlinks=true, citecolor=Blue, linkcolor=DarkBlue!30!Black, urlcolor=Black,bookmarksopen]{hyperref}
hypersetup{colorlinks,
linkcolor=blue,
linktoc=page}

usepackage{bookmark}
usepackage{copyrightbox}
usepackage{tcolorbox}

makeatletter
newcommand{listoffiguresbookmarks}{%
pdfbookmark[0]{listfigurename}{listoffiguresbookmark}
bookmarksetup{level=1}
@starttoc{lofb}
}
newcommand{listoftablesbookmarks}{%
pdfbookmark[0]{listtablename}{listoftablesbookmark}
bookmarksetup{level=1}
@starttoc{lotb}
}

makeatother

%%% Generate bookmarks for all figures and tables
makeatletter

pretocmdendfigure{%
addtocontents{lofb}{%
protect{%
bookmark[
rellevel=1,
keeplevel,
dest=@currentHref,
]{Figure thefigure: @currentlabelname}}}%
}{}{errmessage{Patching noexpandendfigure failed}}
pretocmdendtable{%
addtocontents{lotb}{%
protect{%
bookmark[
rellevel=1,
keeplevel,
dest=@currentHref,
]{Table thetable: @currentlabelname}}}%
}{}{errmessage{Patching noexpandendtable failed}}

makeatother



AtEndDocument{%
listoffiguresbookmarks
listoftablesbookmarks
}











begin{document}

tableofcontents
chapter*{Dedicatory}
to all my family
chapter*{Abstract}
hello world



chapter{ETAPA}
label{cap:experimental}
this intro

section{Exp}
this Exp SECTION


subsection{Descriptión}
description subSection

begin{figure}[H]
centering
caption{F1}
label{label1}
copyrightbox[b]{tcbox{includegraphics[scale=0.9]{example-image-a}}}{source: na.}
end{figure}

this image













chapter{chapter}
hellow
section{Introduction}
In this example several keywordsindex{keywords} will be
used which are important and deserve to appear in

begin{table}[ht]
begin{tabular}{cc}
Header & Header \
1&2\
end{tabular}
caption[Table caption text]{This is a table with a very long caption text
and it would be nice to use the short caption in the bookmark}
label{table 1}
end{table}

subsection{subsection}
Terms like generateindex{generate} and someindex{others}
will also show up. Terms in the index can also be
nested index{Index!nested}

begin{figure}[ht]
centering
caption{Caption.}
label{label2}
copyrightbox[b]{tcbox{includegraphics[width=3cm]{example-image-a}}}{fuente:fuente1}
end{figure}


clearpage

section{Second section}
This second sectionindex{section} may include some special



hello1
begin{figure}[ht]
centering
rule{6cm}{3cm}
caption{Figure caption text}
label{figura 1}
end{figure}
word, and expand the ones already usedindex{keywords!used}.


end{document}


enter image description here










share|improve this question

























  • @Kurt still does not appear, edit my question with your observation

    – x-rw
    2 hours ago














2












2








2








In the image/code below, why does Figure 1.1 does not appear in the bookmarks?All other figures appear as normal, but the figure in Chapter 1 does not appear?



Figure 1.1 is the only figure that uses [H]. I am required to use this float specification. My code is based on this question: Custom bookmark list of figures and tables



How can I make Figure 1.1 appear in the bookmarks?



documentclass{book}
usepackage{caption}
usepackage{etoolbox}
usepackage{float}

usepackage[pdftex, bookmarksnumbered, pagebackref, colorlinks=true, citecolor=Blue, linkcolor=DarkBlue!30!Black, urlcolor=Black,bookmarksopen]{hyperref}
hypersetup{colorlinks,
linkcolor=blue,
linktoc=page}

usepackage{bookmark}
usepackage{copyrightbox}
usepackage{tcolorbox}

makeatletter
newcommand{listoffiguresbookmarks}{%
pdfbookmark[0]{listfigurename}{listoffiguresbookmark}
bookmarksetup{level=1}
@starttoc{lofb}
}
newcommand{listoftablesbookmarks}{%
pdfbookmark[0]{listtablename}{listoftablesbookmark}
bookmarksetup{level=1}
@starttoc{lotb}
}

makeatother

%%% Generate bookmarks for all figures and tables
makeatletter

pretocmdendfigure{%
addtocontents{lofb}{%
protect{%
bookmark[
rellevel=1,
keeplevel,
dest=@currentHref,
]{Figure thefigure: @currentlabelname}}}%
}{}{errmessage{Patching noexpandendfigure failed}}
pretocmdendtable{%
addtocontents{lotb}{%
protect{%
bookmark[
rellevel=1,
keeplevel,
dest=@currentHref,
]{Table thetable: @currentlabelname}}}%
}{}{errmessage{Patching noexpandendtable failed}}

makeatother



AtEndDocument{%
listoffiguresbookmarks
listoftablesbookmarks
}











begin{document}

tableofcontents
chapter*{Dedicatory}
to all my family
chapter*{Abstract}
hello world



chapter{ETAPA}
label{cap:experimental}
this intro

section{Exp}
this Exp SECTION


subsection{Descriptión}
description subSection

begin{figure}[H]
centering
caption{F1}
label{label1}
copyrightbox[b]{tcbox{includegraphics[scale=0.9]{example-image-a}}}{source: na.}
end{figure}

this image













chapter{chapter}
hellow
section{Introduction}
In this example several keywordsindex{keywords} will be
used which are important and deserve to appear in

begin{table}[ht]
begin{tabular}{cc}
Header & Header \
1&2\
end{tabular}
caption[Table caption text]{This is a table with a very long caption text
and it would be nice to use the short caption in the bookmark}
label{table 1}
end{table}

subsection{subsection}
Terms like generateindex{generate} and someindex{others}
will also show up. Terms in the index can also be
nested index{Index!nested}

begin{figure}[ht]
centering
caption{Caption.}
label{label2}
copyrightbox[b]{tcbox{includegraphics[width=3cm]{example-image-a}}}{fuente:fuente1}
end{figure}


clearpage

section{Second section}
This second sectionindex{section} may include some special



hello1
begin{figure}[ht]
centering
rule{6cm}{3cm}
caption{Figure caption text}
label{figura 1}
end{figure}
word, and expand the ones already usedindex{keywords!used}.


end{document}


enter image description here










share|improve this question
















In the image/code below, why does Figure 1.1 does not appear in the bookmarks?All other figures appear as normal, but the figure in Chapter 1 does not appear?



Figure 1.1 is the only figure that uses [H]. I am required to use this float specification. My code is based on this question: Custom bookmark list of figures and tables



How can I make Figure 1.1 appear in the bookmarks?



documentclass{book}
usepackage{caption}
usepackage{etoolbox}
usepackage{float}

usepackage[pdftex, bookmarksnumbered, pagebackref, colorlinks=true, citecolor=Blue, linkcolor=DarkBlue!30!Black, urlcolor=Black,bookmarksopen]{hyperref}
hypersetup{colorlinks,
linkcolor=blue,
linktoc=page}

usepackage{bookmark}
usepackage{copyrightbox}
usepackage{tcolorbox}

makeatletter
newcommand{listoffiguresbookmarks}{%
pdfbookmark[0]{listfigurename}{listoffiguresbookmark}
bookmarksetup{level=1}
@starttoc{lofb}
}
newcommand{listoftablesbookmarks}{%
pdfbookmark[0]{listtablename}{listoftablesbookmark}
bookmarksetup{level=1}
@starttoc{lotb}
}

makeatother

%%% Generate bookmarks for all figures and tables
makeatletter

pretocmdendfigure{%
addtocontents{lofb}{%
protect{%
bookmark[
rellevel=1,
keeplevel,
dest=@currentHref,
]{Figure thefigure: @currentlabelname}}}%
}{}{errmessage{Patching noexpandendfigure failed}}
pretocmdendtable{%
addtocontents{lotb}{%
protect{%
bookmark[
rellevel=1,
keeplevel,
dest=@currentHref,
]{Table thetable: @currentlabelname}}}%
}{}{errmessage{Patching noexpandendtable failed}}

makeatother



AtEndDocument{%
listoffiguresbookmarks
listoftablesbookmarks
}











begin{document}

tableofcontents
chapter*{Dedicatory}
to all my family
chapter*{Abstract}
hello world



chapter{ETAPA}
label{cap:experimental}
this intro

section{Exp}
this Exp SECTION


subsection{Descriptión}
description subSection

begin{figure}[H]
centering
caption{F1}
label{label1}
copyrightbox[b]{tcbox{includegraphics[scale=0.9]{example-image-a}}}{source: na.}
end{figure}

this image













chapter{chapter}
hellow
section{Introduction}
In this example several keywordsindex{keywords} will be
used which are important and deserve to appear in

begin{table}[ht]
begin{tabular}{cc}
Header & Header \
1&2\
end{tabular}
caption[Table caption text]{This is a table with a very long caption text
and it would be nice to use the short caption in the bookmark}
label{table 1}
end{table}

subsection{subsection}
Terms like generateindex{generate} and someindex{others}
will also show up. Terms in the index can also be
nested index{Index!nested}

begin{figure}[ht]
centering
caption{Caption.}
label{label2}
copyrightbox[b]{tcbox{includegraphics[width=3cm]{example-image-a}}}{fuente:fuente1}
end{figure}


clearpage

section{Second section}
This second sectionindex{section} may include some special



hello1
begin{figure}[ht]
centering
rule{6cm}{3cm}
caption{Figure caption text}
label{figura 1}
end{figure}
word, and expand the ones already usedindex{keywords!used}.


end{document}


enter image description here







table-of-contents floats bookmarks






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 mins ago









Werner

445k699811686




445k699811686










asked 2 hours ago









x-rwx-rw

51818




51818













  • @Kurt still does not appear, edit my question with your observation

    – x-rw
    2 hours ago



















  • @Kurt still does not appear, edit my question with your observation

    – x-rw
    2 hours ago

















@Kurt still does not appear, edit my question with your observation

– x-rw
2 hours ago





@Kurt still does not appear, edit my question with your observation

– x-rw
2 hours ago










1 Answer
1






active

oldest

votes


















1














You can use the following, more condensed version that taps into caption.



enter image description here



documentclass{book}

usepackage{caption,xparse}
usepackage{float}

usepackage{hyperref}
hypersetup{
colorlinks,
linkcolor=blue,
linktoc=page,
bookmarksopen
}

usepackage{bookmark}
usepackage{copyrightbox}
usepackage{tcolorbox}

makeatletter
newcommand{listoffiguresbookmarks}{%
pdfbookmark[0]{listfigurename}{listoffiguresbookmark}
bookmarksetup{level=1}
@starttoc{lofb}
}
newcommand{listoftablesbookmarks}{%
pdfbookmark[0]{listtablename}{listoftablesbookmark}
bookmarksetup{level=1}
@starttoc{lotb}
}

makeatother

%%% Generate bookmarks for all figures and tables

makeatletter

AtBeginDocument{
letoldcaptioncaption
RenewDocumentCommand{caption}{o m}{%
IfValueTF{#1}
{oldcaption[#1]{#2}}
{oldcaption{#2}}
addtocontents{csname ext@@captypeendcsname b}{%
protectbookmark[
rellevel=1,
keeplevel,
dest=@currentHref
]{csname fnum@@captypeendcsname: @currentlabelname}%
}%
}%
}
makeatletter

AtEndDocument{%
listoffiguresbookmarks
listoftablesbookmarks
}

begin{document}

tableofcontents

chapter*{Dedicatory}
to all my family

chapter*{Abstract}
hello world

chapter{ETAPA}
this intro

section{Exp}
this Exp SECTION

subsection{Descriptión}
description subSection

begin{figure}[H]
centering
caption{F1}
copyrightbox[b]{tcbox{includegraphics[scale=0.9]{example-image-a}}}{source: na.}
end{figure}

this image


chapter{chapter}
hellow

section{Introduction}
In this example several keywords will be
used which are important and deserve to appear in

begin{table}[ht]
begin{tabular}{cc}
Header & Header \
1 & 2
end{tabular}
caption[Table caption text]
{This is a table with a very long caption text and it would be nice to use the short caption in the bookmark}
end{table}

subsection{subsection}
Terms like generate and some will also show up. Terms in the index can also be nested

begin{figure}[ht]
centering
caption{Caption.}
copyrightbox[b]{tcbox{includegraphics[width=3cm]{example-image-a}}}{fuente:fuente1}
end{figure}

clearpage

section{Second section}
This second section may include some special

hello1

begin{figure}[ht]
centering
rule{6cm}{3cm}
caption{Figure caption text}
end{figure}

word, and expand the ones already used.

end{document}





share|improve this answer
























  • what is the changes? thanks, Can you explain me a little, what should I increase? What should I delete?

    – x-rw
    29 mins ago











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476682%2fwhy-does-a-float-with-the-h-option-not-appear-in-as-a-bookmark%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














You can use the following, more condensed version that taps into caption.



enter image description here



documentclass{book}

usepackage{caption,xparse}
usepackage{float}

usepackage{hyperref}
hypersetup{
colorlinks,
linkcolor=blue,
linktoc=page,
bookmarksopen
}

usepackage{bookmark}
usepackage{copyrightbox}
usepackage{tcolorbox}

makeatletter
newcommand{listoffiguresbookmarks}{%
pdfbookmark[0]{listfigurename}{listoffiguresbookmark}
bookmarksetup{level=1}
@starttoc{lofb}
}
newcommand{listoftablesbookmarks}{%
pdfbookmark[0]{listtablename}{listoftablesbookmark}
bookmarksetup{level=1}
@starttoc{lotb}
}

makeatother

%%% Generate bookmarks for all figures and tables

makeatletter

AtBeginDocument{
letoldcaptioncaption
RenewDocumentCommand{caption}{o m}{%
IfValueTF{#1}
{oldcaption[#1]{#2}}
{oldcaption{#2}}
addtocontents{csname ext@@captypeendcsname b}{%
protectbookmark[
rellevel=1,
keeplevel,
dest=@currentHref
]{csname fnum@@captypeendcsname: @currentlabelname}%
}%
}%
}
makeatletter

AtEndDocument{%
listoffiguresbookmarks
listoftablesbookmarks
}

begin{document}

tableofcontents

chapter*{Dedicatory}
to all my family

chapter*{Abstract}
hello world

chapter{ETAPA}
this intro

section{Exp}
this Exp SECTION

subsection{Descriptión}
description subSection

begin{figure}[H]
centering
caption{F1}
copyrightbox[b]{tcbox{includegraphics[scale=0.9]{example-image-a}}}{source: na.}
end{figure}

this image


chapter{chapter}
hellow

section{Introduction}
In this example several keywords will be
used which are important and deserve to appear in

begin{table}[ht]
begin{tabular}{cc}
Header & Header \
1 & 2
end{tabular}
caption[Table caption text]
{This is a table with a very long caption text and it would be nice to use the short caption in the bookmark}
end{table}

subsection{subsection}
Terms like generate and some will also show up. Terms in the index can also be nested

begin{figure}[ht]
centering
caption{Caption.}
copyrightbox[b]{tcbox{includegraphics[width=3cm]{example-image-a}}}{fuente:fuente1}
end{figure}

clearpage

section{Second section}
This second section may include some special

hello1

begin{figure}[ht]
centering
rule{6cm}{3cm}
caption{Figure caption text}
end{figure}

word, and expand the ones already used.

end{document}





share|improve this answer
























  • what is the changes? thanks, Can you explain me a little, what should I increase? What should I delete?

    – x-rw
    29 mins ago
















1














You can use the following, more condensed version that taps into caption.



enter image description here



documentclass{book}

usepackage{caption,xparse}
usepackage{float}

usepackage{hyperref}
hypersetup{
colorlinks,
linkcolor=blue,
linktoc=page,
bookmarksopen
}

usepackage{bookmark}
usepackage{copyrightbox}
usepackage{tcolorbox}

makeatletter
newcommand{listoffiguresbookmarks}{%
pdfbookmark[0]{listfigurename}{listoffiguresbookmark}
bookmarksetup{level=1}
@starttoc{lofb}
}
newcommand{listoftablesbookmarks}{%
pdfbookmark[0]{listtablename}{listoftablesbookmark}
bookmarksetup{level=1}
@starttoc{lotb}
}

makeatother

%%% Generate bookmarks for all figures and tables

makeatletter

AtBeginDocument{
letoldcaptioncaption
RenewDocumentCommand{caption}{o m}{%
IfValueTF{#1}
{oldcaption[#1]{#2}}
{oldcaption{#2}}
addtocontents{csname ext@@captypeendcsname b}{%
protectbookmark[
rellevel=1,
keeplevel,
dest=@currentHref
]{csname fnum@@captypeendcsname: @currentlabelname}%
}%
}%
}
makeatletter

AtEndDocument{%
listoffiguresbookmarks
listoftablesbookmarks
}

begin{document}

tableofcontents

chapter*{Dedicatory}
to all my family

chapter*{Abstract}
hello world

chapter{ETAPA}
this intro

section{Exp}
this Exp SECTION

subsection{Descriptión}
description subSection

begin{figure}[H]
centering
caption{F1}
copyrightbox[b]{tcbox{includegraphics[scale=0.9]{example-image-a}}}{source: na.}
end{figure}

this image


chapter{chapter}
hellow

section{Introduction}
In this example several keywords will be
used which are important and deserve to appear in

begin{table}[ht]
begin{tabular}{cc}
Header & Header \
1 & 2
end{tabular}
caption[Table caption text]
{This is a table with a very long caption text and it would be nice to use the short caption in the bookmark}
end{table}

subsection{subsection}
Terms like generate and some will also show up. Terms in the index can also be nested

begin{figure}[ht]
centering
caption{Caption.}
copyrightbox[b]{tcbox{includegraphics[width=3cm]{example-image-a}}}{fuente:fuente1}
end{figure}

clearpage

section{Second section}
This second section may include some special

hello1

begin{figure}[ht]
centering
rule{6cm}{3cm}
caption{Figure caption text}
end{figure}

word, and expand the ones already used.

end{document}





share|improve this answer
























  • what is the changes? thanks, Can you explain me a little, what should I increase? What should I delete?

    – x-rw
    29 mins ago














1












1








1







You can use the following, more condensed version that taps into caption.



enter image description here



documentclass{book}

usepackage{caption,xparse}
usepackage{float}

usepackage{hyperref}
hypersetup{
colorlinks,
linkcolor=blue,
linktoc=page,
bookmarksopen
}

usepackage{bookmark}
usepackage{copyrightbox}
usepackage{tcolorbox}

makeatletter
newcommand{listoffiguresbookmarks}{%
pdfbookmark[0]{listfigurename}{listoffiguresbookmark}
bookmarksetup{level=1}
@starttoc{lofb}
}
newcommand{listoftablesbookmarks}{%
pdfbookmark[0]{listtablename}{listoftablesbookmark}
bookmarksetup{level=1}
@starttoc{lotb}
}

makeatother

%%% Generate bookmarks for all figures and tables

makeatletter

AtBeginDocument{
letoldcaptioncaption
RenewDocumentCommand{caption}{o m}{%
IfValueTF{#1}
{oldcaption[#1]{#2}}
{oldcaption{#2}}
addtocontents{csname ext@@captypeendcsname b}{%
protectbookmark[
rellevel=1,
keeplevel,
dest=@currentHref
]{csname fnum@@captypeendcsname: @currentlabelname}%
}%
}%
}
makeatletter

AtEndDocument{%
listoffiguresbookmarks
listoftablesbookmarks
}

begin{document}

tableofcontents

chapter*{Dedicatory}
to all my family

chapter*{Abstract}
hello world

chapter{ETAPA}
this intro

section{Exp}
this Exp SECTION

subsection{Descriptión}
description subSection

begin{figure}[H]
centering
caption{F1}
copyrightbox[b]{tcbox{includegraphics[scale=0.9]{example-image-a}}}{source: na.}
end{figure}

this image


chapter{chapter}
hellow

section{Introduction}
In this example several keywords will be
used which are important and deserve to appear in

begin{table}[ht]
begin{tabular}{cc}
Header & Header \
1 & 2
end{tabular}
caption[Table caption text]
{This is a table with a very long caption text and it would be nice to use the short caption in the bookmark}
end{table}

subsection{subsection}
Terms like generate and some will also show up. Terms in the index can also be nested

begin{figure}[ht]
centering
caption{Caption.}
copyrightbox[b]{tcbox{includegraphics[width=3cm]{example-image-a}}}{fuente:fuente1}
end{figure}

clearpage

section{Second section}
This second section may include some special

hello1

begin{figure}[ht]
centering
rule{6cm}{3cm}
caption{Figure caption text}
end{figure}

word, and expand the ones already used.

end{document}





share|improve this answer













You can use the following, more condensed version that taps into caption.



enter image description here



documentclass{book}

usepackage{caption,xparse}
usepackage{float}

usepackage{hyperref}
hypersetup{
colorlinks,
linkcolor=blue,
linktoc=page,
bookmarksopen
}

usepackage{bookmark}
usepackage{copyrightbox}
usepackage{tcolorbox}

makeatletter
newcommand{listoffiguresbookmarks}{%
pdfbookmark[0]{listfigurename}{listoffiguresbookmark}
bookmarksetup{level=1}
@starttoc{lofb}
}
newcommand{listoftablesbookmarks}{%
pdfbookmark[0]{listtablename}{listoftablesbookmark}
bookmarksetup{level=1}
@starttoc{lotb}
}

makeatother

%%% Generate bookmarks for all figures and tables

makeatletter

AtBeginDocument{
letoldcaptioncaption
RenewDocumentCommand{caption}{o m}{%
IfValueTF{#1}
{oldcaption[#1]{#2}}
{oldcaption{#2}}
addtocontents{csname ext@@captypeendcsname b}{%
protectbookmark[
rellevel=1,
keeplevel,
dest=@currentHref
]{csname fnum@@captypeendcsname: @currentlabelname}%
}%
}%
}
makeatletter

AtEndDocument{%
listoffiguresbookmarks
listoftablesbookmarks
}

begin{document}

tableofcontents

chapter*{Dedicatory}
to all my family

chapter*{Abstract}
hello world

chapter{ETAPA}
this intro

section{Exp}
this Exp SECTION

subsection{Descriptión}
description subSection

begin{figure}[H]
centering
caption{F1}
copyrightbox[b]{tcbox{includegraphics[scale=0.9]{example-image-a}}}{source: na.}
end{figure}

this image


chapter{chapter}
hellow

section{Introduction}
In this example several keywords will be
used which are important and deserve to appear in

begin{table}[ht]
begin{tabular}{cc}
Header & Header \
1 & 2
end{tabular}
caption[Table caption text]
{This is a table with a very long caption text and it would be nice to use the short caption in the bookmark}
end{table}

subsection{subsection}
Terms like generate and some will also show up. Terms in the index can also be nested

begin{figure}[ht]
centering
caption{Caption.}
copyrightbox[b]{tcbox{includegraphics[width=3cm]{example-image-a}}}{fuente:fuente1}
end{figure}

clearpage

section{Second section}
This second section may include some special

hello1

begin{figure}[ht]
centering
rule{6cm}{3cm}
caption{Figure caption text}
end{figure}

word, and expand the ones already used.

end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered 33 mins ago









WernerWerner

445k699811686




445k699811686













  • what is the changes? thanks, Can you explain me a little, what should I increase? What should I delete?

    – x-rw
    29 mins ago



















  • what is the changes? thanks, Can you explain me a little, what should I increase? What should I delete?

    – x-rw
    29 mins ago

















what is the changes? thanks, Can you explain me a little, what should I increase? What should I delete?

– x-rw
29 mins ago





what is the changes? thanks, Can you explain me a little, what should I increase? What should I delete?

– x-rw
29 mins ago


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476682%2fwhy-does-a-float-with-the-h-option-not-appear-in-as-a-bookmark%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...