LyXBest way to use Latex source files?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
brachiaque
Posts: 10
Joined: Fri Nov 19, 2010 11:17 pm

Best way to use Latex source files?

Post by brachiaque »

Hi,

I'm new to Lyx. I'm using beta 2.0 and Miktex. Whats the best way to handle latex files? Should I rather edit the "source code" of the latex file?
If I import http://jblevins.org/cv.tex as a Latex source, Lyx presents me chaos and pdflatex will come up with hundreds of errors, which would take me hours to resolve.
I've seen that before with latex source file imports. How do you handle this? Most likely I have to handle existing latex source files, but don't see a straightforward solution...

TIA
Michael

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

brachiaque
Posts: 10
Joined: Fri Nov 19, 2010 11:17 pm

Re: Best way to use Latex source files?

Post by brachiaque »

I don't get it. I've tried his cv now: http://nitens.org/taraborelli/cvtex
Downloaded the .tex file, installed the Linux Libertine font, applied "xelatex cv_libertine.tex" - tons of error messages. First it won't find a Monaco font. After resolving this, error messages go on.

I then tried to build a CV myself with the document class which I find via the Lyx GUI. Well, 12 errors. Everythings "misplaced".

The thing about latex is, I'll get the same output in future as today. But what I fear is most likely I will not get any output at all...

Michael
brachiaque
Posts: 10
Joined: Fri Nov 19, 2010 11:17 pm

Re: Best way to use Latex source files?

Post by brachiaque »

So frustrating. I've installed ALL packages from ctan. I tried "Curriculum vitae (europe)". Compiled with pdflatex. Now 4 error messages. Option clash, undefined control sequence, missing number, illegal unit of measure.

Tried xelatex as output then: "europasslogo not found"-. Interesting. Miktex package manager reports it's there.

As I need the CV for a friend tomorrow unfortunately I'll try an alternative without the need to compile; I've access to Adobe Indesign, so I'll rebuild the CVs with Adobe Indesign and use the example pdfs as a template.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Best way to use Latex source files?

Post by frabjous »

The first CV you linked to compiled for me with PDFLaTeX without errors.

For the one on Taraborelli's site, like you I had to change the Monaco font to one I already had installed (--to be fair Taraborelli wants about this!), and I also had to change the line:

Code: Select all

\usepackage[dvipdfm, bookmarks, colorlinks, breaklinks, 
to

Code: Select all

\usepackage[bookmarks, colorlinks, breaklinks, 
I suspect this has to do with changes to how xelatex and hyperref interact; since xelatex is "newer", some things do still change without backwards compatibility.

After that, it compiled fine. I'm attaching both.

Without knowing more about what errors you got, it's hard to guess why you had such problems. Perhaps post the log files?

I think it is worthwhile for LyX users to learn how to handle LaTeX mark-up directly, at least for those files that don't import well. But it's not something you can do when pressed for time. The learning curve is steep, but so are the payoffs.
Attachments
cv_libertine.pdf
(41.25 KiB) Downloaded 361 times
cv.pdf
(65.52 KiB) Downloaded 280 times
brachiaque
Posts: 10
Joined: Fri Nov 19, 2010 11:17 pm

Best way to use Latex source files?

Post by brachiaque »

frabjous wrote:The first CV you linked to compiled for me with PDFLaTeX without errors.
pdflatex cv.tex:

Code: Select all

Overfull \hbox (1.82999pt too wide) in paragraph at lines 83--97
[][] []
[1{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}] [2] [3]
(C:\Users\Michel\Desktop\cv.aux)

Package rerunfilecheck Warning: File `cv.out' has changed.
(rerunfilecheck)                Rerun to get outlines right
(rerunfilecheck)                or use package `bookmark'.

 )
(see the transcript file for additional information){C:/Program Files (x86)/MiK
TeX 2.9/fonts/enc/dvips/fontname/texnansi.enc}<C:/Program Files (x86)/MiKTeX 2.
9/fonts/type1/mathdesign/mdugm/md-gmr8t.pfb>
!pdfTeX error: pdflatex (file ugmr8a.pfb): cannot open Type 1 font file for rea
ding
 ==> Fatal error occurred, no output PDF file produced!
A bit offtopic here, because it's a Latex question...

I got the second one working, with your hints. But as a LyX import, it won't compile. "! LaTeX Error: Undefined color `MidnightBlue'." Anyway, it's not important...
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Best way to use Latex source files?

Post by Montag »

brachiaque wrote:A bit offtopic here, because it's a Latex question...

I got the second one working, with your hints. But as a LyX import, it won't compile. "! LaTeX Error: Undefined color `MidnightBlue'." Anyway, it's not important...
MidnightBlue is defined by the xcolor package. Make sure to load the correct option.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Best way to use Latex source files?

Post by frabjous »

As for the other error, it looks like you don't have the URW Garamond fonts installed for the mathdesign package. Those don't always come preinstalled with every LaTeX distribution because they use a more restrictive license than most LaTeX fonts do. I know how to install these for TeXlive, but not for MikTeX. Maybe someone else will.
Post Reply