home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13408 < prev    next >
Encoding:
Text File  |  1992-11-21  |  3.2 KB  |  91 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!news.service.uci.edu!unogate!mvb.saic.com!info-tex
  2. From: Roegel Denis <Denis.Roegel@loria.fr>
  3. Newsgroups: comp.text.tex
  4. Subject: HELP ! many marginal notes
  5. Message-ID: <9211212019.AA00347@berge.loria.fr>
  6. Date: Sat, 21 Nov 92 21:19:12 +0100
  7. Organization: Info-Tex<==>Comp.Text.Tex Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 80
  10.  
  11.  
  12. You may have seen this message already. However, I got no feedback from
  13. comp.text.tex, so I am posting it directly on Info-TeX. Here it goes.
  14.  
  15. This is for LaTeX gurus:
  16.  
  17.  
  18. I already posted two messages related to my problem, but got no answer so far.
  19. So, let me state it more clearly:
  20.  
  21. I have a text in which I want to put many notes. However, many of these notes
  22. have little importance for the most of the readers. So I don't want to make
  23. the text unreadable, in having many little signs in it. That is why I want to
  24. put the notes on a page per se, but put the calls in the margin of the point
  25. where they appear. This call is only a number. Furthermore, I am using the
  26. twocolumn style in LaTeX.
  27.  
  28. So, to summarize, I wish to have such a kind of text:
  29.  
  30.  
  31.  57     bla bla bla bla    bla bla bla bla
  32.         bla bla bla bla    bla bla bla bla   65
  33.         bla bla bla bla    bla bla bla bla
  34.  58     bla bla bla bla    bla bla bla bla   66
  35.  59     bla bla bla bla    bla bla bla bla
  36.         bla bla bla bla    bla bla bla bla
  37.  60     bla bla bla bla    bla bla bla bla
  38.  ..     bla bla bla bla    bla bla bla bla
  39.         bla bla bla bla    bla bla bla bla    67
  40.  ..     bla bla bla bla    bla bla bla bla    ..
  41.         ...............    ................
  42.  
  43. To do this I wrote this little macro:
  44.  
  45. \newwrite\typ
  46. \immediate\openout\typ=typonotes
  47.  
  48. \newcount\@cmarg   % counter for marginal notes
  49. \@cmarg0
  50.  
  51. \def\typo#1{\advance\@cmarg1\if@firstcolumn\marginpar[\small\the\@cmarg]{}%
  52.               \else\marginpar[]{\small\the\@cmarg}\fi\immediate\write\typ{#1}}
  53.  
  54. When I run LaTeX on my file, I get errors stating "too many unprocessed floats".
  55. I went through latex.tex and noticed there is a rather limited (so to say)
  56. number of float registers. I then increased this number in that I added about
  57. 15 lines like
  58.  
  59. \newinsert\bx@a
  60. \newinsert\bx@b ...
  61.  
  62. at the beginning of my file. I also added the new registers in \@freelist.
  63.  
  64. This didn't avoid the problem but seems to decrease it. I do now have only
  65. two such errors when I process my file (which is about 20 pages long, and
  66. has an average of 20 notes call per page, that is 10 per column; there
  67. are no figures).
  68. I then thought the problem maybe comes from too close floats, and put the
  69. parameters \@fpsep and \floatsep to zero.
  70.  
  71. \@fpsep=0pt plus 2.0fil
  72. \floatsep=0pt plus 2.0fil
  73.  
  74. This did not solve the problem.
  75.  
  76. I suspect, the reason is maybe the fact that two calls happen sometimes on the
  77. same line. In order to handle this case, I would like to put something like
  78. 23-24 in the margin when calls for note 23 and note 24 happen in the same line.
  79.  
  80.  
  81. Another problem that occurs is that I get problems when the \typo macro is
  82. called in the first line of a column. I have even sometimes a blank line as
  83. first line.
  84.  
  85. I would really appreciate if some LaTeX-guru could help me.
  86.  
  87. Thanks in advance
  88.  
  89. Denis  (roegel@loria.fr)
  90.  
  91.