LaTeX -> LyX conversion

2014-01-05 Thread Sinan Pakkan
Hi to everyone,

The subject explains the situation, I guess. To be more specific, I have
this dissertation class, which perfectly compiles with different editors
using the MikTeX 2.8 and 2.9 distributions. I was able to use the class
file in LyX preparing a very simple layout file containing the following
lines:

# \DeclareLaTeXClass[metu]{metu}
# Input general definitions
Input stdclass.inc

However, I can neither produce any output (pdf or dvi) from the LyX
document, nor export it back into plain LaTeX. When I try I get the
following error:

! LaTeX Error: Missing \begin{document}.

The format
is
publicly available, and the archive at the link includes 3 versions with
sample .tex files, all of which end up with the same result. The problem
seems to be with the class file, however since it works with the LaTeX
compiler I cannot figure out where exactly.

Any help would be appreciated, and since it is a public format may be
benefited by several users.

Thanks in advance,
Sinan


Re: Multimarkdown to LyX

2014-01-05 Thread Scott Kostyshak
Looks interesting. The documentation is well written. Thanks for
sharing this news.

Scott

On Sun, Jan 5, 2014 at 11:34 AM, C. R. Cowan  wrote:
> LyX users might like to get LyX output directly from Multimarkdown. Thus you
> can draft your documents using Multimarkdown or even Scrivener to create
> Multimarkdown and then polish the results in LyX. I have worked with
> Fletcher Penny to implement that capability.
>
> Here is a link to the announcement page:
> http://fletcherpenney.net/2014/01/mmd_4.5_released
>
> And here is a link to a page with documentation specific to the LyX
> capability: http://crcowan.github.io/MultiMarkdown-4-LyX-Maintenance/
>
> Let me know what you think and if you find problems please post to the
> Multimarkdown Issues page:
> https://github.com/fletcher/MultiMarkdown-4/issues
>
> Enjoy!
>
>   Charles


Re: Trying to install xetexCV document class

2014-01-05 Thread Richard Talley
More on the xetexCV layout.

You don't actually have to specify Fontin Regular and Fontin Sans in
Document -> Settings -> Fonts as the xetexCV class specifies those fonts as
the defaults already. If you don't have the Fontin fonts installed and
don't specify others, then you'll get errors about missing fonts. You can
always specify anything that's on your Mac, as this is xetex. Hoefler Text
for Roman and Helvetica for Sans gives a nice result.

The layout is nice but fairly limited. If your needs are very similar to
the author's, such as in the example LyX file he provides, then it's very
easy to use.

The custom 'years' inset in the layout works well for just years, as in the
example. If you add months so the text goes over one line, the formatting
is not good. I worked around that by making the text smaller so it fits on
one line.

The layout as provided doesn't provide for itemized lists, so I added that.
But they don't format properly with the rest of the entries. I worked
around that temporarily by putting the list in the CV I'm working on into a
minipage box and adjusting the scaling.

Too much finger painting, but the CV looks very nice. I think I'll rewrite
the layout so it's more robust and flexible; a good excuse for learning
about LyX layouts in detail.

-- Rich



On Sat, Jan 4, 2014 at 8:32 PM, Richard Talley wrote:

> If working with the terminal and configuration variables put you out of
> your depth, then TeX and LyX may not be appropriate tools until you're more
> familiar with OS X.
>
> In any case, I should follow my own advice and read the documentation
> (it's been a while since I've done this).
>
> The xetexCV.cls class file should go in ~/Library/texmf/tex/latex (create
> folders as necessary).
> Put the cvsplitbib.sty style file in the same place.
> Then reconfigure LyX.
>
> Class and style files are part of TeX. Additional class and style files
> can be added to your TeX Live installation, as you're doing here.
>
> Layout files are specific to LyX. They are what allow LyX to make use of
> TeX class files. Go back to the instructions you linked to originally and
> find the zip file that contains the layout file. There are actually two zip
> files you need to download in order to have a complete set of files. There
> is xetexCV.zip, which contains some sample TeX files as well as xetexCV.cls
> and cvsplitbib.sty. There is also a xetexCV-LyX.zip, which contains a
> working LyX example and the xetexCV.layout file.
>
> Put the xetexCV.layout file in the same working folder as your LyX file.
> With it in the same folder, you don't need to bother with the Local Layout
> setting.
>
> I was able to typeset the example file (a CV of J.R.R. Tolkien) by making
> the following changes:
>
> The example LyX file uses the font Minion Pro, which is a licensed font
> you have to purchase. I substituted Fontin Regular. You also need Fontin
> Sans. Both are available for free here:
>
> http://www.exljbris.com
>
> Use Font Book to add fonts to your OS X installation. In LyX, with the
> example LyX file open, use Document -> Settings -> Fonts. Check the
> choice to use non-Tex fonts, then change the Roman font from Minion Pro
> to Fontin Regular and the Sans font to Fontin Sans.
>
> I also had to go into Documents -> Settings -> LaTeX Preamble and edit the
> path to JRR-Tolkien.jpg to the correct one for my installation rather
> than the author's.
>
> Typeset with View -> PDF [XeTeX}
>
> It's a good looking CV. Thanks. I can make use of this layout.
>
> -- Rich
>
>
>
> On Sat, Jan 4, 2014 at 5:29 PM, justin  wrote:
>
>> Richard Talley  gmail.com> writes:
>>
>> > And yes, create the folder (or directory) 'texmf' in your home folder
>> and
>> put your xexexCV.cls file in it.
>> >
>>
>> Hi Richard,
>> Some of what you said was a little out of my depth I think. But I did
>> understand your last sentence included above.
>>
>> So now looking back at your original instructions I have done perhaps all
>> of it:
>>
>> 1) Put the xetexCV.cls file here:
>>
>> ~/Library/texmf DONE
>>
>> 2) Reconfigure is under the LyX menu:
>>
>> LyX -> Reconfigure DONE
>>
>> 3) When you start your document, point it to your local layout:
>>
>> Document -> Settings -> Document Class -> Local Layout...
>>
>> This bit I am stuck at now. I got to Document Class and was disappointed
>> not
>> to see it on the list from the drop down menu where I thought it should
>> be.
>> I clicked then on "local layout" like you said, and that let me click
>> through my computer to find the ~/Library/texmf folder. But although I can
>> see the xetexCV.cls inside it, it is grayed out, so I cannot select it.
>> Any ideas?
>>
>> Thank you!
>>
>>
>


Multimarkdown to LyX

2014-01-05 Thread C. R. Cowan
LyX users might like to get LyX output directly from Multimarkdown. Thus 
you can draft your documents using Multimarkdown or even Scrivener to 
create Multimarkdown and then polish the results in LyX. I have worked 
with Fletcher Penny to implement that capability.


Here is a link to the announcement page: 
http://fletcherpenney.net/2014/01/mmd_4.5_released


And here is a link to a page with documentation specific to the LyX 
capability: http://crcowan.github.io/MultiMarkdown-4-LyX-Maintenance/


Let me know what you think and if you find problems please post to the 
Multimarkdown Issues page: 
https://github.com/fletcher/MultiMarkdown-4/issues


Enjoy!

  Charles