GithubHelp home page GithubHelp logo

Problem in footnote about bidi HOT 12 OPEN

kvafa avatar kvafa commented on July 3, 2024
Problem in footnote

from bidi.

Comments (12)

kvafa avatar kvafa commented on July 3, 2024 2

You are right. Is it possible the bidi package to use some codes like perpage package for solving this issue?

I have not investigated the issue thoroughly; I just made some observation without actually looking at what is going on exactly.

One way to go forward is to see what perpage does that 'bidi-perpagedoes not and extendbidi-perpage' to get the correct behavior.

Another possible solution is to avoid resetting footnotes by using a different algorithm.

I just need to find some free time to investigate this and fix it.

from bidi.

kvafa avatar kvafa commented on July 3, 2024 1

My investigation so far shows that the issue also happens without using xepersian/bidi packages. Look particularly at pages 4, 6, 8, and 10.

\documentclass[12pt]{article}            % or some other class
\usepackage{zref-perpage} 
\zmakeperpage{footnote}
\newcount\footCounter
\newcommand{\mfootnote}[1]{%
	\loop
	\ifnum\footCounter<#1
		\footnote{Test}%
		\advance\footCounter by 1
	\repeat\footCounter0%
}
\usepackage{fontspec}
\setmainfont{IRXLotus}
\usepackage{ptext}
\begin{document}

	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]\mfootnote{5}
	\ptext[1-2]

\end{document}

from bidi.

kvafa avatar kvafa commented on July 3, 2024 1

I asked this question about different methods of resetting footnote numbers for more details. Only one of the methods worked correctly (with footmisc package). Comment: The ones I mark not ok can not work as the footnotes have been allocated numbers before page breaking. That is why footmisc offers code to implement this.

I do not think that it is footmisc that implements it as it loads perpage package. That is, if you load perpage directly instead footmisc, you should also get the correct output.

from bidi.

kvafa avatar kvafa commented on July 3, 2024

Could you please also post Vahid Damanafshan's example from Telegram? I do not have access to Telegram as I left my phone in home back in Australia.

from bidi.

bahman-mirzakhani avatar bahman-mirzakhani commented on July 3, 2024

When I asked Mr. DamanAfshan, he said that I had the same problem.

from bidi.

kvafa avatar kvafa commented on July 3, 2024

I think the two issues are slightly different although somehow related; from memory, I think his example had the old footnote cs \paragraphfootnotes or something similar while your example uses the new footnote cs \ParagraphFootnotes.

Anyway, it helps me a lot if I also can have access to Vahid's specific example.

from bidi.

bahman-mirzakhani avatar bahman-mirzakhani commented on July 3, 2024

I asked this question about different methods of resetting footnote numbers for more details. Only one of the methods worked correctly (with footmisc package). Comment: The ones I mark not ok can not work as the footnotes have been allocated numbers before page breaking. That is why footmisc offers code to implement this.

from bidi.

bahman-mirzakhani avatar bahman-mirzakhani commented on July 3, 2024

You are right. Is it possible the bidi package to use some codes like perpage package for solving this issue?

from bidi.

bahman-mirzakhani avatar bahman-mirzakhani commented on July 3, 2024

You are right. Is it possible the bidi package to use some codes like perpage package for solving this issue?

Note: unfortunately the perpage package also transfers the last line of the previous page to the next page and its place remains empty. Even the \flushbottom command doesn't fill it.

from bidi.

saeidm23 avatar saeidm23 commented on July 3, 2024

Is there any solution for the bug?

from bidi.

bahman-mirzakhani avatar bahman-mirzakhani commented on July 3, 2024

Is there any solution for the bug?

According to comments, you can use perpage package as follows:

\usepackage{perpage} 
\MakePerPage{footnote}

from bidi.

saeidm23 avatar saeidm23 commented on July 3, 2024

Many thanks. But that does not resolve the issue.

from bidi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.