* footnotes problems in split files on export to latex
@ 2017-01-31 10:49 Sharon Kimble
2017-01-31 12:34 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Sharon Kimble @ 2017-01-31 10:49 UTC (permalink / raw)
To: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 976 bytes --]
I have a very large file that I'm working on into 4 sections and have
included the sections like this, in the middle of the main file -
--8<---------------cut here---------------start------------->8---
#+include: "~/research/drugs/drugs17-a2i.org"
#+include: "~/research/drugs/drugs17-k2n.org"
#+include: "~/research/drugs/drugs17-o2z.org"
--8<---------------cut here---------------end--------------->8---
And moved the footnotes for each new section over to the relevant #+include: file.
Now when I try to export to latex it replies with this error message -
--8<---------------cut here---------------start------------->8---
(user-error "Definition not found for footnote -4-83") in user-error
--8<---------------cut here---------------end--------------->8---
How can I surmount this problem please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: footnotes problems in split files on export to latex
2017-01-31 10:49 footnotes problems in split files on export to latex Sharon Kimble
@ 2017-01-31 12:34 ` Nicolas Goaziou
2017-01-31 16:12 ` Sharon Kimble
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2017-01-31 12:34 UTC (permalink / raw)
To: Sharon Kimble; +Cc: org-mode-email
Hello,
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> I have a very large file that I'm working on into 4 sections and have
> included the sections like this, in the middle of the main file -
>
> #+include: "~/research/drugs/drugs17-a2i.org"
> #+include: "~/research/drugs/drugs17-k2n.org"
> #+include: "~/research/drugs/drugs17-o2z.org"
>
>
> And moved the footnotes for each new section over to the
> relevant #+include: file.
You may have done a mistake during this step. You could use M-x org-lint
to check each included document separately.
Org is expected to be able to handle included footnotes.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: footnotes problems in split files on export to latex
2017-01-31 12:34 ` Nicolas Goaziou
@ 2017-01-31 16:12 ` Sharon Kimble
2017-01-31 22:52 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Sharon Kimble @ 2017-01-31 16:12 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 2122 bytes --]
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> I have a very large file that I'm working on into 4 sections and have
>> included the sections like this, in the middle of the main file -
>>
>> #+include: "~/research/drugs/drugs17-a2i.org"
>> #+include: "~/research/drugs/drugs17-k2n.org"
>> #+include: "~/research/drugs/drugs17-o2z.org"
>>
>>
>> And moved the footnotes for each new section over to the
>> relevant #+include: file.
>
> You may have done a mistake during this step. You could use M-x org-lint
> to check each included document separately.
>
> Org is expected to be able to handle included footnotes.
>
Thanks for this Nicolas.
When I do 'org-lint' on "~/research/drugs/drugs17-a2i.org" I get this as a reply
--8<---------------cut here---------------start------------->8---
535 high Unknown fuzzy location "What is a bad trip?"
4101 high Unknown fuzzy location "Opium"
4312 high Unknown fuzzy location "Poppers"
4312 high Unknown fuzzy location "Nitrous oxide"
4358 high Unknown fuzzy location "Poppers"
--8<---------------cut here---------------end--------------->8---
Which are section headers in different parts of the various files.
Also, if I try to insert a footnote inside the parent file it try's to
renumber the footnotes, which then causes problems with the other child
files. I do have '#+STARTUP: fnadjust' in the preamble of the parent
file. So how can I lock the footnotes to allow me to enter a new
footnote without scrambling the order and sequences of the footnotes in
both parent and child files please?
The file is only 1.4mbs, but it has does have 23,985 lines and it is
glacially-slow in navigating the file, and it does take up large
percentages of CPU usage. Is there any way in which I could somehow make
emacs change its capabilities to allow files with large number of line
numbers please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: footnotes problems in split files on export to latex
2017-01-31 16:12 ` Sharon Kimble
@ 2017-01-31 22:52 ` Nicolas Goaziou
2017-02-01 11:45 ` footnotes problems in split files on export to latex - 'profiler-report' Sharon Kimble
2017-02-01 12:01 ` footnotes problems in split files on export to latex Sharon Kimble
0 siblings, 2 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2017-01-31 22:52 UTC (permalink / raw)
To: Sharon Kimble; +Cc: org-mode-email
Hello,
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> Also, if I try to insert a footnote inside the parent file it try's to
> renumber the footnotes, which then causes problems with the other child
> files.
I cannot see why it would cause problems with other included files.
Footnote numbers are hermetic across included files. IOW you can
have [fn:1] in the master document and in every included file.
Could you show an ECM?
> The file is only 1.4mbs, but it has does have 23,985 lines and it is
> glacially-slow in navigating the file, and it does take up large
> percentages of CPU usage. Is there any way in which I could somehow make
> emacs change its capabilities to allow files with large number of line
> numbers please?
This is another, unrelated, issue. Please send a profiler report (using
M-x profiler-start ...).
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: footnotes problems in split files on export to latex - 'profiler-report'
2017-01-31 22:52 ` Nicolas Goaziou
@ 2017-02-01 11:45 ` Sharon Kimble
2017-02-01 12:01 ` footnotes problems in split files on export to latex Sharon Kimble
1 sibling, 0 replies; 6+ messages in thread
From: Sharon Kimble @ 2017-02-01 11:45 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 6430 bytes --]
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> Also, if I try to insert a footnote inside the parent file it try's to
>> renumber the footnotes, which then causes problems with the other child
>> files.
>
> I cannot see why it would cause problems with other included files.
> Footnote numbers are hermetic across included files. IOW you can
> have [fn:1] in the master document and in every included file.
>
> Could you show an ECM?
>
>> The file is only 1.4mbs, but it has does have 23,985 lines and it is
>> glacially-slow in navigating the file, and it does take up large
>> percentages of CPU usage. Is there any way in which I could somehow make
>> emacs change its capabilities to allow files with large number of line
>> numbers please?
>
> This is another, unrelated, issue. Please send a profiler report (using
> M-x profiler-start ...).
>
I've never used 'profiler-report' but had only read about it yesterday,
so I started using it today, and its an incredibly useful thing -
programme? This what it found with my mega-sized file -
--8<---------------cut here---------------start------------->8---
- timer-event-handler 10025 92%
- apply 10021 92%
- wicked/update-wc 9607 88%
- setq 9607 88%
- number-to-string 9607 88%
- count-words-buffer 9607 88%
- save-excursion 9607 88%
- let 9607 88%
- while 9579 88%
setq 20 0%
not 16 0%
- tabbar-ruler-mouse-movement 363 3%
- run-with-idle-timer 18 0%
- timer-activate-when-idle 5 0%
- timer--activate 4 0%
timer--time-less-p 4 0%
- bibtex-parse-buffers-stealthily 9 0%
--8<---------------cut here---------------end--------------->8---
That's just the major sections using the most CPU cycles.
From that display I was able to track down that it was constantly and
continuously counting all the words in the file! Well I've never used a
word-count for anything so I commented it out in my config and restarted
emacs. And now in the same file I can move about with considerable ease
using 'Imenu'.
Now, on the same file, its showing -
--8<---------------cut here---------------start------------->8---
- timer-event-handler 15450 27%
- apply 15378 27%
- jit-lock-deferred-fontify 5513 9%
+ redisplay 5250 9%
#<compiled 0x4f45bf5> 14 0%
- org-indent-initialize-agent 4307 7%
- org-indent-initialize-buffer 4307 7%
- org-indent-add-properties 4301 7%
- org-at-item-p 4065 7%
- org-list-in-valid-context-p 4042 7%
+ org-in-block-p 3852 6%
- org-indent-set-line-properties 77 0%
org-add-props 8 0%
org-list-item-body-column 23 0%
- org-current-level 3 0%
org-outline-level 1 0%
- tabbar-ruler-mouse-movement 1941 3%
- run-with-idle-timer 111 0%
- timer-activate-when-idle 80 0%
- timer--activate 44 0%
timer--time-less-p 44 0%
timer-set-function 4 0%
timer-set-idle-time 4 0%
seconds-to-time 12 0%
+ cancel-timer 8 0%
+ jit-lock-stealth-fontify 1618 2%
+ ac-update-greedy 929 1%
+ highlight-symbol-temp-highlight 321 0%
+ org-ref-link-message 114 0%
+ keyfreq-autosave--do 94 0%
+ my-frame-title-refresh 56 0%
+ #<compiled 0x2881ff> 45 0%
+ show-paren-function 8 0%
+ guide-key/polling-function 7 0%
jit-lock-force-redisplay 6 0%
+ isearch-lazy-highlight-update 3 0%
+ timer-activate-when-idle 15 0%
timer-activate 4 0%
timer-until 1 0%
cancel-timer-internal 1 0%
- command-execute 14315 25%
--8<---------------cut here---------------end--------------->8---
Which is considerable better.
Thanks Nicolas.
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: footnotes problems in split files on export to latex
2017-01-31 22:52 ` Nicolas Goaziou
2017-02-01 11:45 ` footnotes problems in split files on export to latex - 'profiler-report' Sharon Kimble
@ 2017-02-01 12:01 ` Sharon Kimble
1 sibling, 0 replies; 6+ messages in thread
From: Sharon Kimble @ 2017-02-01 12:01 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> Also, if I try to insert a footnote inside the parent file it try's to
>> renumber the footnotes, which then causes problems with the other child
>> files.
>
> I cannot see why it would cause problems with other included files.
> Footnote numbers are hermetic across included files. IOW you can
> have [fn:1] in the master document and in every included file.
>
> Could you show an ECM?
Unfortunately not. I can't even get my previous file to compile properly
as I've renumbered the footnotes in an attempt to get it working
properly, and I've also closed and restarted emacs, which destroyed any
ability to undo my actions.
However I'm now able to use the whole file, after restoring from backup,
without removing any sections into another file, so I can still work on
it.
But if it does happen again then I'll be able to give a better report.
Thanks
Sharon.
>
>> The file is only 1.4mbs, but it has does have 23,985 lines and it is
>> glacially-slow in navigating the file, and it does take up large
>> percentages of CPU usage. Is there any way in which I could somehow make
>> emacs change its capabilities to allow files with large number of line
>> numbers please?
>
> This is another, unrelated, issue. Please send a profiler report (using
> M-x profiler-start ...).
>
> Regards,
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-02-01 12:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-31 10:49 footnotes problems in split files on export to latex Sharon Kimble
2017-01-31 12:34 ` Nicolas Goaziou
2017-01-31 16:12 ` Sharon Kimble
2017-01-31 22:52 ` Nicolas Goaziou
2017-02-01 11:45 ` footnotes problems in split files on export to latex - 'profiler-report' Sharon Kimble
2017-02-01 12:01 ` footnotes problems in split files on export to latex Sharon Kimble
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.