General\footnotetext{Text...} in \paragraf gives badness!!!

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
neGODnick
Posts: 35
Joined: Mon Jun 16, 2008 9:31 pm

\footnotetext{Text...} in \paragraf gives badness!!!

Post by neGODnick »

Hi!

I try to use

Code: Select all

\section[Тра-ля-ля <<Тру-ля-ля>>]{Тра-ля-ля <<Тру-ля-ля>>\protect\textnormal{\footnotemark}}\nopagebreak\footnotetext{Тра-та-та, тра-та-та.}\nopagebreak
and

Code: Select all

\paragraph[Тра-ля-ля <<Тру-ля-ля>>]{Тра-ля-ля <<Тру-ля-ля>>\protect\textnormal{\footnotemark}}\nopagebreak\footnotetext{Тра-та-та, тра-та-та.}\nopagebreak
for
1) Remove footnotetext from PDF-bookmark;
2) Set the font of footnotemark in title like in text.

But also I get bad things! In section:
  • 1) "Тра-ля-ля <<Тру-ля-ля>>" in PDF-bookmark instead of "Тра-ля-ля «Тру-ля-ля»".
In paragraph it is very worse:
  • 1) "Тра-ля-ля <<Тру-ля-ля>>" in PDF-bookmark instead of "Тра-ля-ля «Тру-ля-ля»";
    2) Zero number in footnotetext:
    _________________________________
    0
    • Тра-та-та, тра-та-та.
    3) Cliking of footnotemark (\usepackage[...hyperfootnotes=true...]{hyperref}) opens the titlepage instead of footnotetext!
How to resolve these problems?

(Zero number can be redefined by \footnotetext[set number]{Text...}, but I don't wish to make it by hand)
Do not move your cursor near double underlined links — they are POPUP-ADs!!!
Избегайте попадания курсора на «ссылки» с двойным подчёркиванием — это ВСПЛЫВАЮЩАЯ РЕКЛАМА!!!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

\footnotetext{Text...} in \paragraf gives badness!!!

Post by gmedina »

To easily handle footnotes inside sectioning commnads, try the stable option for the footmisc package. Take a look at the following example:

Code: Select all

\documentclass{report}
\usepackage[stable]{footmisc}
\usepackage[hyperfootnotes=true]{hyperref}

\begin{document}
\tableofcontents
\clearpage

\chapter{Dummy chapter}
\section[Short tile in ToC]{Full title in document\footnote{First test footnote.}}

\paragraph[Short tile in ToC]{Full title in document\footnote{Second test footnote.}}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
neGODnick
Posts: 35
Joined: Mon Jun 16, 2008 9:31 pm

\footnotetext{Text...} in \paragraf gives badness!!!

Post by neGODnick »

Hi, gmedina!

I really can't understand footnotes! I see that there is very bad friendship between hyperref and footnote's packages, and I don't know how to choose any compatible set.

— Yesterday I've got zero number, but today I can't get this result again — what was happened?

— Yesterday there were problems with long footnotes (see my post here), but today they somehow dissapear... I have tried bigfoot or manyfoot package, but now I use no one:
  • \usepackage{manyfoot} — breaks hyperlinks at paragraph footnotemark (they go on title page);
    \usepackage{bigfoot} — breaks hyperlinks at all footnotemarks (they go on title page);
    \usepackage{bigfoot} with \usepackage{tabularx} — just removes all footnotemark hyperlinks;
— For the perpage numeration, which also I need, there are troubles, too:
  • \usepackage{perpage} gives no effect;
    \usepackage{footnpag} resets the numeration, but removes hyperlinks at chapter/paragraph footnotemarks;
    \usepackage[perpage]{manyfoot} don't reset numeration;
======================================
About your code. I need exactly "\footnotemark...\footnotetext", nor simple "\footnote" — I want also to format the font of footnotemark. May be, it can be redefined in preambula? Nevertheless, footmisc package works (I mean hyperlink behavior) with both variants in minimal test examle, but not in my document!.. In my document only your simple variant gives right hyperlink, "\footnotemark...\footnotetext don't. I can't found what is the reason of that, so, I attach my file (in LyX format and in LaTeX imported from LyX, without images).* If nothing else, it is good, that "[perpage]" option works correctly with "{footmisc}" ("\usepackage[stable,perpage]{footmisc}").

Last question is about quotes << >>/«». They provided by "\usepackage[russian]{babel}" and "\usepackage[T2A]{fontenc}", as I know, and can be defined with another code in some classes. So, I don't know now how to resolve this, too...

______________________________________________
* See section "3.3. Модели «объект–действие» и «действие–объект»" and paragraph "Двойная «дискликсия»" (pp. 70 and 87 in PDF).
Attachments
file-tex.rar
(144.36 KiB) Downloaded 172 times
file-lyx.rar
(156.79 KiB) Downloaded 162 times
Do not move your cursor near double underlined links — they are POPUP-ADs!!!
Избегайте попадания курсора на «ссылки» с двойным подчёркиванием — это ВСПЛЫВАЮЩАЯ РЕКЛАМА!!!
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

\footnotetext{Text...} in \paragraf gives badness!!!

Post by gmedina »

Hi,
neGODnick wrote:...About your code. I need exactly "\footnotemark...\footnotetext", nor simple "\footnote" — I want also to format the font of footnotemark. May be, it can be redefined in preambula?...
The footmisc package allows you to define and use alternative sets of symbols for numbering footnotes. Refer to the package documentation; particularly Section 1.7 The \setfnsymbol and \DefineFNsymbols commands, pages 3 and 4.
neGODnick wrote:...Last question is about quotes << >>...
Use \guillemotleft (for "<<") and \guillemotright (for ">>").
1,1,2,3,5,8,13,21,34,55,89,144,233,...
neGODnick
Posts: 35
Joined: Mon Jun 16, 2008 9:31 pm

\footnotetext{Text...} in \paragraf gives badness!!!

Post by neGODnick »

Hi!

About footnotemark. I have read the footmisc package documentation, but it not help me. They describe how to use * etc. I'm very sorry, but I'm beginner. What I need? By default, footnotemarks in titles are bold and big (as titles are bold and big, too). I need to make they as in the text — small, not bold. Could you help me to define all footnotemarks to be identical in text and in titles? Although, in tables, figure captions (they use smaller font than the main text) etc. they must be some smaller...

About quotes. Yes, I can use \guillemotleft (for "<<") and \guillemotright (for ">>") in my document (maybe, because I use tocloft package), but it seems not everywhere. Thus, in minimal code this makes wrong quotes (see TOC screenshots in attachments). This makes no matter in bookmarks, but is very important in the text and in the TOC.

So, I'm interesting — can I somehow use in TeX/LaTeX Alt Key Codes for any symbols? For example, "Alt+174" & "Alt+175" for "«" & "»"?
======================================
P.S. As I see, you can't explain why footmisc gives different results in my code and in minimal one (described above)?
Attachments
quotes2.png
quotes2.png (8.36 KiB) Viewed 7973 times
quotes1.png
quotes1.png (10.23 KiB) Viewed 7981 times
Do not move your cursor near double underlined links — they are POPUP-ADs!!!
Избегайте попадания курсора на «ссылки» с двойным подчёркиванием — это ВСПЛЫВАЮЩАЯ РЕКЛАМА!!!
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

\footnotetext{Text...} in \paragraf gives badness!!!

Post by gmedina »

Hi,
neGODnick wrote:...About footnotemark. I have read the footmisc package documentation, but it not help me. They describe how to use * etc. I'm very sorry, but I'm beginner. What I need? By default, footnotemarks in titles are bold and big (as titles are bold and big, too). I need to make they as in the text — small, not bold. Could you help me to define all footnotemarks to be identical in text and in titles?...
In the preamble of your document use something like the following:

Code: Select all

\makeatletter
\renewcommand\@makefnmark{%
  \mbox{\textsuperscript{\normalfont\scriptsize\@thefnmark}}}
\makeatother
(You can change \scriptsize to any of the other font size controlling switches).
neGODnick wrote:...P.S. As I see, you can't explain why footmisc gives different results in my code and in minimal one (described above)?
Sorry; I haven't had time to look the code you attached.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
neGODnick
Posts: 35
Joined: Mon Jun 16, 2008 9:31 pm

\footnotetext{Text...} in \paragraf gives badness!!!

Post by neGODnick »

Hi, gmedina!

Thank you for you code, but I have had to remove \makeatletter and \makeatother which produced error messages:

Code: Select all

LaTeX Error: Missing \begin{document}.
You can't use `macro parameter character #' in horizontal mode.
LaTeX Error: Missing \begin{document}.
You can't use `macro parameter character #' in internal vertical mode.
So, the right is:

Code: Select all

\renewcommand\@makefnmark{\mbox{\textsuperscript{\normalfont\scriptsize\@thefnmark}}}
In sum I use:

Code: Select all

...
\usepackage[stable,perpage,multiple,bottom]{footmisc}
\renewcommand\@makefnmark{\mbox{\textsuperscript{\normalfont\scriptsize\@thefnmark}}} 
...
... hyperref, etc. ...
...
\section[Тра-ля-ля \guillemotleft{}Тру-ля-ля\guillemotright]{Тра-ля-ля <<Тру-ля-ля>>\footnote{Тра-та-та, тра-та-та.}}
...
...
\paragraph[Тра-ля-ля \guillemotleft{}Тру-ля-ля\guillemotright]{Тра-ля-ля <<Тру-ля-ля>>\footnote{Тра-та-та, тра-та-та.}}
...
and it works as I need. It would be well to understand what was wrong early, nevertheless I'm glad to have all working now correctly.
Do not move your cursor near double underlined links — they are POPUP-ADs!!!
Избегайте попадания курсора на «ссылки» с двойным подчёркиванием — это ВСПЛЫВАЮЩАЯ РЕКЛАМА!!!
Post Reply