Skip to main content
Inspiring
Dec 3, 2022 6:50 PM UTC
Question

Cannot figure out how to create a variable for two paragraph styles

I have two paragraph tags/styles named Title and Subtitle.

I cannot figure out how to create a custom variable with the correct syntax for each. 😞

 

I want to put them in the header of each master page.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    6 replies

    Bob_Niland
    Community Expert
    Community Expert
    Dec 3, 2022 8:45 PM UTC

    A more brute-force method is to create two variables, each containing just the raw text for the Title & Subtitle (and no other formatting or mark-up), and use those to populate both the various title pages, and the Master Page header/footers.

    Translate
    Inspiring
    Dec 3, 2022 9:25 PM UTC

    I think I will try that, Thanks!

    Translate
    Bob_Niland
    Community Expert
    Community Expert
    Dec 3, 2022 11:05 PM UTC

    Yet another method is that header/footer MP content can also be Cross-References, perhaps in this case to title page content, format <$paratext>.
    That will, however, create hypertext links to the source page, which you may or may not desire.

    If there were only one way to do it, it wouldn't be FM.

    Translate
    Bob_Niland
    Community Expert
    Community Expert
    Dec 3, 2022 6:59 PM UTC

    If I understand what you intend, FM has a feature specifically for that:
    Insert » Variables… » Running H/F #
    🖉 edit var to designate para picked up

    Translate
    Inspiring
    Dec 3, 2022 7:57 PM UTC

    Well I tried that but does not work.

     

    Translate
    Community Expert
    Dec 3, 2022 8:04 PM UTC

    What does not work? What do you see in the header?

    Do you have a paragraph with this format in your body page?

    Translate