Re: Fonts in LyX (and LaTeX and TeX)

2010-11-13 Thread stefano franchi
On Wed, Nov 10, 2010 at 4:22 PM, stefano franchi
wrote:

>
>
> On Wed, Nov 10, 2010 at 12:36 AM, Rob Oakes  wrote:
>
>> Hi Stefano,
>>
>> > do you have any advice or pointers to sites explaining how to use margin
>> kerning in XeTeX? The notes posted by J Kew on the mailing list and on the
>> XeTeX wiki are way too cryptic for me.
>>
>> Short answer, yes.  As far as I know, it hasn't yet been discussed much in
>> the Interwebs, but there are several resources you can find on it.  The
>> place to probably start is the XeTeX Microtypography website:
>>
>>
> Hi Rob,
>
> thanks for the detailed instructions. I thought you had to set up the
> various microtype parameters for each font, but it turns out, as you said,
> that the default work reasonably well. At least  with my set up (using Linux
> Libertine and TeX Gyre Termes).
> Time to start tweaking the parameters to  hyphenation algorithm to make up
> for the lack of font expansion.
>
> Cheers,
>
> Stefano
>
>
>

Update: I was really not that happy with the lack of font expansion in
XeTeX, and decided to give LuaTeX a try. I am very happy with the results. I
am using LyX 1.6.7 with TeX Live 2010 and the latest versions of LuaTex,
luaotfload (the Open Type loading script for LuaTeX), microtype, biblatex
0.9 and biber 0.6beta
Pagination has improved considerably out of the box, with no fiddling with
its  various  parameters.

For Lyx, I used the method described in the wiki for XeTeX (define a new pdf
format, etc), and switched the bibtex processor to biber in the preferences.

Everyone seems to strongly recommend a switch away from babel to polyglossia
(for XeTeX as well as for LuaTeX), but I didn't (nor would I know how to do
so from within LyX). No problems so far.

For my current project, the main advantage of LuaTeX over XeTeX is that
hyphenation is now much less common. I do not know if this is  only due to
font expansion or whether it is  also due, perhaps, to different default
parameters in the layout algorithm. Be it as it may, my book looks much
better.

Stefano, a very happy LuaLyXer


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-19 Thread stefano franchi
On Sun, Nov 14, 2010 at 12:10 AM, Gour  wrote:

> On Sat, 13 Nov 2010 15:52:59 -0600
> >>>>>> "stefano" == stefano franchi wrote:
>
> Hiya Stefano,
>
> Would you mind to add/document your 'method' to the wiki in order not to
> get
> lost in the mailing list?
>
>
So I tried to add a page to the LyX wiki, but apparently a developer's
password is needed. Would any developer create a LuaTex page and I will
happily fill itout with the (few) information I have?

Cheeers,

Stefano


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-19 Thread stefano franchi
I added a very basic page and tweaked the xetex.lyx and xetex.pdf files to
show luatex in use. But I cannot find out how yo upload the files.
Advice appreciated


Cheers,

Stefano

On Fri, Nov 19, 2010 at 10:04 AM, Pavel Sanda  wrote:

> stefano franchi wrote:
> > On Sun, Nov 14, 2010 at 12:10 AM, Gour  wrote:
> >
> > > On Sat, 13 Nov 2010 15:52:59 -0600
> > > >>>>>> "stefano" == stefano franchi wrote:
> > >
> > > Hiya Stefano,
> > >
> > > Would you mind to add/document your 'method' to the wiki in order not
> to
> > > get
> > > lost in the mailing list?
> > >
> > >
> > So I tried to add a page to the LyX wiki, but apparently a developer's
> > password is needed. Would any developer create a LuaTex page and I will
> > happily fill itout with the (few) information I have?
>
> http://wiki.lyx.org/LyX/LuaTeX
> but no pass war needed, really
> pavel
>


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-20 Thread stefano franchi
On Fri, Nov 19, 2010 at 12:24 PM, stefano franchi  wrote:

> I added a very basic page and tweaked the xetex.lyx and xetex.pdf files to
> show luatex in use. But I cannot find out how yo upload the files.
> Advice appreciated
>
>

Ok. Done

S.


shortcut produced a "command disabled" warning (lyx 1.6.7)

2010-11-26 Thread stefano franchi
Dear all,

If I try to change the  View>pdf(pdfLaTex), View>pdf(XeTeX), and View>pdf
(LuaTeX) shortcuts to, respectively, Ctrl-1, Ctrl-2, Ctrl-3, I always get a
"command disabled" notice in the minibuffer when using them, whereas
selecting the commands from the menu works fine. Looking at the debug output
in the console, it looks like lyx still reads ctrl-3 (e.g.) as
goto-bookmark-3:

GuiWorkArea.cpp(853):  count: 1 text: isAutoRepeat: 0 key: 51
GuiKeySymbol.cpp(621): Getting key 51, with text '
GuiKeySymbol.cpp(627): Setting key to 51,
uiKeySymbol.cpp(642): isOK is 1
LyXFunc.cpp(300): KeySym is 3
GuiKeySymbol.cpp(642): isOK is 1
GuiKeySymbol.cpp(650): isModifier is 0
LyXFunc.cpp(327): action first set to [bookmark-goto]
LyXFunc.cpp(335): action now set to [bookmark-goto]
LyXFunc.cpp(346):  Key [action=bookmark-goto][Ctrl+3]
GuiWorkArea.cpp(853):  count: 1 text:  isAutoRepeat: 0 key: 16777249
GuiKeySymbol.cpp(621): Getting key 16777249, with text ''
GuiKeySymbol.cpp(627): Setting key to 16777249,
GuiKeySymbol.cpp(642): isOK is 1
LyXFunc.cpp(300): KeySym is Control_L
GuiKeySymbol.cpp(642): isOK is 1
GuiKeySymbol.cpp(650): isModifier is 1
LyXFunc.cpp(310): isModifier true


even though my ~/.lyx/bind/user.bind file says:

\unbind "C-2" "bookmark-goto 2"
\unbind "C-3" "bookmark-goto 3"
\unbind "C-1" "bookmark-goto 1"

\bind "C-2" "buffer-view pdf4"
\bind "C-3" "buffer-view pdf5"
\bind "C-1" "buffer-view pdf2"


How can I get rid of the old bindings?

Cheers,

Stefano


Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
Dear Lyxers,

I am trying out the new advanced search with regexes, and I cannot figure
out how to use backreferences in the replace part of the dialog.

I am used to using \1 \2 etc. as back references to first match, second
match, etc., but if I try to replace dashes with en-dashes between numbers
with:

Find: ([0-9])-([0-9])

Replace: \1--\2


Lyx replaces the matched expressions with {\1--\2}.

There must be something quite basic I am overlooking.


Cheers,

Stefano


Re: Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
On Mon, Nov 29, 2010 at 8:30 AM, stefano franchi
wrote:

> Dear Lyxers,
>
> I am trying out the new advanced search with regexes, and I cannot figure
> out how to use backreferences in the replace part of the dialog.
>
> I am used to using \1 \2 etc. as back references to first match, second
> match, etc., but if I try to replace dashes with en-dashes between numbers
> with:
>
> Find: ([0-9])-([0-9])
>
> Replace: \1--\2
>
>
> Lyx replaces the matched expressions with {\1--\2}.
>
> There must be something quite basic I am overlooking.
>
>
>
Indeed there was. It turns out you need to type the backslash twice to
obtain a back-reference. Found out in the advanced search manual from the
wiki (which Lyx 2Beta does not load, however. I had to compile the last
development version to read it).

Cheers,

S.



> Cheers,
>
> Stefano
>


Re: Lyx 2: How to use regex back-references in the advanced search and replace dialog??

2010-11-29 Thread stefano franchi
On Mon, Nov 29, 2010 at 9:33 AM, stefano franchi
wrote:

>
>
> On Mon, Nov 29, 2010 at 8:30 AM, stefano franchi <
> stefano.fran...@gmail.com> wrote:
>
>> Dear Lyxers,
>>
>> I am trying out the new advanced search with regexes, and I cannot figure
>> out how to use backreferences in the replace part of the dialog.
>>
>> I am used to using \1 \2 etc. as back references to first match, second
>> match, etc., but if I try to replace dashes with en-dashes between numbers
>> with:
>>
>> Find: ([0-9])-([0-9])
>>
>> Replace: \1--\2
>>
>>
>> Lyx replaces the matched expressions with {\1--\2}.
>>
>> There must be something quite basic I am overlooking.
>>
>>
>>
> Indeed there was. It turns out you need to type the backslash twice to
> obtain a back-reference. Found out in the advanced search manual from the
> wiki (which Lyx 2Beta does not load, however. I had to compile the last
> development version to read it).
>
>
Weel, to put an end to this monologue: I was wrong. The last line of the
manual says: "The use of back references in the replaced text is not (yet)
implemented"
:-(


Re: need help with numeration in lyx

2010-12-02 Thread stefano franchi
Dave,

I do not quite understand your issue. What are the "1. blablabla" "2.
blublublu" etc? Sections? Items in a list? Perhaps you could send along a
minimal example. It'd be easier to help you.

Stefano

On Thu, Dec 2, 2010 at 4:13 PM, davy  wrote:

> hello,
>
> I am a German mother tongue speaker and hope you can understand my English.
>
> I have a document the following way...
>
> Chapter 1 blablabla
>
> 1 blablabla
> 2 blublublu
>
> Chapter 2 ljljljljljl
>
> 3 blobloblo
> 4 bliblibli
> 5 blebleble
>
> I need it though like this...
>
> Chapter 1 blablabla
>
> 1 blablabla
> 2 blublublu
>
> Chapter 2 ljljljljljl
>
> 1 blobloblo
> 2 bliblibli
> 3 blebleble
>
> can I do this in Lyx?
>
> Thanks a lot
>
> Davy
>
>


Fwd: Memoir's pagenotes fail with Lyx

2010-12-03 Thread stefano franchi
I am cross-posting a message I sent to  computer.text.tex, since the problem
affects LyX..
Lars Madsen's (memoir's maintainer) temporary fix is reported at the end.



 I think I have stumbled upon an incompatibility between memoir and
Lyx. Memoir uses the \pagenote command to produce endnotes. However,
pagenote fails when the text of the pagenote has a comment sign (i.e.
'%') before the closing brace. Which is exactly how Lyx produces
footnotes:
Minimal example:

\documentclass[a4paper,10pt]{memoir}
\usepackage[english]{babel}
\makepagenote
\begin{document}
1. This works\pagenote{This is a pagenote}
2 This fails\pagenote{This is a pagenote%
}
\printpagenotes
\end{document}

The second format is how Lyx exports to latex.

Any idea on how to solve the problem is welcome.


Cheers,

Stefano

--Lars Madsen's reply---

very interesting it is caused by \...@sanitize which is used when we write
the pagenote to file, so we end up with

\noteentry{2}{}{This is a pagenote% }{1}

which of course crashes everything when LaTeX attempts to run the .ent
file.

Short term fix

\makeatletter
\renewcommand*{\makepagenote}{%
   \newwri...@notefile
   \immediate\openo...@notefile=\jobname.ent
   \mempagenotestrue
   \def\pagenot...@bsphack\begingroup
% \...@sanitize
 \...@m@wrpnote}%
   \typeout{Writing note file \jobname.ent}%
   \let\makepageno...@empty}
\makeatother

\makepagenote


puzzled by the \noun command inside \index

2010-12-03 Thread stefano franchi
Dear Lyxers,

can anyone explain to me why the \noun command (small caps) produces this
funny latex code when used within a \idex command? Consider the following:

> This is a line of text with with a word in small caps: small-caps-word

shows up in the LateX source window as :

Latex 1: This is line of text with a word in small caps: \noun{word}


As it should.



Now try to put the last word of the previous line into a index command and
put it in small caps as well. This is the Latex output:


Latex 2: This is line of text with a word in small caps:
\noun{small-caps-word}\index{small-caps-w...@\noun{small-caps-word}}
^^^

whereas I would expect:


Latex 3: This is line of text with a word in small caps:
\noun{small-caps-word}\index{\noun{small-caps-word}}



Why is the underlined part there? I mean the --> small-caps-word@ . Is it
needed? Is it a bug? I have a feeling that it is messing up my index, even
though I do not get any warning (let alone errors).

Stefano


noun-command-test.lyx
Description: Binary data


Re: puzzled by the \noun command inside \index

2010-12-04 Thread stefano franchi
On Sat, Dec 4, 2010 at 1:46 AM, Jürgen Spitzmüller  wrote:

> stefano franchi wrote:
> > Latex 2: This is line of text with a word in small caps:
> > \noun{small-caps-word}\index{small-caps-w...@\noun{small-caps-word}}
> > ^^^
> >
> > whereas I would expect:
> >
> >
> > Latex 3: This is line of text with a word in small caps:
> > \noun{small-caps-word}\index{\noun{small-caps-word}}
> >
> >
> >
> > Why is the underlined part there? I mean the --> small-caps-word@ . Is
> it
> > needed? Is it a bug? I have a feeling that it is messing up my index,
> even
> > though I do not get any warning (let alone errors).
>
> It is needed to get your index entry sorted properly. If it would only be
> \index{\noun{small-caps-word}}, your entry would be sorted at "\" (and then
> "n"). The part before the "@" is a hint to the index processor where to
> sort
> the entry.
>
>

Thanks Jurgen, that makes sense. U nfortunately, it also means I have tio
look elsewhere to debug my index sorting issues...

Cheers,

Stefano

> HTH,
> Jürgen
>


unable to run biber on 1.6.8

2010-12-07 Thread stefano franchi
My Lyx installation has suddenly decided that it won't run biber anymore,
even though it is properly indicated in the preferences pane, biber is
accessible from the command line etc. In fact, I can export the file to .tex
and compile from the command line. But I cannot get biber to run from within
Lyx. Any idea on what may be wrong, and how I can find out more information
on the problem? I tried running lyx from console with -dbg 128 (latex), but
all I see is a line saying "Running BibTeX" and no biber output (which
should be rather abundant).

thanks,

Stefano


Re: LyX Memoir endnotes have form of footnotes

2010-12-08 Thread stefano franchi
George, Daron,

please note that memoir's \pagenote and \foottopagenote use in Lyx currently
suffers from two   problems:

1. a 2-paragraphs (or more) pagenote produced with Lyx 's footnote command
and \foottopagenote will fail and produce a Latex error. One paragraph notes
are okay.

2. similarly, a pagenote produced with Lyx's footnote command and
\foottopagenote cannot contain \index commands unless they are "protected"
(you need to insert a \protect command as ERT **immediately before** the
\index command).

Lars Madsen, the maintainer of memoir, is working on both issues (the first
one is trivial, apparently, the second one less so).

You may follow up the details of the copnversation we have been having on
computer.text.tex:

http://groups.google.com/group/comp.text.tex/browse_thread/thread/4793e5cfd369907f#

Cheers,

Stefano
On Wed, Dec 8, 2010 at 12:33 AM, george legge  wrote:

> Thank you Darren. The first version works perfectly to give what I expect
> to see for endnotes.
> The only addition I made was to add "\wide" before and "\endwide" after
> "\printpagenotes*".
> That allowed the endnotes to use the full width of text+notemargin.
>
> Incidentally, why the asterisk?
> With or without the asterisk, the notes get printed with their numbers.
> (and they won't appear in a T.O.C.).
>
> Thanks again -- you have been a great help.
>
> Cheers, George
>
>
>
>
> On Wed, Dec 8, 2010 at 1:00 AM, Daron Wilson wrote:
>
>> George,
>>
>> The LyX endnote module uses the LaTeX endnote package, and so it would
>> require some LaTeX hacking to change things much I think.  Memoir has its
>> own commands to put notes at the end(it calls them pagenotes so as not to
>> conflict with the endnotes package).  The memoir commands are not the same,
>> but the class does provide all the same functionality, and a little more I
>> believe.  I've been using memoir for  a short while, and so I have a little
>> familiarity there, and I tried to hack something up from things I found
>> before in the memoir manual.
>>
>> Caveats:
>> *I'm new to the whole LaTeX thing, so it's probably pretty ugly, and the
>> long way around, but it is working fine for me here (LyX 2.0 beta).
>> *this will only work with the memoir class because it is built on
>> class-specific commands.
>>
>> I wasn't sure exactly what result you wanted, but basically, what I've
>> done is made memoir convert footnotes to endnotes, and hang the paragraphs
>> off of the note numbers (I assume that is what you meant by "indented for
>> all lines").  There are two possible options (available by
>> commenting/uncommenting a few appropriate lines): either to hang the
>> paragraphs of of a superscript without a space, or to hang the paragraphs
>> off of normal text size numbers with a period and a space.
>>
>> You should be able to copy the code below straight into the preamble
>> section of your document settings, and then the only thing you have to do is
>> put the following into ERT in LyX at the end of each chapter:
>>
>> \clearpage
>> \printpagenotes*
>>
>>
>> The memoir package manual has a lot more detail on endnotes in section
>> 17.4, and some helpful background in chapter 12.
>>
>> Regards,
>>
>> Daron
>>
>>
>>
>>
>> =
>>
>> %% Depends on memoir
>> %   tell memoir to use endnotes
>> \makepagenote
>>
>> %   use Lyx footnote apparatus, but have memoir convert to endnotes
>> \foottopagenote
>>
>> %   setup memoir for notes at the end of chapters
>> \renewcommand*{\notedivision}{\section*{\notesname}}
>> \renewcommand*{\pagenotesubhead}[3]{}
>>
>> %   prepare a new length for the width of the note numbers;  to be
>> used later
>> \newlength{\notenumberlength}
>>
>> %   tell memoir to hang the paragraphs from the width of the note
>> numbers
>> \renewcommand{\prenoteinnotes}{\par\noindent\hangindent\notenumberlength}
>>
>> %   add some space between notes
>> \renewcommand{\postnoteinnotes}{\par\smallskip}
>>
>> %:> use for hanging notes from normal text size numbers
>>
>> %   tell LaTeX to reserve note number space wide enough for the number
>> 99. and a space, in normal font
>> \settowidth{\notenumberlength}{\normalfont 99.\space}
>>
>> %   tell memoir to typeset the note numbers as flushright in their own
>> box
>>
>> \renewcommand*{\notenuminnotes}[1]{\makebox[\notenumberlength][r]{#1.\space}}
>>
>>
>>
>> %:> use for hanging the notes from superscript numbers.
>> %   tell LaTeX to reserve enough space for 99 notes, superscript size
>> %\settowidth{\notenumberlength}{\textsuperscript{99}}
>>
>> %   tell memoir to typeset the note numbers as flushright
>> (rightjustified).
>>
>> %\renewcommand*{\notenuminnotes}[1]{\makebox[\notenumberlength][r]{\textsuperscript{#1}}}
>>
>> =
>>
>>
>>
>>
>>
>>
>>
>>
>> On 7 Dec 2010, at 07:43, george legge wrote:
>>
>> > I am using Book-memoir and all the endnotes appear in the form o

Re: unable to run biber on 1.6.8

2010-12-08 Thread stefano franchi
On Wed, Dec 8, 2010 at 7:52 AM, Richard Heck  wrote:

> On 12/08/2010 01:39 AM, stefano franchi wrote:
>
>> My Lyx installation has suddenly decided that it won't run biber anymore,
>> even though it is properly indicated in the preferences pane, biber is
>> accessible from the command line etc. In fact, I can export the file to .tex
>> and compile from the command line. But I cannot get biber to run from within
>> Lyx. Any idea on what may be wrong, and how I can find out more information
>> on the problem? I tried running lyx from console with -dbg 128 (latex), but
>> all I see is a line saying "Running BibTeX" and no biber output (which
>> should be rather abundant).
>>
>>  You could try -dbg all. Perhaps that will give more info.
>
>
I had tried that. But it's difficult to find anything useful in the mass of
debugging data it produces. What is Lyx supposed to say when it runs (or,
rather, were it to run) biber? Is there a specific Lyx module that is in
charge of it?

Stefano


OT: Checking the font size of text in pdf docs (in Linux)?

2010-12-14 Thread stefano franchi
Dear LyXers,

forgive the off-topic question, perhpas someone will know the answer. I
would like to check the exact font size of the pdf text produced by
LyX/Latex. I do believe you can do that with Adobe Acrobat Pro, which,
however, I do not own  (and it would not run on Linux, anyways). Does anyone
know of a Linux tool that could extract that info from a pdf file?

Thans,

Stefano


Re: OT: Checking the font size of text in pdf docs (in Linux)?

2010-12-15 Thread stefano franchi
Thanks Paul.

For future reference: I ended up installing a demo version of a Windows-only
Pdf editor (Infix Pdf Editor) in my VirtualBox environment. The demo is
actually perfectly functional---you cannot save without getting the pdf
files watermarked, but saving  was useless to me. You can select any text
snippet and obtain font information including typeface and size (size is
rounded up, which made for some interesting headscratching before I realized
it. I was converting a book from TeX point sizes to Adobe points (bp).) I
think that's similar to what you can do in Acrobat Pro, but I 've never
tried it.
And no---I did not intend to wite any Java code. I am too old for learning
how to write Java
Cheers,

Stefano





On Wed, Dec 15, 2010 at 5:35 PM, Paul Rubin  wrote:

> Not sure how much help this will be, but pdfedit can convert a PDF file to
> XML
> format.  Here's a sample font tag from the XML output of a PDF file:
>
>  origname="VYKOIK+NimbusRomNo9L-Regu"
> embeddedfontname="VYKOIK+NimbusRomNo9L-Regu" tag="F67" serif="false"
> symbolic="true" italic="false" bold="false" ascent="0.678" descent="-0.216"
> writemode="horizontal" fonttype="Type1 (8bit)">
>
> You can identify the font from the basename attribute, and weight/slant
> from
> obvious attributes.  Size is tricky.  The difference ascent-descent maps to
> the
> font size, but the conversion is not entirely obvious to me.
>
> I also think there are some Java code libraries out there that can parse
> XML
> files, including font size, but I don't know off-hand which they are (and
> wasn't
> sure in any case that you wanted to write Java code).
>
> /Paul
>
>


latest svn (rev 37005) does not compile because of errors in nl.po

2010-12-27 Thread stefano franchi
I just updated to the latest SVN version (37005) and lyx refuses to
compile because of duplicated definitions in the nl.po file.
Although I had never seen a .po file before, it seems that just
removing the duplicates fixes the problem, even though it  may have
mangled the Dutch translation.

Someone who knows about po files may want to take a look.

Cheers,

Stefano


Re: Problems with Biblatex newer than 0.8e

2010-12-28 Thread stefano franchi
On Tue, Dec 28, 2010 at 5:38 AM, Peter Baumgartner
 wrote:
> Hi Stefano,
>
> Sorry, your mail was trapped by my spam filter so that I discovered it only
> today.
>
> You are right! I did a wrong replacement of the files installing the new 1.0
> version manually! Thanks for helping me. How embarrassing!
>
> How to change to biber? I used bibtex8 as I could change the menu in
> LyX->Settings...->Outout->LaTeX->Bibliography Generation to bibtex8 and also
> I could change in the document settings to bibtex8. (I added
> "backend=bibtex8" to the options of biblatex)
>

Hi Peter,

are you using Lyx 1.6.8? If so, go to Tools>>Preferences, and select
Output>Latex on the left side.
You'll see many options in the right part of the panel. In the field
"BibTeX command" write 'biber' or (if you are using Unicode bib files)
'biber -u'
That will start biber instead of bibtex.

> But even if I change the option to "backend=biber" there is no predefined
> biber menu entry in LyX to choose from.
>
I think you are referring to Lyx 2, here. I am not sure which version
you are using. In the latest SVN (downlaoded on 12/27) it is one of
the options from the pop up list, alongside bibtex and bibtex8.

Of course, you need to call biblatex with the backend=biber option.


> As computer.text.tex concerns I thought this list is too special for me as
> I'm (still) not an LaTeX Expert. But you are right here too: There are some
> interesting posting even for me. But how to look for certain posting? I
> couldn't find a search field like in
> 
>
Search is not great, I agree. But if you access it through google
groups (groups.google.com) there is a search field. You need to be a
registered google user to use google groups, I believe (registration
is free, of course, but some people do not like that anyways).


> Thanks again for your help!

You're welcome,


Stefano


Re: How to use local package outside a texmf path?

2011-01-15 Thread stefano franchi
On Fri, Jan 14, 2011 at 3:13 AM, Matthieu Stigler <
matthieu.stig...@gmail.com> wrote:

> Hi
>
> Thanks to you Christopher, Paul and Richard for your answer! Sorry if I did
> not thank earlier, I had not realised (not e-mail notif) that you had
> replied! Below my answer
>
>  >  You have a space in the path to the file.  Does it work if you escape
>> the space?
>>
>> Or rename the file to eliminate it?  Linux sometimes doesn't play well
>> with filenames containing whitespace.
>>
>> Chris Menzel
>>
>
> Unfortunately, it still does not work even when the path contains no
> spaces. Also, it does not work neither with relative or absolute paths. Most
> surpsisingly, it does not work even when I put the .sty file in the temp
> file used by Lyx...
>
> Do you have any idea how I can use a package that is not in the texmf tree?
> I just tried adding this package:
>
> http://svn.r-project.org/R/trunk/share/texmf/tex/latex/Sweave.sty
>
> Do you have the same problem on your confugrations (mine is Lyx 1.5.6 on
> Ubuntu 10.4)?
>

Hi Mat,

I can offer no specific help, but I can confirm that loading packages
outside of the texmf tree works for me when you specify the absolute path. I
often use lines such as:
\usepackage{/home/stefano/Papers/The-paper-I-am-working-on/Package-file.sty}

I am on Ubuntu 10.10 with Texlive 2010 and Lyx 1.5.8.

Have you thought about putting your packages in the local branch of the
texmf tree, though? In my understanding,  ~/texmf is meant to be used for
personal packages, customized versions of standard packages, etc. I had the
habit of working with customized LaTeX code in the document´s directory, but
I then switched to the local branch of the texmf tree and I think it works
better. Less clutter, fewer possibilities of version conflicts, etcetera.

Cheer,

Stefano


>
> Thanks a lot
>
> Matthieu
>
>
>
> Le 30. 12. 10 13:59, Richard Heck a écrit :
>
>> On 12/30/2010 07:00 AM, mat wrote:
>>
>>  Hi
>>>
>>> I wish to use local latex class in my lyx document. Were it pure latex
>>> code, I could have written:
>>> \usepackage{./newclass}
>>>
>>> when the .sty is at the same level than the .tex. Now, I have some
>>> problems doing so with lyx, I tried adding this in the preamble, either with
>>> a relative path or an absolute one, but unfortunately it does unfortunately
>>> not work, I get an error message...
>>> Latex Error: File newclass.sty not found
>>>
>>> And below the error message, a quite cryptic: cannot \read from terminal
>>> in nonstop mode...
>>>
>>> Do you see what I do wrong? I checked the doc but did not find mention on
>>> how to use local packages, is there something? Do you see how I can solve
>>> the problem?
>>>
>>>  Why not just put the package somewhere LaTeX can find it?
>>
>> It should work with an absolute path.
>>
>> Richard
>>
>>
>


Auto-reload pdf files on Mac?

2011-01-31 Thread stefano franchi
Dear all,

I am helping a friend setting up Lyx on her Mac, and I cannot find a
way to set up either Acrobat Reader or Preview.app to automatically
reload the pdf upon update. I am no longer familiar with the Mac
environment, I am afraid. Two questions:

1. Do Acrobat Reader and Preview.app (latest versions for both)
support auto-reload?

2. If so, is there any specific trick to be used either in their
respective preference panels and/or in Lyx's preferences (in File
Viewer, I mean)?

Thanks for the help,

Stefano


Re: Auto-reload pdf files on Mac?

2011-01-31 Thread stefano franchi
On Mon, Jan 31, 2011 at 10:39 AM, BH  wrote:
> On Mon, Jan 31, 2011 at 11:17 AM, stefano franchi
>  wrote:
>> Dear all,
>>
>> I am helping a friend setting up Lyx on her Mac, and I cannot find a
>> way to set up either Acrobat Reader or Preview.app to automatically
>> reload the pdf upon update. I am no longer familiar with the Mac
>> environment, I am afraid. Two questions:
>>
>> 1. Do Acrobat Reader and Preview.app (latest versions for both)
>> support auto-reload?
>>
>> 2. If so, is there any specific trick to be used either in their
>> respective preference panels and/or in Lyx's preferences (in File
>> Viewer, I mean)?
>
> Preview.app, version 5.0.x (which comes with OS X 10.6.x) is able to
> reload pdfs and does that automatically. As I recall, earlier versions
> did not do that. However, even when Preview.app 5.0 reloads a pdf, it
> also resets the view to the first page, no matter what page you had it
> on previously.
>
Thanks Bennett,

I'll check the Preview.app version.


> I have no real experience with Adobe Reader.
>
> An excellent alternative to Preview.app is Skim.app. TeXShop.app also
> works (but takes some fiddling in preferences to set it up for an
> external editor).
>

Is this the app made by the same developers as BibDesk? That's an excellent app.

Cheers,

Stefano


Problems with biber

2011-02-04 Thread stefano franchi
I am trying to use biber/biblatex in Lyx 1.6.8 and encountering a
serious problem. Lyx does not seem to be able to scan the .bib file
with biber. Or it does not call biber at all.
In other words, I am getting the dreaded ´undefined references´.
The same file, exported to latex and compiled from the command line
works perfectly. Is anyone using biber? Would that person be willing
to share configuration details?

More details on my experience:

1. Lyx version 1.6.8 with TeXlive 2010 on Ubuntu Linux

2. biber -u is selected in Tools>>Preference>>Output>>Latex>>bibtex

3. biblatex is loaded with backend=biber in the preamble.

4. If I start lyx with -dbg latex from a command line I do not see any
mention of biber being called in the terminal. Instead, I see lines
like:
  LaTeX.cpp(335): Running BibTeX.
  LaTeX.cpp(396): Done.
This may or may not be relevant of course

5. My TeX engine is LuaTex

Any suggestion on how to track down the source of the problem is very welcome.


Cheers,

Stefano


Re: Problems with biber

2011-02-04 Thread stefano franchi
On Fri, Feb 4, 2011 at 12:05 PM, Jürgen Spitzmüller  wrote:
> stefano franchi wrote:
>> I am trying to use biber/biblatex in Lyx 1.6.8 and encountering a
>> serious problem. Lyx does not seem to be able to scan the .bib file
>> with biber. Or it does not call biber at all.
>> In other words, I am getting the dreaded ´undefined references´.
>> The same file, exported to latex and compiled from the command line
>> works perfectly. Is anyone using biber? Would that person be willing
>> to share configuration details?
>
> AFAICS this does not work. Biber uses its own aux file (the bcf file), and LyX
> does not yet scan for that.
>
> Please file an enhancement request on trac. It's probably not hard to
> implement.
>

Thanks Jürgen. Bug filed


S.


Luatex fails in Lyx 2 on inputenc preamble line

2011-02-09 Thread stefano franchi
I am (gingerly) moving on to Lyx 2.0 and I found an issue with LuaTex.

The selection of LuaTex as an output preference triggers the insertion
of the line

\usepackage[utf8]{luainputenc}(1)

in the preamble of the document. However, LuaTex itself chokes on the
last line of the luinputenc package, namely:

\ProcessOptions*

If I export the Lyx file to plain latex and comment out line (1)
above, LuaTex compilation is flawless (from the command line, I mean).

Could anyone help? LuaTex works fine in Lyx 1.6.X, with the language
option set to UTF8(Xetex). However, there seems no access the language
option any longer. I could not find it, at least.

My setup is Lyx2 from svn (r. 37564)
Linux Ubuntu 10.10, TexLive 2010
LuaTeX, Version beta-0.65.0-2010121316



Cheers,

Stefano


Re: Luatex fails in Lyx 2 on inputenc preamble line

2011-02-09 Thread stefano franchi
On Wed, Feb 9, 2011 at 11:29 AM, Jürgen Spitzmüller  wrote:
> stefano franchi wrote:
>> I am (gingerly) moving on to Lyx 2.0 and I found an issue with LuaTex.
>>
>> The selection of LuaTex as an output preference triggers the insertion
>> of the line
>>
>> \usepackage[utf8]{luainputenc}                    (1)
>>
>> in the preamble of the document. However, LuaTex itself chokes on the
>> last line of the luinputenc package, namely:
>>
>> \ProcessOptions*
>
> Can you provide an example file?
>
> Jürgen
>
Here it is. On my installation,  View>Pdf(LuaTex) fails with:

Undefined control sequence

\ProcessOptions*

Cheers,

Stefano


test.lyx
Description: Binary data


Re: Ubuntu 10.10 - Unsuccessful installation

2011-02-11 Thread stefano franchi
On Fri, Feb 11, 2011 at 5:19 AM, Liviu Andronic  wrote:
> On Fri, Feb 11, 2011 at 7:01 AM, Guido Gonni  wrote:


> Try
> ./configure --with-version-suffix=-svn --enable-build-type=release
>


I haven´t tried beta4, but later svn releases compile fine on my
Ubuntu 10.10 installation.
I do use the same configure options Liviu mentioned (see above).


Stefano


How to obtain a chapter-independent table reference?

2011-02-13 Thread stefano franchi
Dear all,

I have a document typeset with memoir that contains only one  table.
It occurs within chapter 3. Labeling and cross-referencing the table
produces a ¨Table 3.1¨ label, which looks strange because it is the
only table in the whole document. Is there a way to force a simpler
¨Table 1¨ label?   I could not find answers in the usual places.

Thanks,

Stefano


Re: How to obtain a chapter-independent table reference?

2011-02-16 Thread stefano franchi
Hi George,

I solved the problem,  with a bit of Latex code.

The excellent Latex faq on the issue:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=running-nos

lists several solutions. The simplest one works for me. Put the
following in the preamble:

\usepackage{chngcntr}
\counterwithout{table}{chapter}

(change {table} to {figure} if needed).


Cheers,

Stefano


On Wed, Feb 16, 2011 at 12:35 AM, george legge  wrote:
> Stefano does not appear to have had his question answered. I have a similar
> problem, in that I have a few ancestral trees scattered through a book
> (Memoir) with many figures. I do not want these trees to be listed with the
> figures; so I denoted them as tables. (Ideally, I would change "Table" to
> "Tree"). The main problem is that I want to have a List of Tables (or better
> Trees) just giving their page numbers but not numbering them by chapter.
> It seems my problems are similar to those of Stefano. What is the easiest
> way to handle these problems?
>
> Grateful for any help, thank you George Legge
>
>
> On Mon, Feb 14, 2011 at 9:17 AM, stefano franchi 
> wrote:
>>
>> Dear all,
>>
>> I have a document typeset with memoir that contains only one  table.
>> It occurs within chapter 3. Labeling and cross-referencing the table
>> produces a ¨Table 3.1¨ label, which looks strange because it is the
>> only table in the whole document. Is there a way to force a simpler
>> ¨Table 1¨ label?   I could not find answers in the usual places.
>>
>> Thanks,
>>
>> Stefano
>
>


Re: How! -- Index with Balanced Columns

2011-02-20 Thread stefano franchi
Hi Clive,

I am going to suggest (again) the package idxlayout. I am worried
about weird interaction between packages as much as you, but I found
out a good package is often safer that adding several lines of latex
code in the preamble (as you found out). Here is what I use for the
index in my latest book project, the options are self-explanatory:

\usepackage[indentunit=15 pt,%
itemlayout=relhang,%
justific=RaggedRight,%
columnsep=27 pt,
unbalanced=false,   this line produces the balanced columns
initsep=13pt plus 5pt minus 3pt]{idxlayout}


Cheers,

Stefano


lyx 2 export to html and biblatex?

2011-02-28 Thread stefano franchi
I an experimenting with the new HTML export feature of Lyx 2.0 and I
was wondering if there  is any support for biblatex.
In my first try, I got a rather nice html file, with anchors
corresponding to the \cite commands, but no bibliography section at
the end of the file for the anchors to tink to. In other words, all
the biblio links were dead.

Is there anything special I am supposed to do to to let Lyx create the
bibliography?

Best,

Stefano


Re: lyx 2 export to html and biblatex?

2011-02-28 Thread stefano franchi
On Mon, Feb 28, 2011 at 8:42 AM, Richard Heck  wrote:
> On 02/28/2011 09:19 AM, stefano franchi wrote:
>>
>> I an experimenting with the new HTML export feature of Lyx 2.0 and I
>> was wondering if there  is any support for biblatex.
>>
> The XHTML export does not use any external program at all, even BibTeX. The
> output is generated the same way the output in the citation dialog is
> generated.

Ah, I didn´t know that.

>
>> In my first try, I got a rather nice html file, with anchors
>> corresponding to the \cite commands, but no bibliography section at
>> the end of the file for the anchors to tink to. In other words, all
>> the biblio links were dead.
>>
>> Is there anything special I am supposed to do to to let Lyx create the
>> bibliography?
>>
>
> This should just work, assuming you have a bibliography inset at the end of
> the paper. If it's not, can you send me the file (and corresponding BibTeX
> file)?
>

I had the bibliography in a Lyx note and the refs to the files in the
preamble (in a biblatex command).

If I turn biblatex off and activate the the biobliography inset I get
the proper reference section with working links.

Is there any way to have some (minimal) control over the formatting of
the references?


Thanks,

Stefano


Re: lyx 2 export to html and biblatex?

2011-02-28 Thread stefano franchi
On Mon, Feb 28, 2011 at 10:37 AM, Richard Heck  wrote:
> On 02/28/2011 09:57 AM, stefano franchi wrote:
>>
>> Is there any way to have some (minimal) control over the formatting of
>> the references?
>>
> Yes. See section 5.3.12 for the details. It's a bit messy, I'm afraid. These
> are layout commands, so they can be put in a module or added to
> Document>Settings>Local Layout.

Thanks Richard, thatś what I was looking for.

I guess I should :

1.Paste the layout description from the file into the Local Layout pane,
2. validate it
3. Save it


I tried BUT...

I cannot get to 3. The layout validates, but the ¨Apply¨ button
remains greyed out.

Stefano



>
> Richard
>
>


Re: lyx 2 export to html and biblatex?

2011-02-28 Thread stefano franchi
Sorry, my fault, I hadn´t realized the layout option is a Document
option, of ocurse,  not a lyx preference. I was testing it on the Help
file, which of course is read-only. It works on my file.

I think I understand the syntax of the simple customization language
used in the  layout file. What I don´t understand is why, in the
reference section, I get both the key and the reference. Shouldn´t the
key be omitted? If I have a text like:

As Franchi said in his latest and greatest  piece (2011),

with a reference like:

@Article{Franchi2011,
   author = {Stefano Franchi},
title = {My best article},
   journal = {The journal},
   volume = {1},
   number = {1},
   pages = {200--220}}

  I would expect the reference  to look like

Franchi, Stefano, My best article, The journal, 1:1, pp. 200-220.

Instead the export gives something like:

[Franchi 2011] Franchi, Stefano, My best article, The journal (2011),
1:1, pp. 200-220.

How do I get rid of the key?

Thanks,

Stefano





On Mon, Feb 28, 2011 at 12:55 PM, Richard Heck  wrote:
> On 02/28/2011 01:30 PM, stefano franchi wrote:
>>
>> On Mon, Feb 28, 2011 at 10:37 AM, Richard Heck  wrote:
>>>
>>> On 02/28/2011 09:57 AM, stefano franchi wrote:
>>>>
>>>> Is there any way to have some (minimal) control over the formatting of
>>>> the references?
>>>>
>>> Yes. See section 5.3.12 for the details. It's a bit messy, I'm afraid.
>>> These
>>> are layout commands, so they can be put in a module or added to
>>> Document>Settings>Local Layout.
>>
>> Thanks Richard, thatś what I was looking for.
>>
>> I guess I should :
>>
>> 1.Paste the layout description from the file into the Local Layout pane,
>> 2. validate it
>> 3. Save it
>>
>>
>> I tried BUT...
>>
>> I cannot get to 3. The layout validates, but the ¨Apply¨ button
>> remains greyed out.
>>
> Hmm. It seems to work here. Other info?
>
> rh
>
>


Re: lyx 2 export to html and biblatex?

2011-02-28 Thread stefano franchi
>>
>> How do I get rid of the key?
>>
> At the moment, you can't, mostly because if you're using author-year, then
> we need to know which one is 2011a, 2011b, etc. But if you have an idea
> here, I'm all ears.


Richard,

is it possible to make key values accessible from within the layout
description? Since the 2011a or 2011b part of the key is constructed
by Lyx, I think, that would make it possible to write a standard
format, such as:

Franchi, Stefano, 2011a, etc.

(That would also means that the user could build an ¨improper¨
reference, of course).

Cheers,

Stefano
Stefano


XHTML format and ooffice?

2011-03-02 Thread stefano franchi
Dear All,

I love the new xhtml export! Great addition to Lyx. It should also make
exporting to Word relatively painless. Since I do not have access to MS
Word, though, I wonder if anyone has succeeded in going through open/Libre
office instead. On my system (Ubuntu 10.10. latest versions of both
oopen/libre), the few files I have tried are open as a plain ascii
files---text-editor style, with tags and everything. From what  read online,
this should not be the case. I am sure I am not seeing something blatantly
obvious and would appreciate any help.


Cheers,

Stefano


Re: XHTML format and ooffice?

2011-03-02 Thread stefano franchi
Well,

Abiword crashes on me when I try to open lyx´s xhtml files. If, as Richard
suggested, I remove the first line (the XML declaration), then ooffice opens
the file correctly, but puts some garbage on the first line. See pdf below.
I am enclosing a simple test file in lyx and the xhtml with the first line
removed that produced the garbage line. Can anyone try on their systems?

Cheers,

Stefano


On Wed, Mar 2, 2011 at 3:45 PM, Alan L Tyree  wrote:

> On Wed, 02 Mar 2011 16:37:52 -0500
> Richard Heck  wrote:
>
> > On 03/02/2011 03:38 PM, stefano franchi wrote:
> > > Dear All,
> > >
> > > I love the new xhtml export! Great addition to Lyx. It should also
> > > make exporting to Word relatively painless. Since I do not have
> > > access to MS Word, though, I wonder if anyone has succeeded in
> > > going through open/Libre office instead. On my system (Ubuntu
> > > 10.10. latest versions of both oopen/libre), the few files I have
> > > tried are open as a plain ascii files---text-editor style, with
> > > tags and everything. From what read online, this should not be the
> > > case. I am sure I am not seeing something blatantly obvious and
> > > would appreciate any help.
> > >
> > It looks as if OOo doesn't like the initial  line. If you
> > remove it, it will open OK.
>
> Or you can open them directly in Abiword - at least on Debian Squeeze.
>
> Cheers,
> Alan
>
> >
> > rh
> >
>
>
> --
> Alan L Tyreehttp://www2.austlii.edu.au/~alan
> Tel:  04 2748 6206
>
>


test.lyx
Description: Binary data


test.pdf
Description: Adobe PDF document


test.xhtml
Description: application/xhtml


Re: Biblatex Format => (Author Year: pp.)

2011-03-09 Thread stefano franchi
Short answer: look at the biblatex manual for ¨Citation styles¨, pick one
you like/need and use it as an option when you load biblatex.
For instance (in LyX 1.6.X, in the preamble):

\usepackage[citestyle=numeric]{biblatex}

Longer answer: look into the different styles that have been developed for
biblatex (MLA, philosophy, etcetera) if the standard citestyles do not fit
your needs. A search on CTAN for biblatex may give you an idea of what is
available. In this case, you need to be more careful, bacause sometimes
certain bibstyles need particular version of biblatex and/or some support
from the bibliographic database (i.e. they need certain fields, or expect to
find some values in standard fields). MLA use to have some of this problems,
for instance.

Cheers,

Stefano

On Tue, Mar 8, 2011 at 4:27 PM, Maurice wrote:

> Dear list,
>
> I recently switched to Biblatex (in combination with LyX) and everything is
> working really well.
>
> Atm, the short citations within my text look like:
>
> Lorem ipsum (Author, Year, pp.)
>
>
> How can I change that?
>
>
> Thanks in advance,
>
> Maurice


Re: LyX Promotion

2011-03-23 Thread stefano franchi
> On Wed, Mar 23, 2011 at 5:20 PM, Steve Litt 
> wrote:
>>
>> If I were going to enumerate the good things about
>> LyX, it would be something like this:
>>
>> * It typesets better and more consistently than its non-TeX based
>> competitors.
>> * It deletes unintentional double spaces and double newlines.
>> * It always calculates references, TOC and indices correctly, unlike
>> others.
>> * The black on tan is readable and soothing to the eyes for long workdays.
>> * Its simple native format invites programmatic document creation and
>> editing.
>> * It's free software, which protects your documents from vendor lock-in.
>> * It's an incredibly fast authoring environment.

I completely agree with Steve's points about LyX. In particular, I
think he is right in pointing out that "pure" LyX/LaTeX will almost
never produce a final "production quality" output. And by "production
quality" I mean a document typeset to the typographical standards used
and enforced by good publishing houses. LaTeX will almost get you
there---let's say 90% of the way---while Word/OO do not even try. But
that final 10% requires manual intervention and exact much more pain
than you'll ever encounter in Word/OO or other standard word
processors. I say this from my very recent experience as the co-editor
a 400+ book done with LyX and typeset to publisher's specs.

There are many reasons for this fact. One is font handling, which is
very poor in LaTeX. Things are getting better with LuaTeX/fonttspec,
but the process is still far from straightforward. A second problem is
page breaks, which is certainly not one of LaTeX's strengths "out of
the box." Not only page breaks need to be manually adjusted in the
final draft, getting correct grid-like layout with properly balanced
odd and even page is incredibly difficult, in my experience. A recent
article in TugBoat went into some details on this issue, and the
discussion continued on comp.text.tex. I don't know enough TeX to
really use the experimental algorithms that were proposed both in the
article and in the group, and my sense of the current state of the art
is that a better page-handling algorithm will have to wait for a
LuaTeX-based solution. There are other issues as well, some of which
Steve mentioned. And I am not even getting into the academia-only
problems of correctly typesetting  bibliography styles and index
layouts.

In short: LyX should not be promoted as the tool that gets you
"camera-ready" "production-quality" pdf files out of the box. It
won't. It will produce"near-production-quality" pdf that will need
quite a bit of tweaking and will require specialized skills in order
to be "perfect." Out of the box, LyX will produce better looking
documents  than your average word processor. In my experience, though,
most Word users do not really care, because what they get from their
word processor is good enough. In a sense, they are right: for
informal communication, a document typeset by Word is often
sufficient. And for formal communication, well, the professionals who
work for publishing houses and/or service bureaus  will take your Word
document and produce a professionally  typeset document with tools
like InDesign, Quark Xpress, etcetera.

(As some have pointed out, this situation may change as personally
produced e-books become a mass phenomenon. In my opinion, though, we
are not even close to that.)

On the other hand, LyX should be promoted, I think, as a more
productive environment. To put it crudely: LyX/LaTeX's weakness
(finessing formats is a royal pain) turns into a strength: you know
you do not want to mess with the format because it is a pain.
Therefore you focus on the content only. Thi sis obviously true for
long, complex documents, as many have pointed out. But it is also true
for shorter documents. I routinely write everything except letters in
LyX, from memos to lecture notes, to notes to myself. to articles,
etc. I am much more productive than I have ever been (and I have used
every single version of MS Word from 1.0/DOS forward, plus various
assorted alternatives).


As for Word/OO<-->LyX interoperability, that seems a chimera. How can
LyX ever be interoperable with Word, when even the LaTeX/LyX roundtrip
will not get you back the document you started from? It seems to me
that a more reasonable goal would be to have a Word-output function
that strips all formatting except the semantically relevant items
(emphasis, etc) and produce a clean Word file ready to be imported
into a typesetting program or to be sent to Word-only people. The
XHTML output filter in LyX 2.0 is almost there, I think.


The biggest hurdle to LyX's acceptance, I think, is that it is almost
impossible to cooperate with people not using it. Writing an article,
or a memo, or a report, grant application, with Word users is not
possible unless the LyX user takes the responsibility of maintaining a
LyX master file and inputting corrections and edits from pdf
annotations, manual edits on hard copy

Re: LyX Promotion

2011-03-24 Thread stefano franchi
On Thu, Mar 24, 2011 at 7:48 AM, Liviu Andronic  wrote:
> On Thu, Mar 24, 2011 at 12:01 PM, Rainer M Krug  wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On 24/03/11 11:29, Guenter Milde wrote:
>>> On 2011-03-23, Steve Litt wrote:
 On Wednesday 23 March 2011 09:54:29 you wrote:
>>>
> As for Word/OO<-->LyX interoperability, that seems a chimera. How can
> LyX ever be interoperable with Word, when even the LaTeX/LyX roundtrip
> will not get you back the document you started from? It seems to me
> that a more reasonable goal would be to have a Word-output function
> that strips all formatting except the semantically relevant items
> (emphasis, etc) and produce a clean Word file ready to be imported
> into a typesetting program or to be sent to Word-only people.
>>>
 Even better, in addition to exporting emphasis and noun, have it export the
 named but empty styles (environments and character styles) used in the 
 doc, so
 the word doc has the styles and the text marked up with those styles. Then 
 all
 that remains is to go in and modify those styles in MSWord or OOffice to
 produce the desired look. After all, modifying a style in Word is five
 minutes, not five hours.
>>>
 This is a wonderful idea. Now if we can only go the other direction...
>>>
>>> I think we should have "semantic" import/export filters in addition to
>>> "visual" ones for all relevant document formats.
>>
>> I absolutely agree - this would make life so much easier: you can write
>> in LyX, export sematically to doc / odt and do the formating in word /
>> openoffice / libreoffice if the editor / conference only provides a
>> specific word template.
>>
>> Definitely a priority.
>>
> This might go down well as a GSoC project, as it seems useful and
> "simple" enough. What do others think?
> Liviu

Excellent idea, I think. Perhaps Richard can comment on  how far the
XHTML filter is from the goal? My impression, as a user, is that it
comes pretty close to what the project would be producing.

Stefano


Suggestions on which revision control system to use with LyX?

2011-03-28 Thread stefano franchi
Dear all,

   I have decided to take the plunge and start to use a revision
control system for all or almost all my projects from here on.
However, I have no experience with any of the many options available
(i.e. RCS, SVN, Git?, etc.). In other words, I must  learn how to use
the system *and* learn how to use it from within LyX: I am a totally
blank slate, in other words, unhampered by previous knowledge. I
wonder if anyone could offer feedback on the systems they use?

I will use it only for LyX (and LaTeX), for individual or very
small-team projects (<5 people). My preferences are the ease to
integration with Lyx and easy repository maintenance (the criteria may
be contradictory, of course).  I took a look at the wiki pages and the
instructions on the help docs, but neither was very helpful at my
stage (of ignorance). They all assume you have already decided which
system to use, and provide instructions on how to use them from LyX.

On the other hand, all the non-LyX sources of information I found are
targeted at coders, typically working in large teams, with elaborate
technical discussions of several complex use cases that seem not
applicable for document-based repositories with individual- or small
team access. I may be wrong, of course.

Any suggestions is very welcome.

Cheers,

Stefano


Re: Editing Process

2011-04-02 Thread stefano franchi
>
>
> Save yourself from the tex -> lyx -> tex cycle, as it is known to be
> incomplete. So I see two ways forward (not counting the Word alternative)
>
> 1) Use your original LyX file. Always only modify the original LyX file,
> and use .tex at the last stage (export). For this method, you will first
> need to figure out what is different, between the .tex file you sent to the
> editors, and the .tex file you received from them. Identify those changes
> and make the same changes in your LyX file. Then identify the things they
> want you to change, and make the changes in your LyX file. When done, export
> to .tex and send the file.
>
>
Could not agree more. DO NOT rely on the integrity of the TeX<-->LyX (I have
been bitten before). My suggestion is to use the comments to the tex file
you get back from the editors as if they were annotations of a pdf file or
comments on a hard-copy version.  Look at them, but edit your LyX file
directly.
Or are the editors editing your text directly on the TeX source? (that would
be strange, though). In that case you would have to use a diff program (like
diff on linux, or the interface to diff in emacs, etc), to find out exactly
what changed between your submitted text and the editors' edited version

Stefano


Re: inheriting parent settings

2011-04-11 Thread stefano franchi
Jack,

as far as I know the master file's preamble overrides the child's
preamble, and therefore  all the settings in the preamble are
inherited from the parent. So, these for sure:

> \usepackage{apacite}
> \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1

and possibly these as well, if passed as options to the class

> the paper format
> the two-sided document setting

Cheers,

Stefano


biber processing in lyx 2

2011-04-25 Thread Stefano Franchi
Are biber and its auxiliary files  supposed to be correctly recognized
by lyx 2.0? I cannot get my version of LyX (rev. 38496) to process the
references, even though the same file exported to plain latex compiles
flawlessly from the command line. I see from the tracker that Jurgen
fixed this problem for the 1.6. branch  and for trunk as well (ticket
37581). But it does not work in my installation. I wonder if there is
any special configuration trick or if it is supposed to work out of
the box. The Latex log (from within LyX) shows that biber is never
run.


Cheers,

Stefano


Re: biber processing in lyx 2

2011-04-25 Thread Stefano Franchi
On Mon, Apr 25, 2011 at 4:11 PM, Richard Heck  wrote:
> On 04/25/2011 04:47 PM, Stefano Franchi wrote:

> Is there any sort of error message associated with this if you run from the
> terminal? or is biber just not being called at all?

No error message in the terminal. It looks like biber is never run. At
least, there is no mention of it in either the log or in the terminal
output, even with the -dbg latex option.

Notice that If I compile from command line (or, rather, from the Kile
editor), a subsequent Lyx run will compile the bibliography, most
likely because the aux. etc. files are still in the document's home
dir (even though I thought Lyx's "compilation dir" system would
prevent it from finding the aux files elsewhere).

stefano


Re: biber processing in lyx 2

2011-04-26 Thread stefano franchi
> can you start biber from the command line (i.e., biber -v)? If you run LyX
> from a terminal, are there any enlightening messages?
>

biber  -v

gives me

biber version: 0.6 (beta)

(not the latest version, I'll admit).

running LyX from terminal does not show anything useful. I use LuaTex
+ biblatex+ Biber. LuaTeX is correctly called, biblatex complains
about missing references and recommends to run biber, then I get the
usual end-of-the-Latex-run statistics.

Stefano


Re: biber processing in lyx 2

2011-04-26 Thread stefano franchi
On Tue, Apr 26, 2011 at 8:12 AM, Jürgen Spitzmüller  wrote:
> stefano franchi wrote:
>> biber  -v
>>
>> gives me
>>
>> biber version: 0.6 (beta)
>>
>> (not the latest version, I'll admit).
>
> What version of biblatex? Biblatex and biber releases are very closely
> connected, so you usually need to update biber when updating biblatex (and
> vice versa).

Yes, I know. I am running biblatex 0.9e
Notice that Lualatex+biber+biblatex  work fine (on the exported .tex
file) from the command line.


>
>> running LyX from terminal does not show anything useful. I use LuaTex
>> + biblatex+ Biber. LuaTeX is correctly called, biblatex complains
>> about missing references and recommends to run biber, then I get the
>> usual end-of-the-Latex-run statistics.
>
> So biber is not called at all? In the LaTeX log file, can you select "BibTeX"
> from the combo box at the top?

I cannot. The only choice is LaTeX


> Do you have actually selected biber as
> bibliography processor (in the prefs or document settings?)
>

I do have biber (with the -u unicode option) selected in the document settings



Stefano


Re: biber processing in lyx 2

2011-04-26 Thread stefano franchi
On Tue, Apr 26, 2011 at 8:53 AM, Jürgen Spitzmüller  wrote:
> stefano franchi wrote:
>> > What version of biblatex? Biblatex and biber releases are very closely
>> > connected, so you usually need to update biber when updating biblatex
>> > (and vice versa).
>>
>> Yes, I know. I am running biblatex 0.9e
>> Notice that Lualatex+biber+biblatex  work fine (on the exported .tex
>> file) from the command line.
>
> It is possible that you need to upgrade both. I cannot remember when biber
> switched to bcf files (from bbl files), but LyX's biber support relies on the
> use of these bcf files.
>

I don't know when biber switched from bbl (nor could I find out
googling it), but I can confirm that lyx does generate a.bcf file in
its temp dir, and it contains all the ref keys for my citations.

Still, it may be version related.


Stefano


Re: biber processing in lyx 2

2011-04-26 Thread stefano franchi
On Tue, Apr 26, 2011 at 9:37 AM, Jürgen Spitzmüller  wrote:
> stefano franchi wrote:
>> I don't know when biber switched from bbl (nor could I find out
>> googling it), but I can confirm that lyx does generate a.bcf file in
>> its temp dir, and it contains all the ref keys for my citations.
>
> How is this bcf file named? It ought to be named .bcf, where
>  stands for the name of your (LyX/LaTeX) document.
>

It is. My lyx file is

Talk-for-publication-proceedings.lyx


and in lyx's  temp dir, I see:

-rw-r--r-- 1 stefano stefano  1131 2011-04-26 11:23
/tmp/lyx_tmpdir.M27036/lyx_tmpbuf3/Talk-for-publication-proceedings.aux
-rw-r--r-- 1 stefano stefano  4636 2011-04-26 11:23
/tmp/lyx_tmpdir.M27036/lyx_tmpbuf3/Talk-for-publication-proceedings.bcf
-rw-r--r-- 1 stefano stefano 65521 2011-04-26 11:23
/tmp/lyx_tmpdir.M27036/lyx_tmpbuf3/Talk-for-publication-proceedings.log
-rw-r--r-- 1 stefano stefano   454 2011-04-26 09:18
/tmp/lyx_tmpdir.M27036/lyx_tmpbuf3/Talk-for-publication-proceedings.out
-rw-r--r-- 1 stefano stefano 63456 2011-04-26 11:23
/tmp/lyx_tmpdir.M27036/lyx_tmpbuf3/Talk-for-publication-proceedings.pdf
-rw-r--r-- 1 stefano stefano  2705 2011-04-26 11:23
/tmp/lyx_tmpdir.M27036/lyx_tmpbuf3/Talk-for-publication-proceedings.run.xml
-rw-r--r-- 1 stefano stefano 10794 2011-04-26 11:23
/tmp/lyx_tmpdir.M27036/lyx_tmpbuf3/Talk-for-publication-proceedings.tex
-rw-r--r-- 1 stefano stefano 13203 2011-04-26 11:23
/tmp/lyx_tmpdir.M27036/lyx_tmpbuf3/Talk-for-publication-proceedings.tex.dep


Stefano


Re: biber processing in lyx 2

2011-04-27 Thread stefano franchi
On Wed, Apr 27, 2011 at 11:06 AM, Jürgen Spitzmüller  wrote:
> stefano franchi wrote:
>> Patched as instructed, recompiled, and rerun. Log file is attached. I
>> don't know what was supposed to change, if anything. I didn't see any
>> difference. You guys may be able to spot something interesting.
>
> Please apply the attached patch. Report what LyX reports on the terminal for
> "biliography command" when you process your document.

I patched the file and recompiled. But there is no such line in the
output, either in the console or in the error log


Stefano


Re: biber processing in lyx 2

2011-04-28 Thread stefano franchi
On Thu, Apr 28, 2011 at 3:48 AM, Jürgen Spitzmüller  wrote:
> stefano franchi wrote:
>> enclosed: log of the run with -dbg depend when opening and compiling the
>> file latex log (copied from within Lyx's window)
>
> As suspected: the bcf file is not mentioned in the log file, so LyX is not
> aware of it and cannot track it.
>
> Now this might be a biblatex version issue. Would it be hard for you to update
> biblatex and biber?

Unfortunately I cannot upgrade biber/biblatex yet. I am using a
customized biblatex style for a big project, and I am afraid I may
break something (from past experiences with biblatex, I would say it
is certain an upgrade would break the style).

 I'll wait. I have got used to exporting to latex and compiling from
Kile at this point.

Cheers,

Stefano\


Re: biber processing in lyx 2

2011-04-28 Thread stefano franchi
On Thu, Apr 28, 2011 at 7:32 AM, Jürgen Spitzmüller  wrote:
> \typeout{File: \jobname.bcf}

Indeed it works!
In fact, just adding

AddToPreamble
\typeout{File: \jobname.bcf}
EndPreamble

to my biblatex module solves the problem across all my files.


Many thanks.

Stefano


Re: Need help getting APA citing working

2011-05-11 Thread stefano franchi
On Wed, May 11, 2011 at 5:04 AM, Julio Rojas  wrote:
> It works, only not it seems not to work with Natbib. From apacite's manual:
> I consider natbib as the de facto standard with which other packages should
> be compatible.
> Unfortunately, apacite is still not entirely compatible with natbib. The
> main incompatibility is that
> different citation commands are used, so that it is not possible to use the
> same document with
> natbib or apacite.
> Regards.

You may consider switching to biblatex (from standard bibtex) and
using the biblatex-apa style (http://www.ctan.org/pkg/biblatex-apa).
Biblatex is not completely integrated with Lyx yet, so you may have to
write a few commands in ERT (i.e. pure Latex), but it works fairly
well once you get the hang of it. Look at the wikipages to get started
(http://wiki.lyx.org/BibTeX/Biblatex). I switched to using biblatex  a
couple of years ago and have no regrets---it is much more flexible and
powerful than bibtex. Moreover, it is clearly the way forward for
managing bibliographies in latex/Lyx. It is actively developed, with
an increasing user base, etc. If you are just starting in Lyx/Latex,
it may be wise to learn how to use it. However, I have no experience
with biblatex-apa. You may want to look at the manual to see if it
fits your needs.

Cheers,

Stefano


Updating to new Texlive release

2011-09-15 Thread stefano franchi
Dear all,

I am sure this question has been asked before, but searching the
list and the wiki did not produce any result. (please redirect me to
the correct place if I am wrong. Or enlighten me and I'll a dd a wiki
page if none exists).

Question: How do convince an existing Lyx installation to use a newly
installed Texlive system?

My user case:

a. I used to have Texlive 2010 installed. I upgraded to TexLive 2011
(better late than never...). I set up paths, etcetera
post-installation. (I did NOT erase my old Texlive 2010 installation,
because I still need it for older projects.) Now every call to
tex/latex/luatex, etc from command line brings up files, packages,
and binaries from the new installation (e.g. from
/usr/local/texlive/2011/)

b. I started Lyx, reconfigured and restarted it. Nothing happens. Lyx
uses the old Texlive class files in /usr/local/texlive/2010/, as well
as the old binaries.


What am I missing?


Thanks,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Updating to new Texlive release

2011-09-15 Thread stefano franchi
On Thu, Sep 15, 2011 at 10:09 AM, Rich Shepard  wrote:
> On Thu, 15 Sep 2011, stefano franchi wrote:
>
>>   I am sure this question has been asked before, but searching the list
>> and the wiki did not produce any result. (please redirect me to the
>> correct place if I am wrong. Or enlighten me and I'll a dd a wiki page if
>> none exists).
>
> Stefano,
>
>  I don't have a generic answer but can write that I've had no problems
> upgrading TeXLive. I run Slackware and there's a SlackBuild script that
> correctly compiles everthing. Of course, one compressed source file is 1.2G
> in size so it takes a while to download, and the build also takes a long
> time, a lot of disk space (about 5G), and strsses the CPU.
>
>  But, when the package is built, I upgrade the installation, then invoke
> LyX to check. It fires right up and works without any involvement by me.

Hi Rich,

I am on Kubuntu, but did not use its Debian-derived package system to
upgrade Texlive. I went at it directly with the Texlive net installer.
Installation was fine. Indeed, I am now using lyx to write, exporting
the file to Latex, and then doing all my compilations either from the
command line or from Kile.
It is just Lyx that refuses to see the new installation. Perhaps I
should trash the relevant config files in my ~/.lyx folder? Can anyone
know which ones?


Best,

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Updating to new Texlive release

2011-09-15 Thread stefano franchi
Julio, David:


I do not have the ubuntu-provided install of texlive. However, I do
have 2 working texlive installs: the 2010 texlive and the 2011
texlive. I need to keep the older one around for a while until a book
I wrote with it is actually printed.
I have no problems from the command line. I just switch the paths
around in my .profile file. But I want to have texlive as the default,
so that all my new projects compile with the newer installation and
newer packages. Again, I can accomplush the task easily from the
command line, and pdflatex and companions work as expected.

It' s just Lyx that's giving me problems. A far I can tell, when I hit
reconfigure it finds the older 2010 installation and it stops there.
Is LyX using the PATH variable to search for executables? If so,
perhaps there is a config somewhere file that caches the results?

Cheers,

Stefano



On Thu, Sep 15, 2011 at 11:15 AM, David L. Johnson
 wrote:
> On 09/15/2011 11:33 AM, stefano franchi wrote:
>>
>> Hi Rich,
>>
>> I am on Kubuntu, but did not use its Debian-derived package system to
>> upgrade Texlive. I went at it directly with the Texlive net installer.
>> Installation was fine. Indeed, I am now using lyx to write, exporting
>> the file to Latex, and then doing all my compilations either from the
>> command line or from Kile.
>> It is just Lyx that refuses to see the new installation. Perhaps I
>> should trash the relevant config files in my ~/.lyx folder? Can anyone
>> know which ones?
>
> If you got rid of the distribution-provided texlive, so the new one is the
> only one on your system, lyx should be able to find it if you do Tools >
> Reconfigure.  At least, it'd complain if it couldn't find it.
>
> --
>
> David L. Johnson
>
> The motor car reflects our standard of living and gauges the speed of
> our present life. It long ago ran down Simple Living, and never halted
> to inquire about the prostrate figure which fell as its victim.
>                -- Warren G. Harding
>
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Updating to new Texlive release

2011-09-15 Thread stefano franchi
Hi Julien,


I can tell that Lyx is using the wrong pdflatex (and, most
importantly, the wrong classes), from the Latex log:

This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
(format=pdflatex 2011.1.4)  15 SEP 2011 09:14
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.


and from the Tex information dialog in the Tools menu (with full path enabled).

Why this is important to me: I routinely use biblatex, biber, and
lua(La)tex. They have changed considerably between TL2010 and TL2011,
and are not fully compatible.


On Thu, Sep 15, 2011 at 12:16 PM, Julien Rioux
 wrote:
> On 15/09/2011 7:05 PM, stefano franchi wrote:
>>
>> It' s just Lyx that's giving me problems. A far I can tell, when I hit
>> reconfigure it finds the older 2010 installation and it stops there.
>> Is LyX using the PATH variable to search for executables? If so,
>> perhaps there is a config somewhere file that caches the results?
>>
>
> There's a PATH setting in LyX' Preferences, you could check that.
>
> Otherwise, I'm curious how can you tell that LyX is using the wrong texlive?
>
>> Cheers,
>>
>> Stefano
>
>
> --
> Julien
>
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Updating to new Texlive release

2011-09-15 Thread stefano franchi
Problem solved :-)

Thanks to everyone, and particularly to Julio for pointing me in the
right direction. As he guessed, the problem was not with Lyx, but with
the environment that Kde works with. I always launch my applications
from Krunner (the little Kde app that offer a command line-like
mini-screen). After a lot of searching, I discovered that:

1. Krunner uses the PATH variables set by startkde (the script that
starts the KDE desktop)

2. startkde does two things, path-wise:
   a - first it uses the PATH settings it inherits from the process it
is run from;
   b - then it looks for executable (i.e scripts) files in kde's  /env
 directories (e.g. in $HOME/.kde4/env and other env dirs system wide)
   c - it runs any executable files it finds

3. To align the PATH variable in a bash shell (which I set in .profile
and .bash_profile) with krunner's, I wrote a one-line file which
exports  the correct path, called it profile.sh, made it executable,
and put it in a newly created  dir ~HOME/.kde4/env

after logging out and restarting kde, lyx now finds TL2011 when
launched  from a shell and from Krunner.


Thanks to everyone.


Cheers,

Stefano

On Thu, Sep 15, 2011 at 4:42 PM, Paul Rubin  wrote:
> In LyX, could Tools > Preferences > Paths > PATH prefix be pointing to the old
> version?
>
> Paul
>
>
>



-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Problems with biber

2011-09-19 Thread stefano franchi
On Thu, Jul 28, 2011 at 6:04 AM, G perillat  wrote:
> I think I have the same problem with lyx 2.0. Is the bug solved since Feb 4 ?
>
> Thank you


Are you still encountering the problem with biber? It should have been
fixed in Lyx 2.0.x and in 1.6.10

S.


-- 
______
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Updating to new Texlive release

2011-09-20 Thread stefano franchi
On Tue, Sep 20, 2011 at 5:34 AM, ehud.kap...@gmail.com
 wrote:
> Thanks, Stefano-- that was helpful.  Too bad Lyx requires me to click OK
> after reconfiguring.
> Where can I find a description of the options for the command line interface
> for Lyx?

Hi Ehud,

I don't know but I am cc'ing the lyx-users list. The developers may
know. I learned about the options from  lyx --help



Cheers,

Stefano
> Yours,
> Ehud
>
> On 9/18/2011 9:59 AM, stefano franchi wrote:
>
> Hi Ehud,
>
> have you tried issuing
>
>  lyx --execute reconfigure
>
> from the command line? I don't update  texlive very often (even though
> I should), so I never tried to put it in a script. But it should work.
> It may fire up Lyx, though, so I guess you would have to find a way to
> exit it from within the script.
>
> Cheers,
>
> Stefano
>
>
> On Sun, Sep 18, 2011 at 6:58 AM, ehud.kap...@gmail.com
>  wrote:
>
> Hi Stefano,
> This is unrelated to the issue you had, but you might be able to help:
> Every time I update/upgrade Texlive (from tlmgr) I have to reconfigure Lyx
> from its menus, close t and restart.  Is there a command line way of
> reconfiguring Lyx?  Is so, I could put it in a .bat or .sh file and update
> Texlive and reconfigure Lyx all at once.
> Thanks,
> Ehud Kaplan
>
> On 9/15/2011 7:24 PM, stefano franchi wrote:
>
> Problem solved :-)
>
> Thanks to everyone, and particularly to Julio for pointing me in the
> right direction. As he guessed, the problem was not with Lyx, but with
> the environment that Kde works with. I always launch my applications
> from Krunner (the little Kde app that offer a command line-like
> mini-screen). After a lot of searching, I discovered that:
>
> 1. Krunner uses the PATH variables set by startkde (the script that
> starts the KDE desktop)
>
> 2. startkde does two things, path-wise:
>a - first it uses the PATH settings it inherits from the process it
> is run from;
>b - then it looks for executable (i.e scripts) files in kde's  /env
>  directories (e.g. in $HOME/.kde4/env and other env dirs system wide)
>c - it runs any executable files it finds
>
> 3. To align the PATH variable in a bash shell (which I set in .profile
> and .bash_profile) with krunner's, I wrote a one-line file which
> exports  the correct path, called it profile.sh, made it executable,
> and put it in a newly created  dir ~HOME/.kde4/env
>
> after logging out and restarting kde, lyx now finds TL2011 when
> launched  from a shell and from Krunner.
>
>
> Thanks to everyone.
>
>
> Cheers,
>
> Stefano
>
> On Thu, Sep 15, 2011 at 4:42 PM, Paul Rubin  wrote:
>
> In LyX, could Tools > Preferences > Paths > PATH prefix be pointing to the
> old
> version?
>
> Paul
>
>
>
>
>
>
> --
> Ehud Kaplan, Ph.D.
> Jules and Doris Stein Research to Prevent Blindness Professor
> Director, Center of Excellence for Computational & System neuroscience,
> The Friedman Brain Institute, MSSM
> Director, The laboratory of Visual & Computational Neuroscience
> Depts. of Neuroscience, Ophthalmology, Chemical & Structural Biology
> The Mount Sinai School of Medicine
> One Gustave Levy Place
> New York, NY, 10029
>
>
>
>
> --
>
> Ehud Kaplan, Ph.D.
>
> Jules and Doris Stein Research to Prevent Blindness Professor
>
> Director, The laboratory of Visual & Computational Neuroscience
>
> Director, Center for Excellence in Computational & Systems Neuroscience
>
> Friedman Brain Institute
>
> Departments of Neuroscience, Ophthalmology, Structural & Chemical Biology,
>
> The Mount Sinai School of Medicine
>
> One Gustave Levy Place,
>
> NY, NY, 10029



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


XeTeX/LuaTeX no longer able to use system fonts

2011-09-29 Thread stefano franchi
Although this is not really a Lyx question, I have great faith in the
collective Latex wisdom of the list.

Problem:

LuaTeX or XeTeX are no longer able to find (some) system-installed fonts.
I haven't tried with all of them, for obvious reasons, but all the
fonts I normally use (esp Minion) are no longer found. The log says:

LaTeX Font Info:Try loading font information for T1+MinionPro(0) on input l
ine 93.
LaTeX Font Info:No file T1MinionPro(0).fd. on input line 93.

LaTeX Font Warning: Font shape `T1/MinionPro(0)/m/n' undefined
(Font)  using `T1/cmr/m/n' instead on input line 93.

and Computer Roman is used, as specified. I confess I have no clue
about the T1MinionPro(0).fd. file that it is missing. The font is
there, in the sense that is available from other applications and it
even shows up within LyX in the drop down menu.
It looks like one of the font loading packages used by XeTeX/LuaTeX is
missing it. I tried erasing the cache that LuaTeX keeps in my home
directory, thus forcing luaotfload to rebuild it. Nothing changed.

Any idea?
I am on a Kubuntu Jaunty machine running Texlive 2011, fully updated, Lyx 2.0.1

Cheers,

Stefano

-- 
______
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: XeTeX/LuaTeX no longer able to use system fonts

2011-09-29 Thread stefano franchi
Oh well, forget it.
My (embarassing) mistake: I reused an old file as template and there
was a call to fontenc in the preamble. Taking it out solved the
problem.


Cheers,

Stefano


On Thu, Sep 29, 2011 at 11:23 AM, stefano franchi
 wrote:
> Although this is not really a Lyx question, I have great faith in the
> collective Latex wisdom of the list.
>
> Problem:
>
> LuaTeX or XeTeX are no longer able to find (some) system-installed fonts.
> I haven't tried with all of them, for obvious reasons, but all the
> fonts I normally use (esp Minion) are no longer found. The log says:
>
> LaTeX Font Info:    Try loading font information for T1+MinionPro(0) on input 
> l
> ine 93.
> LaTeX Font Info:    No file T1MinionPro(0).fd. on input line 93.
>
> LaTeX Font Warning: Font shape `T1/MinionPro(0)/m/n' undefined
> (Font)              using `T1/cmr/m/n' instead on input line 93.
>
> and Computer Roman is used, as specified. I confess I have no clue
> about the T1MinionPro(0).fd. file that it is missing. The font is
> there, in the sense that is available from other applications and it
> even shows up within LyX in the drop down menu.
> It looks like one of the font loading packages used by XeTeX/LuaTeX is
> missing it. I tried erasing the cache that LuaTeX keeps in my home
> directory, thus forcing luaotfload to rebuild it. Nothing changed.
>
> Any idea?
> I am on a Kubuntu Jaunty machine running Texlive 2011, fully updated, Lyx 
> 2.0.1
>
> Cheers,
>
> Stefano
>
> --
> __
> Stefano Franchi
> Associate Research Professor
> Department of Hispanic Studies            Ph:   +1 (979) 845-2125
> Texas A&M University                          Fax:  +1 (979) 845-6421
> College Station, Texas, USA
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


"Animation" by overlaying graphics in Beamer/Lyx

2011-10-26 Thread stefano franchi
The Beamer manual suggest the following method for simple
"animation-like' effect:

You can use the usual “Insert Graphic” command to insert a graphic.
The commands \includegraphics, \pgfuseimage, and \pgfimage are
overlay-specification-aware in
beamer. If the overlay specification does not apply, the command has
no effect. This is useful for creating a
simple animation where each picture of the animation resides in a
different file:

\begin{frame}
\includegraphics<1>[height=2cm]{step1.pdf}%
\includegraphics<2>[height=2cm]{step2.pdf}%
\includegraphics<3>[height=2cm]{step3.pdf}%
\end{frame}


Question: Is there any way to have the equivalent of the three
\includegraphics statements in Lyx, or should I resign myself to
inserting an ERT box?



Cheers,

Stefano


-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: "Animation" by overlaying graphics in Beamer/Lyx

2011-10-26 Thread stefano franchi
Please, ignore the question.

It turns out I misunderstood the Beamer manual. The effect I wanted to
achieve requires a different approach: the mpxmulti package and the
\multiinclude command (in Beamer)


Sorry for the noise.

Cheers,

Stefano


On Wed, Oct 26, 2011 at 5:29 PM, stefano franchi
 wrote:
> The Beamer manual suggest the following method for simple
> "animation-like' effect:
>
> You can use the usual “Insert Graphic” command to insert a graphic.
> The commands \includegraphics, \pgfuseimage, and \pgfimage are
> overlay-specification-aware in
> beamer. If the overlay specification does not apply, the command has
> no effect. This is useful for creating a
> simple animation where each picture of the animation resides in a
> different file:
>
> \begin{frame}
> \includegraphics<1>[height=2cm]{step1.pdf}%
> \includegraphics<2>[height=2cm]{step2.pdf}%
> \includegraphics<3>[height=2cm]{step3.pdf}%
> \end{frame}
>
>
> Question: Is there any way to have the equivalent of the three
> \includegraphics statements in Lyx, or should I resign myself to
> inserting an ERT box?
>
>
>
> Cheers,
>
> Stefano
>
>
> --
> __
> Stefano Franchi
> Associate Research Professor
> Department of Hispanic Studies            Ph:   +1 (979) 845-2125
> Texas A&M University                          Fax:  +1 (979) 845-6421
> College Station, Texas, USA
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Anyone having luck with playing movies and sounds in Beamer?

2011-10-28 Thread stefano franchi
I am trying to insert  short clips and sound files in a Beamer
presentation with no luck at all.
The file compiles without any issue, but nothing corresponding to the
inserted files/clips  appears in the pdf file.
Is anyone having luck with this issue? The Beamer manual seems to
imply that movie/sound support in pdf is kind of iffy, as it depends
on pdf readers and perhaps on platform. I am on Linux, and have tried
both Acroread and Okular, with similar results. Any hint greatly
welcome.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Anyone having luck with playing movies and sounds in Beamer?

2011-10-28 Thread stefano franchi
On Fri, Oct 28, 2011 at 10:44 AM, Liviu Andronic  wrote:
> On Fri, Oct 28, 2011 at 5:27 PM, stefano franchi
>  wrote:
>> I am trying to insert  short clips and sound files in a Beamer
>> presentation with no luck at all.
>>
> How are you doing that? Have you tried the 'movie15' package?
>

Well,

I am new at this, so I am following the beamer manual step by step. It
suggests (chp 14.1) to use the multimedia package and the \movie
command, which seems (from its description) to be very flexible. I'll
take a look at the movie15 package, though, I was not aware of it.

Cheers,

Stefano
-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Anyone having luck with playing movies and sounds in Beamer?

2011-10-28 Thread stefano franchi
Thanks Jurgen,

that's what I feared. I'll try compiling my presentation on Linux and
playing it on Win/Mac to see if I am doing things correctly.


Cheers,

Stefano

On Fri, Oct 28, 2011 at 10:56 AM, Jürgen Spitzmüller  wrote:
> stefano franchi wrote:
>> I am trying to insert  short clips and sound files in a Beamer
>> presentation with no luck at all.
>> The file compiles without any issue, but nothing corresponding to the
>> inserted files/clips  appears in the pdf file.
>> Is anyone having luck with this issue? The Beamer manual seems to
>> imply that movie/sound support in pdf is kind of iffy, as it depends
>> on pdf readers and perhaps on platform. I am on Linux, and have tried
>> both Acroread and Okular, with similar results. Any hint greatly
>> welcome.
>
> I think none of the existing PDF readers on Linux can play embedded movies.
> Particularly, Adobe Reader for Linux does not provide a suitable media player,
> whereas such files usually work on Windows (and Mac).
>
> Jürgen
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Anyone having luck with playing movies and sounds in Beamer?

2011-10-28 Thread stefano franchi
On Fri, Oct 28, 2011 at 11:34 AM, Liviu Andronic  wrote:
> On Fri, Oct 28, 2011 at 5:56 PM, Jürgen Spitzmüller  wrote:
>> stefano franchi wrote:
>> I think none of the existing PDF readers on Linux can play embedded movies.
>> Particularly, Adobe Reader for Linux does not provide a suitable media 
>> player,
>> whereas such files usually work on Windows (and Mac).
>>
> Not a PDF reader proper, more of a PDF presenter, but Impressive [1]
> should be able to do that. It is cross-platform, and boasts sound and
> video playback capabilities via MPlayer [2]. Never tried it for video
> playback, though, and I'd be curious to hear of any successful
> experience.
>

Thanks for the hint Liviu, I'll try it out. In the meanwhile, I've
been trying to install Acrobat reader under Wine, with no success.
I'll move on to Icalbertompressive

> [1] http://alternativeto.net/software/impressive/
> [2] http://impressive.sourceforge.net/manual.php#req
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Anyone having luck with playing movies and sounds in Beamer?

2011-10-28 Thread stefano franchi
On Fri, Oct 28, 2011 at 11:34 AM, Liviu Andronic  wrote:

> Not a PDF reader proper, more of a PDF presenter, but Impressive [1]
> should be able to do that. It is cross-platform, and boasts sound and
> video playback capabilities via MPlayer [2]. Never tried it for video
> playback, though, and I'd be curious to hear of any successful
> experience.

Unfortunately not from me. I have exactly the same behavior as with
Reader and Okular, i.e. nothing at all.

Cheers,

Stefano


-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Anyone having luck with playing movies and sounds in Beamer?

2011-10-28 Thread stefano franchi
On Fri, Oct 28, 2011 at 4:47 PM, Liviu Andronic  wrote:
> On Fri, Oct 28, 2011 at 7:40 PM, stefano franchi
>  wrote:
>> On Fri, Oct 28, 2011 at 11:34 AM, Liviu Andronic  
>> wrote:
>>
>>> Not a PDF reader proper, more of a PDF presenter, but Impressive [1]
>>> should be able to do that. It is cross-platform, and boasts sound and
>>> video playback capabilities via MPlayer [2]. Never tried it for video
>>> playback, though, and I'd be curious to hear of any successful
>>> experience.
>>
>> Unfortunately not from me. I have exactly the same behavior as with
>> Reader and Okular, i.e. nothing at all.
>>
> Did you use Beamer's recommended method,

yes. \usepackage{multimedia} then \movie[various options]{movieclip} in ERT

>or 'movie15'?

I haven't tried this package yet

> Moreover, how
> did you install Impressive?

Through Synaptic (Ubuntu's package manager). I have Arch on my desktop
at home and will try that tomorrow.

>Are you sure that it was built with
> support for MPlayer?

No, I am not. How do I find that out? This is what I find in the
console when I launch impressive on the pdf file:

Welcome to Impressive version 0.10.2
/usr/bin/impressive:94: DeprecationWarning: the md5 module is
deprecated; use hashlib instead
  import random, getopt, os, types, re, codecs, tempfile, glob,
StringIO, md5, re
Detected screen size: 1280x800 pixels
OpenGL renderer: Mesa DRI Intel(R) 965GM GEM 20091221 2009Q4
Using GL_ARB_texture_non_power_of_two.
Note: error in file produced by pdftk, hyperlinks disabled.
  PDF parser error message: referenced non-existing PDF object
Background rendering finished, used 222.7 MiB of disk space.
Total presentation time: 0:52.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Beamer/Lyx question on uncovering diagrams step by step

2011-11-04 Thread stefano franchi
In Beamer, I would like  to build a slide that will:

a - uncover the different part of the  diagram step-by-step

b - uncover some text under it when the diagram is completely visible

I figured out how to accomplish one with the following latex code:

\setbeamercovered{invisible}
\multiinclude[<+>][format=pdf,start=1,end=3,graphics={height=2cm}]{Pdf-file-prefix}
\setbeamercovered{dynamic}

But I cannot figure out to preserve the diagram when I uncover the
text after it. For instance, I have 3 steps in the diagram above, and
I thought the following (regular lyx) would work:

• <4->first textual  item
• <5-> second textual item

Instead, what happens is that when item 4 (and later item 5)  are
shown, the diagram disappears.


Has anyone ever accomplished what I'm trying to do? I can send a
sample lyx file and sample pdf files is the previous description is
not clear enough.


Cheers,

Stefano


-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: lyx doesn't find any .cls files

2011-11-09 Thread stefano franchi
On Thu, Nov 3, 2011 at 5:41 PM, Pavel Sanda  wrote:
> bsquared wrote:
>> don't really want to jump through those hoiops right now.  I will
>> report this as a bug to ArchLinux LyX package maintainer.
>

>From another Arch Linux user: I had no problems installing the
currently available  lyx version from pacman (lyx 2.0.1).
I only ran into problems when trying to compile lyx from svn sources.
However, I do not use pacman's texlive distribution. I got used to
manage tex through its own package manager (tlmgr) and bypassed Arch's
own distribution.
So, in short: - pacman's lyx + texlive's own distribution = no
problems (in my case, at least, ymmv).
  - lyx from sources + texlive's own distribution =
need to get around python2/vs/python3 issue
Cheers,

Stefano


-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Spellchecking not working in Arch

2011-11-10 Thread stefano franchi
I guess I was overly optimistic yesterday, when I said that standard
(stable) Lyx works fine in Arch Linux. I just discovered that spell
checking does not work.
More precisely:

1. I can see Hunspell as a viable selection in the "spellchecking"
item of LyX's preferences.

2. I have hunspell installed, as well as 4 language dictionaries.

3. Continuous spellchecking does not work (i.e. no word is marked as
misspelled, no matter how badly it's spelt)

4. If I try to select Spell checking from the Tools menu (or F7), I
briefly see the spell checking window flashing by and nothing else
happens

5. I get no messages in the console, even if I start lyx with the -dbg all flag


In short, I am at a loss.

Suggestions?

Stefano


-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Beamer/Lyx question on uncovering diagrams step by step

2011-11-10 Thread stefano franchi
On Thu, Nov 10, 2011 at 11:23 AM, Paul A. Rubin  wrote:
> stefano franchi  gmail.com> writes:
>
>
>>\multiinclude[<+>][format=pdf,start=1,end=3,graphics={height=2cm}]
> {Pdf-file-prefix}
>
> [...]
>
>>
>> But I cannot figure out to preserve the diagram when I uncover the
>> text after it. For instance, I have 3 steps in the diagram above, and
>> I thought the following (regular lyx) would work:
>>
>> • <4->first textual  item
>> • <5-> second textual item
>>
>> Instead, what happens is that when item 4 (and later item 5)  are
>> shown, the diagram disappears.
>
> The specification <+> in multiinclude says to show each part only on one
> overlay. If there are three parts to the diagram, change that to <+,4-> which
> will show each part in isolation on one of the first three overlays, then all
> parts from the fourth overlay onward.
>

Hi Paul,

I tried your suggestion, but nothing changes. When the <+,4-> textual
item is shown, the diagram disappears as before.


> Paul
>
>
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Beamer/Lyx question on uncovering diagrams step by step

2011-11-10 Thread stefano franchi
On Thu, Nov 10, 2011 at 3:02 PM, Paul A. Rubin  wrote:
> Stefano,
>
> <+, 4-> is not used for the text items, it's used in multiinclude.  So:
>
> \multiinclude[<+,4->][...]
> ...
>
> •<4->first textual  item
>
> •<5->  second textual item
>


Ah! How silly of me. I get it now.

Thanks,

Stefano



>
> Paul
>
> On 11/10/2011 03:57 PM, stefano franchi wrote:
>>
>> On Thu, Nov 10, 2011 at 11:23 AM, Paul A. Rubin  wrote:
>>>
>>> stefano franchi  gmail.com>  writes:
>>>
>>>
>>>> \multiinclude[<+>][format=pdf,start=1,end=3,graphics={height=2cm}]
>>>
>>> {Pdf-file-prefix}
>>>
>>> [...]
>>>
>>>> But I cannot figure out to preserve the diagram when I uncover the
>>>> text after it. For instance, I have 3 steps in the diagram above, and
>>>> I thought the following (regular lyx) would work:
>>>>
>>>> •<4->first textual  item
>>>> •<5->  second textual item
>>>>
>>>> Instead, what happens is that when item 4 (and later item 5)  are
>>>> shown, the diagram disappears.
>>>
>>> The specification<+>  in multiinclude says to show each part only on one
>>> overlay. If there are three parts to the diagram, change that to<+,4->
>>>  which
>>> will show each part in isolation on one of the first three overlays, then
>>> all
>>> parts from the fourth overlay onward.
>>>
>> Hi Paul,
>>
>> I tried your suggestion, but nothing changes. When the<+,4->  textual
>> item is shown, the diagram disappears as before.
>>
>>
>>> Paul
>>>
>>>
>>>
>>
>>
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Spellchecking not working in Arch

2011-11-10 Thread stefano franchi
On Thu, Nov 10, 2011 at 4:06 PM, Stephan Witt  wrote:
> Am 10.11.2011 um 21:57 schrieb stefano franchi:
>
> Do you know the location of your dictionaries?
> Please try to enter the path name of them into the preferences.
>


Thanks Stephan and Pavel. I had forgotten about  the dictionary dir.
Everything works fine now. But did the field for hunspell's dir move
recently? I seem to remember it was located under the spell checker
preferences.
Anyways,

Everything is fine now.


Cheers,

Stefano

-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Spellchecking not working in Arch

2011-11-11 Thread stefano franchi
On Fri, Nov 11, 2011 at 12:36 AM, Stephan Witt  wrote:
> Am 10.11.2011 um 23:56 schrieb stefano franchi:
>
>> On Thu, Nov 10, 2011 at 4:06 PM, Stephan Witt  wrote:
>>> Am 10.11.2011 um 21:57 schrieb stefano franchi:

> No, AFAICR it's in the paths section all the time.
> BTW, what's the standard location on Arch linux?
>
Pretty standard, I guess:

/usr/share/hunspell/


Cheers,

Stefano

-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Lualatex and Lyx.

2011-11-15 Thread stefano franchi
Probably off-topic, but I can attest that Lualatex/Lyx works fine once
you take care of the TexLive distribution issues (as  Liviu rightly
stated). I completed a book with it just a couple of months ago and
was very happy with it. I work on Linux and my strategy was (and still
is) to get rid of the distribution's Texlive's packages and rely only
on TexLive's original installer (and its excellent package manager
tlmgr).



Cheers,

Stefano


On Tue, Nov 15, 2011 at 1:37 AM, Gour  wrote:
> On Thu, 3 Nov 2011 13:01:11 -0400
> john Culleton  wrote:
>
> Hello John,
>
>> I am recommending Lyx for beginners, even though I don't actually use
>> it myself.
>
> I did my mother's book in LyX some years ago and we are getting short
> of the 2nd part, so thinking about reprint (probably on demand).
>
> Considering that my good friend who did design of the cover left his
> body in the meantime and seeing you're doing your work in Scribus today,
> I'd like to hear about your reasons to switch?
>
> You can PM as well if you believe it too much OT for here.
>
>
> Sincerely,
> Gour
>
> --
> In the material world, one who is unaffected by whatever good
> or evil he may obtain, neither praising it nor despising it,
> is firmly fixed in perfect knowledge.
>
> http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Lualatex and Lyx.

2011-11-15 Thread stefano franchi
On Tue, Nov 15, 2011 at 11:19 AM, Liviu Andronic  wrote:
> Hey Stefano
>
>
> On Tue, Nov 15, 2011 at 6:13 PM, stefano franchi
>  wrote:
>> Probably off-topic, but I can attest that Lualatex/Lyx works fine once
>> you take care of the TexLive distribution issues (as  Liviu rightly
>> stated). I completed a book with it just a couple of months ago and
>> was very happy with it. I work on Linux and my strategy was (and still
>> is) to get rid of the distribution's Texlive's packages and rely only
>> on TexLive's original installer (and its excellent package manager
>> tlmgr).
>>
> Could you point to some specific instructions? I've always wanted to
> try this, but never quite made the first step. I may first test it in
> a Virtual Machine.
>

Hi Liviu,

there isn't much to my strategy. I was on Kubuntu when I started
working on the book and what I did was simply:

1. Uninstall all the tex-related packages from the system via synaptic

2. Download the texlive installer from tug:
http://tug.org/texlive/acquire-netinstall.html

3. Install a full distribution

4. I had to play around a bit with system paths to instruct linux to
get to the tex binaries, man pages, etc.  (I just followed the
instructions provided in texlive installation instructions)

5. Since Lyx 2.0 was not out yet when the project started (although it
came out toward the end of its life), I stuck with Lyx 1.6.7 and
followed the instructions to use LuaTeX from LyX's wiki.


I had some problems with biblatex/biber (which I also used instead of
bibtex) but no problems with Lualatex.

Cheers,

Stefano



> Liviu
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Lualatex and Lyx.

2011-11-16 Thread stefano franchi
On Tue, Nov 15, 2011 at 12:00 PM, Rob Oakes  wrote:
>
> On Nov 15, 2011, at 10:51 AM, stefano franchi wrote:

>> I had some problems with biblatex/biber (which I also used instead of
>> bibtex) but no problems with Lualatex.
>
> I'd be really interested in hearing about using biber and biblatex. I'm 
> really interested in moving away from bibtex to something else, and I've 
> heard really good things.
>

Hi Rob,

that would make for a very long post---or a very short one: I
struggled quite a bit with biblatex initially, but LyX had nothing to
do with it. I find biblatex to be a truly exceptional and incredibly
flexible package that finally brings writing Humanities writing in
Latex up to the task.  Very sophisticated references can finally be
managed quite naturally(1) and the addition of biber makes
multilingual references/Unicode a problem of the past. However the
flexibility comes at the usual price: steep learning curve. I had to
modify the citation and reference styles to suit my publisher's needs
and it was a painful process. On the other hand, I did eventually
succeed with the help of biblatex's excellent documentation. With
BibTex, I would not have even tried.
The added complication, in my case, was that Biblatex was a fast
moving target when my project began. I started out at version 0.7 and
ended when it was at 1.3, I believe. I decided quickly not to chase
after it, and I settled on 0.9 until I was done. However, that meant
that my whole texlive installation was stuck with it, which was
unfortunate. Biblatex seems to have settled down somewhat, however.

Final comment: I am glad I jumped ship to biblatex/biber. Vast
improvement over bibtex (and its Humanities-oriented hacks like
JuraBib, which I was using before jumping ship). It handles complex
references very well and it can be customized with some effort. Steep
learning curve, for me, at the beginning.
For me,  Lyx+lualatex+memoir+biber/biblatex is the winning combination
for Humanities writing.



Cheers,

Stefano

(1) Consider a reference to th following text, which I had to deal
with multiple times: the introduction to an essay by Godel published
in the 3rd volume of his collected works, which has individual volume
editors as well as general editors. There are four authors involved:
introduction's, article's, volume's, and works', plus four related
titles, multiple dates, etc. The situation, while extreme, is not
uncommon.



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: help with the date in each frontpage

2011-11-22 Thread stefano franchi
Gian Maria,

have you tried  adding \date{} in the preamble of your master
document? That should work.

Cheers,

Stefano

2011/11/22 Gian Maria Niccolò Benucci :
>
> Hi there,
>
> I am not able to eliminate the date in each of the page of my document. I am
> using classicthesis style
> I tried switching the option off the option in:
> document>settings>Document Class>suppress the default date on the front
> page...
>
> but nothing happened!
>
> May I have to witch it off in the mater documet or also in each of child
> ones?
> Thanks a lot,
>
> G.
>
>
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Another lyx-produced book

2011-11-30 Thread stefano franchi
Dear all,

in the wake of Richard's announcement, here is another one. The book "A
Search for a Theory of Cognition," which I edited with Francesco Bianchini,
has just come out with Rodopi:
http://www.amazon.com/Search-Theory-Cognition-Mechanisms-Inquiry/dp/9042034270
.

I produced book entirely in Lyx, to Rodopi's specs. They printed it from
the pdf file. I used memoir as base class, and customized it. References
were done with biblatex (+biber), with a customized style. Customizing the
memoir and biblatex took quite a bit of effort, since Rodopi's specs were
for Microsoft Word. I ended up buyiing myself a typographer ruler and
working from an actual book in the VIBS series.

Lyx is mentioned in the acknowledgments. Unfortunately the acknowledgments
page is not among those available on Amazon's free preview.


Cheers,

Stefano

-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Another lyx-produced book

2011-11-30 Thread stefano franchi
On Wed, Nov 30, 2011 at 3:41 PM, Richard Heck  wrote:

> **
> On 11/30/2011 12:44 PM, stefano franchi wrote:
>
> Dear all,
>
>  in the wake of Richard's announcement, here is another one. The book "A
> Search for a Theory of Cognition," which I edited with Francesco Bianchini,
> has just come out with Rodopi:
> http://www.amazon.com/Search-Theory-Cognition-Mechanisms-Inquiry/dp/9042034270
> .
>
>  Congratulations!
>

And to you as well!


>
>
>  I produced book entirely in Lyx, to Rodopi's specs. They printed it from
> the pdf file. I used memoir as base class, and customized it. References
> were done with biblatex (+biber), with a customized style. Customizing the
> memoir and biblatex took quite a bit of effort, since Rodopi's specs were
> for Microsoft Word. I ended up buyiing myself a typographer ruler and
> working from an actual book in the VIBS series.
>
>  I had to do something similar, though OUP sent me their design
> specification, so I didn't actually have to measure things. I DID have to
> hold up pages printed from my implementation to a light, with one printed
> from their specification manual behind it, to see if they lined up
> correctly.
>
>
Boy, do I know that drill! I am lucky that it never rains in Texas, as I
needed all the sunlight I could get. For a few days I had several pages of
the actual book I was using as a  design reference permanently taped to my
kitchen's windows, so I could easily check my latex output against them.



Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Another lyx-produced book

2011-12-01 Thread stefano franchi
On Thu, Dec 1, 2011 at 2:21 AM, Liviu Andronic wrote:

> On Wed, Nov 30, 2011 at 11:21 PM, stefano franchi
>  wrote:
> > Boy, do I know that drill! I am lucky that it never rains in Texas, as I
> > needed all the sunlight I could get. For a few days I had several pages
> of
> > the actual book I was using as a  design reference permanently taped to
> my
> > kitchen's windows, so I could easily check my latex output against them.
> >
> I'm getting curious about this. Did you actually have to tear down the
> pages of a book to obtain the proper measurements? Wouldn't a simple
> inquiry to the publisher help?
>
> Liviu
>

Ahh Liviu, you wan the dirty details...

Here is a very short version:

The book is published by Rodopi in their VIBS series. This is philosophy
series (VIBS stands for Value Inquiry Book Series) created and almost
completely managed by a US philosophy professor, not by Rodopi. All aspects
of book production, from stylesheets to book design came in the form of a
thick set of Word documents and with Word instructions. That's where the
buck stopped, so to speak.
I first tried to replicate the effects of Word commands in latex, and I
quickly realized:
1. it was extremely time-consuming, because I had no clear idea of the
expected result. For instance, I could not get a clear understanding of how
many lines per page I was supposed to have. I only had fixed numbers for
the textblock size and a font size. Since the textblock height was not a
integer multiple of (what I took to be) the standard leading for that point
size, the number of lines was fractional and tended to vary from page to
page.
2. It was unreliable (I could not always get the same results on different
runs), even when I substituted my guesses when the data was insufficient
3. The resulting typography was less than satisfactory.

So here is what I did: I got a bunch of VIBS from my library, picked the
one I thought was the best laid-out, bought a copy, tore off pages, and
started to measure everything.
Then I replicated the design in memoir (whose author, Peter Wilson should
enter the (La)TeX Hall of Fame, especially for the beautifully
comprehensive documetation. The current maintaner, Lars Madsen, was been
very helpful too).
Then I measured again using the window trick...

It was fun.


Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA


Enumerate in table with no additional packages?

2011-12-01 Thread stefano franchi
Dear All:

Is it possible to enumerate the rows of a table, without using external
packages? I vaguely remember seeing a solution to this problem, perhaps in
a Latex list or perhaps here, but I cannot find it anymore.

Thanks in advance,

S.



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Yet another book using LyX

2011-12-02 Thread stefano franchi
> From what I hear, the average "properly published" nonfiction book
> sells about 3K copies. At that sales quantity, the author fails to

Steve,

you may want to qualify that. The average academic book sells probably
less than 1K, often less than 500 copies. Which is one of the reasons
why the book I just published costs $120: it is targeted at libraries
only.

No one gets rich in academia. In fact we barely survive.


Cheers,

Stefano
-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


svmult.cls layout problem?

2011-12-04 Thread stefano franchi
Has anyone used the layout for the svmult.cls class recently? (It is
the Springer class for edited volume)
The layout seems to have 2 problems (the class works fine in pure latex):

It does not recognize the \abstract* environment and it inserts the
\maketitle command too early (before \author)

Before I clumsily try to fix the problem, is is this a known problem
and/or is there anything I should know about it?


Cheers,

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Changing the layout for chapter

2011-12-07 Thread stefano franchi
The layout file for the memoir class shows chapter headings as:

"Chapter" {Chapter Number} {newline}
Chapter Title


That is fine when memoir is used to typeset books, but it's very
annoying when used for articles (which it's perfectly capable of
doing).

So I want to change the layout accordingly. But I can't figure out
where, in the standard definition of the Chapter Style from
stdsections.inc, is the {newline} inserted:


Style Chapter
MarginStatic
Category  Section
LabelString   "Chapter \thechapter"
LabelStringAppendix   "Appendix \thechapter"
LabelType Counter
LabelCounter  chapter
TocLevel  0
LatexType Command
LatexName chapter
NeedProtect   1
NextNoIndent  1
ParSkip   0.4
TopSep4
BottomSep 0.8
ParSep0.8
Align Block
OptionalArgs  1
Font
  Series  Bold
  SizeHuge
EndFont
HTMLTag   h1
End

I thought removing the LabelString line would be enough. But it isn't:
it just removes the "Chapter" Label

Help is appreciated. Pointers to the proper  customization manual
section are appreciated too. I could not find the information there.



Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Changing the layout for chapter

2011-12-07 Thread stefano franchi
On Wed, Dec 7, 2011 at 2:04 PM, Richard Heck  wrote:
> On 12/07/2011 12:50 PM, stefano franchi wrote:
>> The layout file for the memoir class shows chapter headings as:
>>
>> "Chapter" {Chapter Number} {newline}
>> Chapter Title
>>
>>
>> That is fine when memoir is used to typeset books, but it's very
>> annoying when used for articles (which it's perfectly capable of
>> doing).
>>
>> So I want to change the layout accordingly. But I can't figure out
>> where, in the standard definition of the Chapter Style from
>> stdsections.inc, is the {newline} inserted:
>>
> Unfortunately, this is hardcoded into LyX and not layout customizable.
> No doubt it should be. Please feel free to file an enhancement bug.
>
> Of course, the appearance in the PDF can be changed
>

Ah, that's why I could not find it in the docs. I'll file an
enhancement bug then.

I can't be the only Lyx user who is discovering how convenient it is
to work with the memoir class for both books and articles.


Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Changing the layout for chapter

2011-12-08 Thread stefano franchi
On Thu, Dec 8, 2011 at 4:19 AM, Guenter Milde  wrote:
> On 2011-12-07, stefano franchi wrote:
>> On Wed, Dec 7, 2011 at 2:04 PM, Richard Heck  wrote:
>>> On 12/07/2011 12:50 PM, stefano franchi wrote:
>>>> The layout file for the memoir class shows chapter headings as:
>
> How about a "Memoir (article)" or "Article (memoir)" layout that does not
> use a "chapter" style but starts the sectioning with "Section" (like
> every other article class)?
>
> (If required by the memoir class, it is still possible that the
> "Section" style uses "LatexName chapter", "Subsection" uses "LatexName
> section" and so forth.)
>

Ah, I hadn't thought of that. I would still prefer to have a single
layout file for both books and articles, but tricking Lyx by switching
section with chapter (and subsection with section, etc) it's a great
idea. At least for the immediate future.


Thanks,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Enumerate in table with no additional packages?

2011-12-11 Thread stefano franchi
On Sat, Dec 10, 2011 at 2:54 PM, Paul A. Rubin  wrote:
> stefano franchi  gmail.com> writes:
>
>
>>
>> Is it possible to enumerate the rows of a table, without using external
> packages? I vaguely remember seeing a solution to this problem, perhaps in a
> Latex list or perhaps here, but I cannot find it anymore.
>
> It can be done with ERT, if that's what you want. Add the following to the
> document preamble:
>
> \newcounter{trow}
> \newcommand{\firstrow}{\setcounter{trow}{1}\arabic{trow}.}
> \newcommand{\nextrow}{\addtocounter{trow}{1}\arabic{trow}.}

Thanks Paul,

that's neat. Exactly what i had in mind (except I didn't know how to do it).

Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Bibliography inside the main LaTeX file

2011-12-26 Thread stefano franchi
On Mon, Dec 26, 2011 at 9:39 AM, Paul Smith  wrote:
> Dear All,
>
> I have just a paper accepted for publication, and the journal is now
> asking me for providing the bibliography inside the main LaTeX file
> (not in the .bib file). How can I accomplish that? I have used BibTeX
> to produce the bibliography.
>
> Thanks in advance,

I haven't done this in a long time, but the standard way to include
the bibliographic references in the main latex file was to use the
\bibitem command.
Since bibtex produces just such commands from a bib file and a bst
style file, you could just look at the .bbl file that bibtex produces
in its run. All the bibitem references should be there. Then it is
just a matter of pasting them into your latex file in place of the
\bibliography comand.

You may find more info if you google for "bibtex bibitem conversion"

Cheers,

Stefano

>
> Paul



-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


UserDir Ui settings NOT overriding LyXDir Ui setting

2012-01-02 Thread stefano franchi
Since Lyx 2.0  I am having troubles customizing LyX Ui. In particular,
I cannot get LyX to let the Ui preferences set in my .lyx/ui dir
override the system-wide settings (which are in /usr/share/lyx/ui on
my archlinux box). My temporary workaround is to edit the system files
themselves, but that's obviously a nuisance, 'cause they'll be
overwritten on updates.

Is anyone else experiencing this problem?


Cheers, and Happy New Year to everyone.


Stefano
-- 
______
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: UserDir Ui settings NOT overriding LyXDir Ui setting

2012-01-03 Thread stefano franchi
Richard: I tried erasing the ~/.lyx dir, but nothing changes, same
behavior. I forgot to mention that the default ui I get is with three
toolbars (Standard, View/Update, Extra), two of which, however, are
almost completely hidden (see picture below). So it looks like it's
some configuration problem, perhaps on Archlinux only.

Guenter: I am not sure about what you mean by "UI flavour." Is it the
choice of "Default" "Classic," and "Oxygen" in Tools>>Preferences>>
Look and Feel>> User interface? I tried selecting either classic or
oxygen but nothing seems to change.

Cheers,

Stefano

On Tue, Jan 3, 2012 at 2:14 AM, Guenter Milde  wrote:
> On 2012-01-02, Richard Heck wrote:
>> On 01/02/2012 02:18 PM, stefano franchi wrote:
>>> Since Lyx 2.0  I am having troubles customizing LyX Ui. In particular,
>>> I cannot get LyX to let the Ui preferences set in my .lyx/ui dir
>>> override the system-wide settings (which are in /usr/share/lyx/ui on
>>> my archlinux box). My temporary workaround is to edit the system files
>>> themselves, but that's obviously a nuisance, 'cause they'll be
>>> overwritten on updates.
>
>>> Is anyone else experiencing this problem?
>> I've just tried copying stdtoolbars.inc to ~/.lyx/ui/ and making a small
>> change (commenting out one of the items). It worked fine.
>
>> I'd try starting with clean files, if you haven't already.
>
> Could it have to do with the choice of ui "flavour" (classic, modern, ...)
> or interface language?
>
> Günter
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA
<>

Lyx function allowing selection of layouts from minibuffer?

2012-01-04 Thread stefano franchi
Dear All,

I lost all my bindings while trying to figure out why my local
toolbars parameters are not followed and now I can't remember which
function allows you to select an environment (layout) from the
minibuffer. I had it bound to M-p, so that the selection of the
standard env would be M-p s, of the itemize M-P i, etc. I looked both
in the wiki and in the docs, but cannot figure out the proper
function. Most popular advice suggests to use the drop down list (with
shortcuts), which I don't particularly like.

Help is appreciated.


Best,

Stefano

-- 
______
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Lyx function allowing selection of layouts from minibuffer?

2012-01-04 Thread stefano franchi
On Wed, Jan 4, 2012 at 10:16 AM, stefano franchi
 wrote:
> Dear All,
>
> I lost all my bindings while trying to figure out why my local
> toolbars parameters are not followed and now I can't remember which
> function allows you to select an environment (layout) from the
> minibuffer. I had it bound to M-p, so that the selection of the
> standard env would be M-p s, of the itemize M-P i, etc. I looked both
> in the wiki and in the docs, but cannot figure out the proper
> function. Most popular advice suggests to use the drop down list (with
> shortcuts), which I don't particularly like.
>

Well, my bad. There is no such function. The behavior I was expecting
is due to the explicit and quite extensive list of layout bindings
found in LYXDIR/bind/menus.bind

Sorry for the noise.


Stefano
-- 
__________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: svmult.cls layout problem?

2012-01-11 Thread stefano franchi
On Tue, Jan 10, 2012 at 6:52 PM, Julien Rioux
 wrote:
> On 05/12/2011 1:53 AM, stefano franchi wrote:
>>
>> Has anyone used the layout for the svmult.cls class recently? (It is
>> the Springer class for edited volume)
>> The layout seems to have 2 problems (the class works fine in pure latex):
>>
>> It does not recognize the \abstract* environment and it inserts the
>> \maketitle command too early (before \author)
>>
>> Before I clumsily try to fix the problem, is is this a known problem
>> and/or is there anything I should know about it?
>>
>>
>> Cheers,
>>
>> Stefano
>>
>>
>>
>
> Which LyX version are you using? There were a number of changes to these
> files recently and the latex classes have also changed.
>
> --
> Julien
>

I am using the latest stable lyx (2.0.2) and the latest and updated
texlive version. I haven't look into it again since my original post
(exporting to Latex and compiling from command line is good enough for
me at this point), but it seems to me the problem is with the layout
file. I'll try to fix it when I have a bit more time next week.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: fonts - printing

2012-01-16 Thread stefano franchi
Horst,

I have no clue about your printing issues, but there is an Arial clone
available in Latex.

Check out this link:

http://www.tug.dk/FontCatalogue/arial/


Also, what do you mean by "printing under Firefox"?


Cheers,

Stefano

On Mon, Jan 16, 2012 at 6:09 AM, Horst Jurkat  wrote:
> Hi,
> my problem that I cannot solve after x "google" searches:
>
> I use lyx 2.02 under ubuntu 11.10. In my office I have to use the font
> arial. Because this font is not to choose in the standard settings I have
> choose hevetica. But when I print the document the text is bad (light); only
> when I print it out in pdf-format (with foxitreader) it looks fine.
>
> Therefore I tried to find a way to use arial.ttf. I installed the newer
> texlive version 2011 (full, with xetex and luatex) and found that there are
> many fonts (incl. arial.ttf) under /usr/share/fonts/... But after that Lyx
> does not show more fonts which can be checked under the document settings.
> When I check the box "Non-Tex-Fonts use (via XeTex/LuaTex)" I can choose
> many more fonts, also arial, but when I print the document Lyx give me a
> document with many other layouts
> than checked (the standard text format for new documents) and also with a
> bad light character.
>
> Has anyone an idea what to do or change to be able to use other ttf-fonts or
> to print in a acceptable way (like under firefox)?
>
> Thank you in advance.
> Horst
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: fonts - printing

2012-01-16 Thread stefano franchi
On Mon, Jan 16, 2012 at 9:06 AM, Horst Jurkat  wrote:
> Am 16.01.2012 15:11, schrieb stefano franchi:
>
>> Horst,
>>
>> I have no clue about your printing issues, but there is an Arial clone
>> available in Latex.
>>
>> Check out this link:
>>
>> http://www.tug.dk/FontCatalogue/arial/
>>
>>
>> Also, what do you mean by "printing under Firefox"?
>>
>>
>> Cheers,
>>
>> Stefano
>>
>> On Mon, Jan 16, 2012 at 6:09 AM, Horst Jurkat
>>  wrote:
>>>
>>> Hi,
>>> my problem that I cannot solve after x "google" searches:
>>>
>>> I use lyx 2.02 under ubuntu 11.10. In my office I have to use the font
>>> arial. Because this font is not to choose in the standard settings I have
>>> choose hevetica. But when I print the document the text is bad (light);
>>> only
>>> when I print it out in pdf-format (with foxitreader) it looks fine.
>>>
>>> Therefore I tried to find a way to use arial.ttf. I installed the newer
>>> texlive version 2011 (full, with xetex and luatex) and found that there
>>> are
>>> many fonts (incl. arial.ttf) under /usr/share/fonts/... But after that
>>> Lyx
>>> does not show more fonts which can be checked under the document
>>> settings.
>>> When I check the box "Non-Tex-Fonts use (via XeTex/LuaTex)" I can choose
>>> many more fonts, also arial, but when I print the document Lyx give me a
>>> document with many other layouts
>>> than checked (the standard text format for new documents) and also with a
>>> bad light character.
>>>
>>> Has anyone an idea what to do or change to be able to use other ttf-fonts
>>> or
>>> to print in a acceptable way (like under firefox)?
>>>
>>> Thank you in advance.
>>> Horst
>>>
>>
>>
> Stefano,
>
> excuse me: I mean "printing under Foxitreader".
>
> I have installed the package (arial clone), but after "texhash" und
> reconfigure under Lyx I find no changes.
>

The Arial clone comes in a package. You must follow the instruction
provide in the link I sent you:

Go to Document>>Setting»Latex Preamble
and type (or cut and paste the following)

\usepackage[scaled]{uarial}
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of
the document is to be sans serif
\usepackage[T1]{fontenc}


The last instruction may not be necessary.

Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: fonts - printing

2012-01-16 Thread stefano franchi
On Mon, Jan 16, 2012 at 10:03 AM, Horst Jurkat
 wrote:
> Am 16.01.2012 16:32, schrieb stefano franchi:
>
>> On Mon, Jan 16, 2012 at 9:06 AM, Horst Jurkat
>>  wrote:
>>>
>>> Am 16.01.2012 15:11, schrieb stefano franchi:
>>>
>>>> Horst,
>>>>
>>>> I have no clue about your printing issues, but there is an Arial clone
>>>> available in Latex.
>>>>
>>>> Check out this link:
>>>>
>>>> http://www.tug.dk/FontCatalogue/arial/
>>>>
>>>>
>>>> Also, what do you mean by "printing under Firefox"?
>>>>
>>>>
>>>> Cheers,
>>>>
>>>> Stefano
>>>>
>>>> On Mon, Jan 16, 2012 at 6:09 AM, Horst Jurkat
>>>>  wrote:
>>>>>
>>>>> Hi,
>>>>> my problem that I cannot solve after x "google" searches:
>>>>>
>>>>> I use lyx 2.02 under ubuntu 11.10. In my office I have to use the font
>>>>> arial. Because this font is not to choose in the standard settings I
>>>>> have
>>>>> choose hevetica. But when I print the document the text is bad (light);
>>>>> only
>>>>> when I print it out in pdf-format (with foxitreader) it looks fine.
>>>>>
>>>>> Therefore I tried to find a way to use arial.ttf. I installed the newer
>>>>> texlive version 2011 (full, with xetex and luatex) and found that there
>>>>> are
>>>>> many fonts (incl. arial.ttf) under /usr/share/fonts/... But after that
>>>>> Lyx
>>>>> does not show more fonts which can be checked under the document
>>>>> settings.
>>>>> When I check the box "Non-Tex-Fonts use (via XeTex/LuaTex)" I can
>>>>> choose
>>>>> many more fonts, also arial, but when I print the document Lyx give me
>>>>> a
>>>>> document with many other layouts
>>>>> than checked (the standard text format for new documents) and also with
>>>>> a
>>>>> bad light character.
>>>>>
>>>>> Has anyone an idea what to do or change to be able to use other
>>>>> ttf-fonts
>>>>> or
>>>>> to print in a acceptable way (like under firefox)?
>>>>>
>>>>> Thank you in advance.
>>>>> Horst
>>>>>
>>>>
>>> Stefano,
>>>
>>> excuse me: I mean "printing under Foxitreader".
>>>
>>> I have installed the package (arial clone), but after "texhash" und
>>> reconfigure under Lyx I find no changes.
>>>
>> The Arial clone comes in a package. You must follow the instruction
>> provide in the link I sent you:
>>
>> Go to Document>>Setting»Latex Preamble
>> and type (or cut and paste the following)
>>
>> \usepackage[scaled]{uarial}
>> \renewcommand*\familydefault{\sfdefault} %% Only if the base font of
>> the document is to be sans serif
>> \usepackage[T1]{fontenc}
>>
>>
>> The last instruction may not be necessary.
>>
>> Cheers,
>>
>> Stefano
>>
>>
> Stefano,
>
> I have followed the instructions and added the Preamble: the same result.
> But when I check out the box "Non-Tex-Fonts use (via XeTex/LuaTex)" and
> print I became a "latex-error: uarial.sty not found"?
>
> This style is - after installing the named package - in the texlive
> directories, but why Lyx do not find this?
>
> Sorry, but now I have to work in my office for several ours.
>

My fault. I didn't check up on the web page, which was probably old.

You can do one of two things:

1. Download the correct arial package from ctan:

http://ctan.org/tex-archive/fonts/urw/arial

follow the installation instruction and see whether it works. On my
system, it works fine with output to dvi. It does not work with output
to pdflatex. Apparently there is a missing font or, more likely,
pdflatex cannot find it. People on the list more expert than me on
Tex's font management may be able to help.

2. Use xelatex and your system's fonts. If you are on Windows, You
might have it on your system already. For Mac you can download it
here, if you don't have it already. On Linux, use Nimbus San L, which
is an Arial clone (how close a clone, I don't know. You may want to
check closely, especially if your organization (like mine) has a
"brand management team." You don't want to mess with these people...).
You may also install the original Microsoft fonts and convert them to
a format usable by Linux/Mac (look at the sourceforge project here,
for instance: http://corefonts.sourceforge.net/)

Hope it helps,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


<    1   2   3   4   5   6   7   8   >