Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Default Font Size on LyX

  • 07-06-2011 1:09am
    #1
    Registered Users Posts: 3,038 ✭✭✭


    I've got an immensely annoying problem, is there any way to set LyX to
    use as it's default font size 9 instead of 10? I've googled like crazy & just
    can't figure out a way to do it.

    I'm hoping there's a way to just globally set this on 9 without having to
    insert any fancy code @ the start of each post or anything. Perhaps there
    is an easy way by just copy-pasting some code into the preamble that
    does this but any I've found doesn't work.

    The problem is that I am copy-pasting a lot of material into a LyX document
    & will be for the foreseeable future.

    Really appreciate any help :cool:


Comments

  • Technology & Internet Moderators Posts: 28,780 Mod ✭✭✭✭oscarBravo


    Have you tried editing the .lyx document in a text editor and changing the \paperfontsize line to 9?

    edit: never mind, I tried it and it doesn't work.


  • Registered Users Posts: 3,038 ✭✭✭sponsoredwalk


    Unfortunately no, but thanks anyway :cool:


  • Registered Users Posts: 13,104 ✭✭✭✭djpbarry


    I'm not sure I understand - the first line of any latex document is something like...
    \documentclass[a4paper, 9pt]{article}
    
    Lyx overrides this?


  • Registered Users Posts: 3,038 ✭✭✭sponsoredwalk


    LyX is basically a gui, it bypasses all recourse to latex code (on my part!).
    I have had absolutely no need to write or read anything like \documentclass.


  • Registered Users Posts: 13,104 ✭✭✭✭djpbarry


    LyX is basically a gui, it bypasses all recourse to latex code (on my part!).
    I have had absolutely no need to write or read anything like \documentclass.
    In which case I might suggest you try a different, more "stripped-down" editor, that gives you more control over your type-setting. For example, I use TexnicCenter, which probably isn't the best editor available, but it's more than adequate for my purposes. This does mean that you'll have to specify 'formatting' options and include packages at the beginning of every file, like this (for example)...
    \documentclass[a4paper,10pt]{article}
    
    \footskip = 45pt
    \textwidth = 425pt
    \textheight=22.6cm
    \linespread{1.6}
    \usepackage{amsfonts,amsmath}
    \usepackage{graphicx}
    \usepackage{calc}
    \usepackage{titlesec}
    \usepackage{threeparttable}
    \usepackage{tabularx}
    \usepackage{booktabs}
    \usepackage[sort]{natbib}
    \usepackage[labelformat=simple]{subfig}
    \captionsetup{margin=0.5cm,font=small,labelfont=bf}
    \titleformat{\section}{\bfseries\Large\raggedright}{\thesection}{1em}{}
    \titleformat{\subsection}{\bfseries\large\raggedright}{\thesubsection}{1em}{}
    \titleformat{\subsubsection}{\bfseries\normalsize\raggedright}{\thesubsubsection}{1em}{}
    \renewcommand\bibname{References}
    \setlength\fboxsep{0pt}
    \setlength\fboxrule{0.75pt}
    
    \begin{document}
    
    However, like me, you'll probably find that you're using a very similar set-up for most documents you produce, so you can save your preamble in a file (called 'preamble.tex', for example), and just input this at the beginning of each document:
    \documentclass[a4paper,12pt]{article}
    
    \input{preamble}
    
    \begin{document}
    


  • Advertisement
  • Hosted Moderators Posts: 7,484 ✭✭✭Red Alert


    I know some people do like Lyx, but I think there comes a time to just use normal LaTeX.


Advertisement