LaTeX forum ⇒ GeneralComplex? layout help? Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
wednesday
Posts: 11
Joined: Mon Feb 15, 2016 12:25 pm

Complex? layout help?

Postby wednesday » Tue Feb 16, 2016 2:52 pm

Hello Folks,

I'm brand new to LaTeX, looking for some guidance.

I have read a couple of the introductory books/documents, done a bunch of simple tutorials, and got basic examples/documents working fine. Then I've spend a couple of days trying to achieve my real typesetting goal, without success :(

Here's an image of roughly what I'm trying to achieve:

Image

The yellow highlights aren't important, but what you (hopefully) see here is that my document contains three main "classes" of text:

1. The text which is the subject of inquiry (shown in blue),

2. A long list of commentary/notes about 1 (shown in black), with groups of notes appearing directly under the relevant sections of blue text, and

3. A collection of quotes and citations occurring within 2 (shown in brown). Almost all of these quotes/citations are from other sources--but a few refer to other notes in the current document as a "see note 334" reference.


I have played around with fbox, minipage, footnotes, endnotes, verbatim, cross-refs, but I can't seem to find a basic document structure that will support output like this. Most of the packages/commands I have seen want to render all the notes at the bottom of a page. Minipage looked promising (and perhaps the answer is there somehow?), but it doesn't seem to want me to use numbered notes across the broader scope of the document. I also read that minipage doesn't allow floats, which might be a problem further downstream.

So... is there a neat/obvious way to structure a document like this:

subject-text including notes
notes including citations
---
subject-text including notes
notes including citations
---
subject-text including notes
notes including citations
---
Etc.

With annotation numbers running throughout the whole document?

I'm sure the problem is between the seat and the keyboard, but any pointers would be much appreciated!

Thanks :)

wednesday
Posts: 11
Joined: Mon Feb 15, 2016 12:25 pm

Postby wednesday » Thu Feb 18, 2016 10:32 am

No takers?

Perhaps I am way off the mark, and there's simply a "better way" to do a critique-type documents? I would be happy to learn about it!

Meanwhile, this is the closest I've managed so far:

  1. \documentclass[english]{article}
  2.  
  3. %\usepackage[T1]{fontenc}
  4.  
  5. \usepackage{babel}
  6.  
  7. \begin{document}
  8.  
  9.  
  10. \section{Donec mattis}
  11.  
  12.  
  13. \begin{minipage}{\textwidth}
  14. \begin{quote}
  15. Fusce dapibus, velit rutrum facilisis ullamcorper. Fusce sollicitudin
  16.  
  17. diam massa, quis egestas metus vulputate\,\footnote{Nam est ligula, laoreet nec ipsum vitae, facilisis volutpat ipsum.
  18.  
  19. lectus justo dignissim augue, eu tincidunt tellus erat non massa.} Duis arcu orci sodales vitae\,\footnote{arcu dapibus aliquet\,consequat eget, euismod eu mi}.
  20.  
  21. Donec mattis iaculis\, \footnote{Cum sociis natoque penatibus et magnis dis parturient montes, nascetur
  22.  
  23. ridiculus mus. Vivamus aliquet cursus blandit. Cras rutrum, elit at
  24.  
  25. porttitor hendrerit, lorem lectus posuere mauris, at lacinia dolor
  26.  
  27. urna non sapien. } Cras convallis bibendum mi. Vivamus id quam euismod, rhoncus orci
  28.  
  29. ac, elementum erat. Integer lacinia augue nunc.\,\footnote{per Aliquam sagittis eros vitae urna lobortis elementum. Phasellus
  30.  
  31. iaculis nibh sed eros dictum ultricies. Class aptent taciti sociosqu
  32.  
  33. ad litora torquent per conubia nostra inceptos himenaeos. }Donec ligula nunc, porta non ipsum non, semper hendrerit massa.\end{quote}
  34. \end{minipage}
  35. \medskip{}
  36.  
  37. \begin{minipage}{\textwidth}
  38. \begin{quote}
  39. Fusce dapibus, velit rutrum facilisis ullamcorper. Fusce sollicitudin
  40.  
  41. diam massa, quis egestas metus vulputate\,\footnote{Nam est ligula, laoreet nec ipsum vitae, facilisis volutpat ipsum.
  42.  
  43. lectus justo dignissim augue, eu tincidunt tellus erat non massa.} Duis arcu orci sodales vitae\,\footnote{arcu dapibus aliquet\,consequat eget, euismod eu mi}.
  44.  
  45. Donec mattis iaculis\, \footnote{Cum sociis natoque penatibus et magnis dis parturient montes, nascetur
  46.  
  47. ridiculus mus. Vivamus aliquet cursus blandit. Cras rutrum, elit at
  48.  
  49. porttitor hendrerit, lorem lectus posuere mauris, at lacinia dolor
  50.  
  51. urna non sapien. } Cras convallis bibendum mi. Vivamus id quam euismod, rhoncus orci
  52.  
  53. ac, elementum erat. Integer lacinia augue nunc.\,\footnote{per Aliquam sagittis eros vitae urna lobortis elementum. Phasellus
  54.  
  55. iaculis nibh sed eros dictum ultricies. Class aptent taciti sociosqu
  56.  
  57. ad litora torquent per conubia nostra inceptos himenaeos. }Donec ligula nunc, porta non ipsum non, semper hendrerit massa.\end{quote}
  58. \end{minipage}
  59.  
  60. \end{document}


Unfortunately it doesn't really look nice enough to use.

Can I customise the minipage output so that:

1. It shows some vertical white-space instead of a horizontal rule,
2. It doesn't indent the notes,
3. It uses numbered notes instead of lettered,
4. It uses a bigger typeface?

Also, I'm not sure why the whole of the second minipage is indented?

Any help much appreciated.

wednesday
Posts: 11
Joined: Mon Feb 15, 2016 12:25 pm

Postby wednesday » Fri Feb 19, 2016 6:08 am

Okay.

So after several days of searching in all the wrong places I have finally stumbled across the existence of the reledmac and ednotes packages for typesetting critical editions, which may be what I need.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9440
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Feb 19, 2016 8:39 pm

Hello,

welcome to the forum! Yes, reledmac is an excellent choice for it. Last year, our DANTE friend Martin made a talk about critical editions and reledmac. Perhaps take a look: presentation slides. It's written in German though. But there are nice samples.

Stefan
Site admin

wednesday
Posts: 11
Joined: Mon Feb 15, 2016 12:25 pm

Postby wednesday » Sat Feb 20, 2016 12:40 pm

Thanks for the welcome :)

yes, the reledmac package is looking really promising for my scenario.

One thing I can't figure out from the (generally excellent) documentation is how to control the appearance (type size) of a familiar-note's Mark where the notes are typeset below the main text.

Section 5.4.2 of the doc explains:

5.4.2 Customizing mark
Each series uses a set of macros for styling the marks. The mark numbering scheme of series A is defined by the \thefootnoteA macro; the default is:
\renewcommand*{\thefootnoteA}{\arabic{footnoteA}}

The appearance of the mark in the text is controlled by \bodyfootmarkA which is defined as:
\newcommand*{\bodyfootmarkA}{%
\hbox{\textsuperscript{\normalfont\@nameuse{@thefnmarkA}}}}

The command \footfootmarkA controls the appearance of the mark at the start of the footnote text. It is defined as:
\newcommand*{\footfootmarkA}{\textsuperscript{\@nameuse{@thefnmarkA}}}

There are similar command triples for the other series.


Unfortunately, none of the shipped example files include this command.

I've tried all the guesses I can surmise, but none of them work :|

What syntax should I use in my .tex file with the \footfootmarkA command to tell LaTeX I want Marks of the A series to be displayed in normal sized type?

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Feb 20, 2016 3:31 pm

Hi and welcome from me too. I was thinking about your problem and figured it too be to complicated for reledmac. Good you have found something, saved me time to think about it further.

Can you post a working code examples that gives a ready to compile pdf showing the different footnotes? That would be helpful.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

wednesday
Posts: 11
Joined: Mon Feb 15, 2016 12:25 pm

Postby wednesday » Sun Feb 21, 2016 1:19 am

Here's where I am at so far:

  1. \documentclass[12pt,twoside]{article}
  2. \usepackage{polyglossia,fontspec,xunicode}
  3. \usepackage{libertineotf}
  4. \usepackage{microtype}
  5. \setmainlanguage{english}
  6. \setlength{\parindent}{0pt}
  7.  
  8. \usepackage[series={A},noend,noeledsec]{reledmac}
  9. \firstlinenum{1}
  10. \linenumincrement{2}
  11. \linenummargin{left}
  12. \Xnotefontsize[A]{\small}
  13. \notefontsizeX[A]{\small}
  14.  
  15.  
  16. \begin{document}
  17.  
  18. \beginnumbering
  19.  
  20. \begin{ledgroup}
  21. \pstart
  22.  
  23. Aenean nulla nunc, consectetur sed sem non, mollis facilisis mi. Aliquam tristique%
  24. %
  25. \footnoteA{Cras venenatis porta congue. Praesent sollicitudin, est eget eleifend pharetra, arcu justo scelerisque enim, ac convallis orci ex vehicula urna.}%
  26. \,%
  27. Vivamus sit amet efficitur dolor. Donec vitae elit quis lorem ullamcorper congue id ac nunc.%
  28. %
  29. \footnoteA{Aliquam tincidunt venenatis orci, eget congue mauris lacinia ut. Pellentesque a pellentesque elit.}%
  30. \,%
  31. Nunc sed risus lacinia, volutpat nisl eu, varius urna. In sed sapien magna. Nam vulputate ipsum sapien, quis laoreet neque mollis id.%
  32. %
  33. \footnoteA{Ut a gravida sapien, a porttitor tortor. Nullam iaculis pharetra consequat. Pellentesque vitae lacus quam.}%
  34.  
  35. \pend
  36. \end{ledgroup}
  37.  
  38.  
  39. \bigskip
  40. \begin{ledgroup}
  41. \pstart
  42.  
  43. Maecenas ante nisl. Suspendisse ut maximus nulla. Pellentesque vitae. Nunc lacinia a neque in bibendum.%
  44. %
  45. \footnoteA{Suspendisse ut maximus nulla. Pellentesque vitae erat ut purus maximus vehicula id aliquam ipsum. Nunc lacinia a neque in bibendum.}%
  46. \,%
  47. Duis elementum. Vivamus sit amet efficitur dolor. Donec congue id ac nunc.%
  48. %
  49. \footnoteA{Praesent facilisis a massa id tincidunt. Nulla facilisi. Duis elementum eget est et convallis. Vivamus sit amet efficitur dolor.}%
  50. \,%
  51. Duis pretium quam id. Aliquam erat volutpat. Ut a erat rutrum, vehicula elit sed, tristique ante. In pellentesque ipsum non posuere ornare.%
  52. %
  53. \footnoteA{Ut a gravida sapien, a porttitor tortor. Nullam iaculis pharetra consequat. Pellentesque vitae lacus quam.}%
  54. \,%
  55. Phasellus porta ipsum vitae dictum aliquet. Ut a gravida sapien, a porttitor tortor. Nullam iaculis pharetra consequat.
  56. %
  57. \pend
  58. \end{ledgroup}
  59.  
  60.  
  61. \bigskip
  62. \begin{ledgroup}
  63. \pstart
  64.  
  65. Quisque quis dictum sapien.%
  66. %
  67. \footnoteA{Suspendisse ut maximus nulla. Pellentesque vitae erat ut purus maximus vehicula id aliquam ipsum. Nunc lacinia a neque in bibendum.}%
  68. \,%
  69. Proin Pellentesque vitae erat ut purus maximus vehicula id aliquam ipsum. Nunc lacinia a neque in bibendum.%
  70. %
  71. \footnoteA{Suspendisse ut maximus nulla. Pellentesque vitae erat ut purus maximus vehicula id aliquam ipsum. Nunc lacinia a neque in bibendum.}%
  72. \,%
  73. Duis elementum eget est et convallis. Vivamus sit amet efficitur dolor. Donec vitae elit quis lorem ullamcorper congue id ac nunc.%
  74. %
  75. \footnoteA{Praesent facilisis a massa id tincidunt. Nulla facilisi. Duis elementum eget est et convallis. Vivamus sit amet efficitur dolor.}%
  76. \,%
  77. Duis pretium quam tellus, id laoreet nisl consequat id. Aliquam erat volutpat. Ut a erat rutrum, vehicula elit sed, tristique ante.%
  78. %
  79. \footnoteA{Ut a gravida sapien, a porttitor tortor. Nullam iaculis pharetra consequat. Pellentesque vitae lacus quam.}%
  80. \,%
  81. Phasellus porta ipsum vitae dictum aliquet. Ut a gravida sapien, a porttitor tortor. Nullam iaculis pharetra consequat.%
  82. %
  83. \pend
  84. \end{ledgroup}
  85.  
  86.  
  87. \endnumbering
  88.  
  89. \end{document}



The \begin{ledgroup} ... \end{ledgroup} feature is what really makes my layout possible. These are superior to minipage because a group can span a pagebreak. reledmac also supports outputting notes at the end of defined sections, but I haven't experimented with that feature yet.

An improvement I would really like to make to the above code is to use normalsized Marks in the footnotes (thus my question upthread).

Also, a problem I have observed is that I cannot get \verb to work within the text of a familiar note. Is there a reason and/or workaround for this?

Any advise on these--or other optimisations--much appreciated :)

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Feb 21, 2016 2:08 pm

Concerning the marks, i think you want the following:
  1. \makeatletter
  2. \renewcommand*{\footfootmarkA}{\@nameuse{@thefnmarkA}\space}
  3. \makeatother


I think there were some other questions, but they seem to be gone.

The verbatim stuff, i'll ping the author.

EDIT: https://github.com/maieul/ledmac/issues/499
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

wednesday
Posts: 11
Joined: Mon Feb 15, 2016 12:25 pm

Postby wednesday » Sun Feb 21, 2016 2:30 pm

Thanks Johannes_B, that worked for the Marks. Many thanks--I have spent hours looking for examples and guessing, but I never would have guessed that :)

Yes, there were a couple of other questions, but I solved them already, so I edited them out.

One was removing the horizontal rule above footnotes (which I did with \usepackage[norule]{footmisc}), and the other was about indenting the main text (but I ended up doing something nicer with \usepackage{lettrine}).

Thanks again for your help

User avatar
Stefan Kottwitz
Site Admin
Posts: 9440
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Feb 21, 2016 2:42 pm

wednesday wrote:Also, a problem I have observed is that I cannot get \verb to work within the text of a familiar note. Is there a reason and/or workaround for this?


\verb is very special and so it has restrictions. But there are packages which provide such verbatim commands which also work in footnotes and elsewhere, when the original \verb would fail.

For example, using the examplep package:

  1. \usepackage{examplep}
  2.  
  3. \footnoteA{Cras \PVerb{\text$\%\\} venenatis porta congue.}


Stefan
Site admin


Return to “General”

Who is online

Users browsing this forum: No registered users and 9 guests