Default Font Size on LyX - boards.ie
Boards.ie uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Click here to find out more x
Post Reply  
 
Thread Tools Search this Thread
07-06-2011, 02:09   #1
sponsoredwalk
Registered User
 
Join Date: Aug 2009
Posts: 2,994
Default Font Size on LyX

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
sponsoredwalk is offline  
Advertisement
07-06-2011, 09:11   #2
oscarBravo
Administrator
 
oscarBravo's Avatar
 
Join Date: May 2001
Location: Westport
Posts: 20,734
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.

Last edited by oscarBravo; 07-06-2011 at 09:23.
oscarBravo is offline  
Thanks from:
07-06-2011, 10:46   #3
sponsoredwalk
Registered User
 
Join Date: Aug 2009
Posts: 2,994
Unfortunately no, but thanks anyway
sponsoredwalk is offline  
08-06-2011, 20:57   #4
djpbarry
Moderator
 
djpbarry's Avatar
 
Join Date: Jun 2006
Location: London SW4
Posts: 11,558
I'm not sure I understand - the first line of any latex document is something like...
Code:
\documentclass[a4paper, 9pt]{article}
Lyx overrides this?
djpbarry is offline  
08-06-2011, 23:10   #5
sponsoredwalk
Registered User
 
Join Date: Aug 2009
Posts: 2,994
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.
sponsoredwalk is offline  
Advertisement
09-06-2011, 09:07   #6
djpbarry
Moderator
 
djpbarry's Avatar
 
Join Date: Jun 2006
Location: London SW4
Posts: 11,558
Quote:
Originally Posted by sponsoredwalk View Post
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)...
Code:
\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:
Code:
\documentclass[a4paper,12pt]{article}

\input{preamble}

\begin{document}
djpbarry is offline  
Thanks from:
16-06-2011, 11:46   #7
Red Alert
Hosted Moderator
 
Red Alert's Avatar
 
Join Date: Jan 2003
Location: Dublin
Posts: 6,918
HMod: LaTeX
I know some people do like Lyx, but I think there comes a time to just use normal LaTeX.
Red Alert is offline  
(3) thanks from:
Post Reply

Quick Reply
Message:
Remove Text Formatting
Bold
Italic
Underline

Insert Image
Wrap [QUOTE] tags around selected text
 
Decrease Size
Increase Size
Please sign up or log in to join the discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Share Tweet