Add tags LaTeX specific issues not fitting into one of the other forums of this category.
8 posts • Page 1 of 1
I want to display the name of the section (also chapter, subsection) I'm currently in. (Section number doesn't do)
This is text in the section: ??? % and here I need something to display "asdf" without explicitly typing it)
Thanks a lot,
I've spent countless hours trying to figure this out-- native Latex support is very lacking in this regard.
Here is what I did. Make a variable that stores the current section title.
and use \sectiontitle inside the section...
Trust me on this-- I know exactly what you're trying to do, after investing literally 20 or so hours into this,
Wouldn't have been easier just to define a command like this:
So that in the document you only need to do:
which will both start the new section and redefine \sectiontitle?
But I think there should be a way to get around even doing that, but I think we'd need to know what document class and other packages were being used.
this solved my problem. I could even easily extend the functionality to subsectiontitles ...
I don't quite grasp the exact syntax of the commands you gave, but I encountered those while searching on "\sectionmark" which was the closest I got to a "solution" after literally hours of searching. Everything I encountered was about headers and so on, but I didn't want some "fancy headers", just a title on my slides in the "beamer class" that would change automatically if I ever wanted to change the name of the section. It now also provides easier processing, since I can use the same lines over and over again.
Thanks a lot.
In fact, some rather odd problem remains:
When I use this snippet of code
LateX will not print the title of the new session that is about to begin, but rather the title of the previous session. "Current" session being highlighted is the upcoming session, as was intended.
Placing everything inside the brackets manually AFTER each session-start gives the intended result: correct sessiontitle and correct highlighted "upcoming" session.
Though this suits my needs, it is rather cumbersome...
BTW: document class is Beamer
Are you using this code snippet now?
If so, did you try changing it to:
The nameref package will do this (but you need to label the section):
With beamer, the current section title is given by \insertsectionhead:
LaTeX Resources: http://www.dickimaw-books.com/latexresources.html
Creating a Minimal Example: http://theoval.cmp.uea.ac.uk/~nlct/latex/minexample/
8 posts • Page 1 of 1
Users browsing this forum: No registered users and 20 guests