## LaTeX forum ⇒ LyX ⇒ add citation in Part page Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm

### add citation in Part page

Hello everyone,
i am using Memoir to write my thesis. I divide it in 2 parts.
I would like to add a citation in the same Part page, but by default a clear-double-page is created after the Part section.
Do you know how can I trick lyx to let me add some free text in the same Part page?
Federico

Johannes_B
Site Moderator
Posts: 3665
Joined: Thu Nov 01, 2012 4:08 pm
No need to trick LyX, you just have to change the original LaTeX defintion of \part, or rather the underlying commands, to what you need.

You can click on Open in Overleaf to see the compiled result of the example below.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm
Thanks Johannes_B!
It worked!
One more detail though. I guess that the vfill in command line
\renewcommand{\afterpartskip}{\vfill\begingroup\partcite\par\endgroup\vfill\newpage}

push the Part title way up to the top of the page (it looks also like this in the example you sent me).
I would like to have the "Part 1: PartTitle" a bit more vertically centered.
I tried to add some vertical space before the PartTitle (both protected and not) in lyx, but it looks like this spacing is ignored and so the Part Title stays in the top of the page.
Any idea how to fix this?
Thanks again

Johannes_B
Site Moderator
Posts: 3665
Joined: Thu Nov 01, 2012 4:08 pm
Try the following. You can also try \vfil[\latex] (just one ell), or use [latex]\vspace everywhere to do the spacing completely by hand.
In this example, the citation is cleared so no accidental duplication happens. A non-existing cite is much easier to spot than a duplicate.

Using fil/fill, LaTeX stretches the spacing depending on the content, so very different (lengthwise) citations will lead to very different spacing, so i am in favour of handling the spaces by hand. On the other hand, having a really spacy part title, will now destry stuff. So you have to consider what might happen more often and adjust by hand from case to case.

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Fed89
Posts: 21
Joined: Thu May 16, 2013 3:01 pm
Perfect! Thanks a lot!