typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

Generate footnote definition near original location

Open Kike-59 opened this issue 3 years ago • 7 comments

Hello everyone. I would like to know if anyone has experience with footnotes in Typora (version 1.0.3). When I insert a footnote I get a line starting with "[^ ]" but it does not generate a numerical sequence nor does it insert the characters in the text from where the reference is made. Information would be appreciated.

Regards, Enrique

Kike-59 avatar Jan 06 '22 14:01 Kike-59

Yes, it's same.

But Markdown has not specified that it's to be numerical sequence?

Anyhow, I'd like to make a few suggestions.

  1. An option to add all footnotes to the end of document. Right now, if you insert a footnote in the middle of the document, the footnote will stay there.
  2. An option to automatically add numerical sequence, as you said.
  3. A default shortcut key (yes I know you can customize it via json), or a simpler interface to customize shortcut keys.

Cheers.

loyukfai avatar Jan 07 '22 01:01 loyukfai

https://github.com/dendronhq/dendron/issues/994

loyukfai avatar Jan 07 '22 01:01 loyukfai

Markdown does not require footnotes to be numbered.

duplicated with #2478

abnerlee avatar Jan 12 '22 14:01 abnerlee

Hi, this is not a duplicate of #2478.

The problema @Kike-59 mentioned is:

  1. but it does not generate a numerical sequence (= this is discussed elsewhere, and it would be a great feature)
  2. . nor does it insert the characters in the text from where the reference is made.
image

So at the moment it seems I have to:

  1. Manually create the footnote tag/nr
  2. Go back to the original text and type "[^mynote]"

MIssing feature / bug: Typora should generate the footnote reference in the orginal location automatically.

v1.3.7 on macOS.


After I manually inserted [^1], the "back to document" button appears: image

vertesy avatar Jul 27 '22 09:07 vertesy

As far as I can tell this is related to issue #2478 because the issue is that when we are writing a document that requires footnotes we have to manually insert a number or another tag in the text and on the footnote itself and these need to be the same.

The problem with this is that it is (a) initially a small inconvenience and (b) a massive pain if we have lots of footnotes and then want to add or subtract a footnote somewhere in the body of the text because then we have to manually relabel all following ones (both superscript link and footnote). It makes writing and editing a long document with many footnotes really painful. Fixing this should be a high priority if the application is to be used for writing long texts with footnotes.

Maybe the next available number or other tag could be suggested when a footnote or link to a footnote is created and this could be accepted or replaced with something else by the author. But it would also be essential to have a system where the connection between a footnote link and the footnote itself isn't broken by the addition of a new footnote. So maybe the tag nominated or accepted by the author for the sake of linking the footnote (eg a letter) might not be the number that is finally displayed next to the footnote or the superscript link?

Example: I make a footnote tagged as A, followed by a footnote tagged as B. Later on I realize I need a footnote between them which I create and call 'C' (or accept this suggestion). In the WYSISYG version they are labelled as 1,2 and 3 in the order they appear in the text. So it doesn't matter how many edits or changes I make, the links to the right footnote are preserved and I don't have to go through and manually change them all. It also means that in several places in the text I can add a link to the footnote C, for example, without upsetting the order or labeling in the WYSIWYG.

I'm not sure if this is the best way to solve it but something is needed.

sirrahn avatar Jan 22 '24 05:01 sirrahn

Workaround (Solved!!!)

Hey everyone!

I got a bit clunky but easy, functional and once set up fast workaround for this problem: You can just use Obsidian (its free) and open your folder with the .md file as a new vault. Then you have to install and enable the plugin tidy footnotes via settings, community plugins, browse . Then you open your typora file and press ctrl + p to open the command line and run the command tidy footnotes (just type in "tidy" in the search bar and press enter). This will reorder your footnotes properly, save it to your .md file automatically in a few seconds and you can go on writing in Typora. If you have any questions on how to exactly do this feel free to ask. I nonetheless agree that a feature from Typora to do this would be great.

Rhinoto avatar Mar 24 '24 14:03 Rhinoto

Thanks Rhinoto it works for me. It is a bit clunky and lacks options - I'd prefer to have the footnotes stay where I've put them in the .md file (I have them right below the paragraph so that I can re-edit easily) but it does fix up the numbering which is nice. It would, or course, be nicer if typora could just do this for us :)

sirrahn avatar Apr 29 '24 06:04 sirrahn