LyX ⇒ PDF output looks like crap
PDF output looks like crap
So, first question: How do I make the entire document output in a sans serif font?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 37
- Joined: Sun Mar 29, 2009 1:41 am
Re: PDF output looks like crap
And about the PDF output looking like crap: maybe you just don't like how TeX formats things. If I'm not mistaken, it's true that TeX by default makes tighter-set text than, say, MS Word. And I'm not sure where your aversion for serif fonts comes from, since, if you're doing anything sort of paper or something a sans serif font will just look awkward. Do explain what you mean by the text not lining up correctly -- is it a "bad box"?
Unfortunately there's no automatic setting that just makes everything look the way you want it to. So do please make more informative titles and addressable, specific questions.
Re: PDF output looks like crap

PDF output looks like crap
I just tried that, it made the title sans serif but the rest of the document remained serif.johnjamessmith0 wrote:Putting the LaTeX command \sffamily at the very beginning of the document should make everything sans-serif. There's probably a native LyX way of setting the font, though. I don't know anything about LyX.
I haven't used paper for years, and where it comes from is rather irrelevant, wanting output to be in sans serif is pretty basic, realistically I want the whole thing to output in Calibri, but I'm asking for more general stuff to start.And I'm not sure where your aversion for serif fonts comes from, since, if you're doing anything sort of paper or something a sans serif font will just look awkward.
If I'm at a 100% zoom (200% or higher fixes it) the letter size isn't consistent, so sometimes a letter will dip higher or lower than adjacent ones, which is quite disconcerting.Do explain what you mean by the text not lining up correctly -- is it a "bad box"?
The title is plenty informative, I have a lot of issues with PDF output so I can't narrow it down to one thing.So do please make more informative titles
*facepalm* It doesn't get more specific than "So, first question: How do I make the entire document output in a sans serif font?" and you even addressed it. I realise there's a thread at the top about making specific questions to be addressed, but that's not a license for you to just tag that on to the end of every post.and addressable, specific questions.
PDF output looks like crap
Here you go.meho_r wrote:Please, post your PDF file here, I'm really curious to see how bad is it
- Attachments
-
- 3ds.pdf
- (34.14 KiB) Downloaded 991 times
PDF output looks like crap




About the sans serif thing ... did you put
Code: Select all
\sffamily
Code: Select all
\begin{document}

Sure, why not, but if you aren't that familiar with LaTeX, maybe take a look at this font site. Most of the listed fonts you don't even install yourself (meaning "manually") if you have MikTeX.robinashe wrote:I haven't used paper for years, and where it comes from is rather irrelevant, wanting output to be in sans serif is pretty basic, realistically I want the whole thing to output in Calibri, but I'm asking for more general stuff to start.

PDF output looks like crap
Code: Select all
\sffamily
Instead try:
Code: Select all
\renewcommand*{\familydefault}{\sfdefault}
I do remember there being a LyX-specific way to choose what the default font for the document somewhere, but I can't remember the details, and don't have LyX installed at the moment.
It mainly looks like crap because of the Type 3 fonts, however, and just switching to sans won't cover that. Try editing the preamble to put in:
Code: Select all
\usepackage[T1]{fontenc}
But I'm concerned about why you're getting Type 3 fonts at all. I know your install of LyX is new, but that's not the issue here. How old is your LaTeX installation? Do you know what LaTeX distribution you have, and what version? See if upgrading it helps.
PDF output looks like crap
Well, the command you named helps. I also get Type 3 fonts without that line.frabjous wrote:It mainly looks like crap because of the Type 3 fonts, however, and just switching to sans won't cover that. Try editing the preamble to put in:
and see if that helps. It may be necessary to load and/or install lmodern or cm-super to get Type 1 versions of the Computer Modern fonts. You might prefer a different Sans font, however, like Helvetica; the post above mentions tgheros, which is a Helvetica clone, and also links to a place to find more.Code: Select all
\usepackage[T1]{fontenc}
But I'm concerned about why you're getting Type 3 fonts at all. I know your install of LyX is new, but that's not the issue here. How old is your LaTeX installation? Do you know what LaTeX distribution you have, and what version? See if upgrading it helps.
Re: PDF output looks like crap
I'm seeing all the solutions are to enter code, so I gather if I'm to make any progress with this, particularly getting help from the community I'm better off learning to write the code? How does LaTeX compare to HTML in terms of difficulty/ease of use?
PDF output looks like crap
The problem is, you are using them because ... well, doesn't really matter. No one should use Type 3 fonts.

Comparing TeX to html code is difficult, but if you understand that tags are to be regarded as an environments, and then these environments are in fact very often nested, that's a good start. But I understood that you intend to write these "articles" like the one you posted? Well, then you don't have to get in very deep. Also you won't have to use a lot of environments.
I think your title could be
Code: Select all
\begin{center}\LARGE %or \huge
3DS - Another Wii or Nintendo's return to
hardcore?\\~\\\large
\today\end{center}
