I'm new to LaTeX. I'm using XeLaTeX on Linux Mint Tara to compile. Updated version of TeX Live is installed.

Here's What I'm trying to make: LaTeX_Layout_Goal

Here are my queries:

  1. I have used fontspec package to change the fonts but is there a way to do it without additional packages?

  2. How to make margins in memoir? I used \setulmarginsandblock{2cm}{*}{1} but it is including the header I think.

  3. How to make headers, footers without fncyhdr package? Documentation of memoir asks to use \makeevenhead & \makeoddhead but my book has oneside. How to edit my Header/Footer?

  4. The header I need is multi-lined; First line is just centered aligned plaintext followed by \makeheadrule;

  5. Chapter number includes section number;
    \leftmark and \rightmark are both on left side with / between them.
    One is \textbf{} other is not. Both are italicized.

  6. Right side of header contains \textbf{Page | } followed by page numbering that includes ChapterNumber with chapterwise pagenumber[2-18/35] indicating the follows,
    2=Current Chapter Num;
    18=Current Page Num;
    35=Total Pages in Current Chapter.

  7. The footer is just
    \FAS{"F0E0} \textbf{Mail: }\textit{abcxyz@isro.in}\hfill\FAB{"F16D} \textbf{Mail: }\textit{abcxyz@isro.in}\hfill\FAS{"F57D} \textbf{Website: }\textit{www.isro.gov.in}
    between two footrules \makefootrule I guess?? How to change header/footer to Aqua? \aqt?

  8. Lastly, how to make SideMarginNotes that aligns with top of a paragraph?? Whose width is 5cm? I tried \setmarginnotes{17pt}{5cm}{0} from memoir docs but it doesn't work. How to add text or figure or table to it with heading & captions?

Here's my code so far...










        %\setmonofont{Ubuntu Mono}
        %\newfontface{\fasfont}{Font Awesome 5 Free Solid}

        %\newfontface{\farfont}{Font Awesome 5 Free Regular}

        %\newfontface{\fabfont}{Font Awesome 5 Brands Regular}





Here's what my code gives me: ObtainedLayout Footer Text

Sorry for such a long question... Thanks if you read it till the end.

  • 1
    (2) it does not, (3) oneside only uses the design of XoddX. – daleif Aug 12 '19 at 8:50
  • 1
    It is exactly 2cm, \documentclass[a4paper,12pt,oneside,showframe]{memoir} \setlrmarginsandblock{2.5cm}{2cm}{*} \setulmarginsandblock{2cm}{*}{1} \checkandfixthelayout \pagestyle{showlocs} \usepackage{tikz,xcolor} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[remember picture,overlay] \fill[red,opacity=0.5] (current page.north west) rectangle ($(current page.north east) +(0,-2cm)$); \end{tikzpicture} \end{document} – daleif Aug 12 '19 at 9:01
  • 1
    The 2cm is from the top of the paper to the top of the textblock. – daleif Aug 12 '19 at 9:07
  • 1
    Under oneside memoir will only write to rightmark (this can be changed) – daleif Aug 12 '19 at 9:44
  • 1
    Those are setter macros, not getters (\leftmark and \rightmark are "getters"). You can try ` \makeatletter \addtopsmarks{mystyle}{}{ \createmark{chapter}{both}{shownumber}{\@chapapp\ }{. \ } \createmark{section}{both}{shownumber}{}{. \ } } \makeatother` you might not want to have both on both chapter and section, at the same time, it can get both, left, right – daleif Aug 12 '19 at 10:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.