Re: Unicode in ERT inserts

2014-02-14 Thread Ray Rashif
On 15 February 2014 01:33, Joe Lovick  wrote:
>
> Hi,
>
>So i have run into the issue that it would be good to use a unicode
> character within an ERT, but this causes a failure, one can type the
> character just fine in lyx, but it isn't converted during compilation.
>
>a minimal example is here http://goo.gl/d1gL6D
>
>what method should i be using to get unicode symbols into the ERT?
>
>I am using ERT becuase i need to use the Expex linguistics macros... it
> strikes me that maybe i should  create a module that would present the
> functionality of the ERT code to Lyx, would this solve the issue of entering
> unicode within these blocks?
>
>is their documentation on writing modules in lyx that i can use as a
> reference? i had a quick look but could find any.

This is actually a LaTeX issue. I found myself in a similar situation
not too long ago, but I was using pandoc. As you can probably find out
for yourself, 'latex unicode' or 'pandoc unicode' (still some relevant
info there) will lead you to:

http://tex.stackexchange.com/questions/34604/entering-unicode-characters-in-latex
http://stackoverflow.com/questions/18178084/pandoc-and-foreign-characters

I could not find any alternative to using XeTeX (xelatex). For other
times, utf8x has served me well. I only always hope I never get into
any unicode trouble.


--
GPG/PGP ID: C0711BF1


Re: printing

2013-12-05 Thread Ray Rashif
On 5 December 2013 03:36, Scott Kostyshak  wrote:
> On Wed, Dec 4, 2013 at 1:06 PM, David L. Johnson
>  wrote:
>> On 12/04/2013 12:43 PM, mike wrote:
>>>
>>> Hi
>>>
>>> Even though I am an old LaTeX user (but a new LyX user) for my current
>>> purposes I would like to be able to print in a format very similar to what I
>>> see on the screen in LyX.  I do realise that LyX is not intended to be
>>> wysiwyg but what I see on the screen (some basic text and mathematics and
>>> nested itemised lists) is just about perfect for what I need if I could just
>>> figure out how to print it so that the printouts look like what I see on the
>>> screen.
>>
>> I guess I don't understand what you mean.  On the one hand, if you have that
>> on the screen, isn't it printed out that way?  Aside from re-formatting the
>> text to fit the page width, of course.  What else about the way it looks on
>> the screen do you not get on the printout?
>>
>> On the other hand, why would you want it to look more like the screen than
>> the usual TeX output?  TeX adds in ligatures and other fancy font details,
>> re-sets the page width and justification, and prints what you wrote.  Some
>> fonts are different, but usually better than the on-screen appearance.  Why
>> would you want it more like the screen?
>
> +1 LaTeX is better and prettier for rendering than LyX.
>
> More details would be useful. The only reason I can think of is that
> you don't have LaTeX installed or you are getting LaTeX errors.
>
> To answer your question though, I don't think this is possible other
> than taking screen shots. I could be wrong though.

It may not be obvious to him but I think he's looking for the UI font
that he sees on the screen. In that case, mimic the exact font and
point size (up to a max by default) in the document settings (you will
have to use LuaTeX or XeTeX for the TTF support).


--
GPG/PGP ID: C0711BF1


Re: Widows and Orphans

2013-09-10 Thread Ray Rashif
On 11 September 2013 03:35, Gordon Cooper  wrote:
> I expected that an answer would not be simple About 20 years ago
> I wrote a module in Pascal that kept a line count for each page
> and forced a new page if a paragraph break or a new heading
> came within a selectable distance from the bottom. This partly
> solved the issue, but not completely.
>
> Thanks for the information.

This has really bothered me as well, often in large documents where I
have to go through every single page after a minor revision to check
for widows and orphans -- it really is a PITA. The high penalty
settings did not work for me in any of the cases.


--
GPG/PGP ID: C0711BF1


Re: Disable copy and paste

2013-08-08 Thread Ray Rashif
On 8 August 2013 17:51, Rainer M Krug  wrote:
> Just one word of caution: if you can see the text on screen, you can
> extract it by taking a screenshot and using ocr (optical character
> recognition) and nothing will stop you. So this just makes it slightly
> more difficult to get the text.

What's more, if I'm not wrong, encryption depends on the reader having
support, so you can effectively render encryption useless by using a
very old reader and PDF format. Even GhostScript lets you bypass
encryption, though not intentionally.

It's really all about preventing frequent abuse of documents by lay
people. Someone with the intent _will_ get your text somehow or
another. There are many tools that person could employ.


--
GPG/PGP ID: C0711BF1


Re: Disable copy and paste

2013-08-08 Thread Ray Rashif
On 8 August 2013 16:17, Rilke Rainer Michael  wrote:
> Hi List,
>
>
>
> I want to export a lyx document to a pdf. However, I want also that once
> reading the document it is impossible to copy and paste text from this pdf.
> Do you have any idea, whether there is a workaround for lyx?

That is encryption. You have the choice of disabling printing as well.
Converting to images, or rasterizing fonts, has the same effect as not
allowing copies but greatly increases the file size. However, this is
a standalone process, separate from LyX. I use PDFtk on GNU/Linux. [1]

[1] http://www.pdflabs.com/docs/pdftk-cli-examples/


--
GPG/PGP ID: C0711BF1


Re: the dreaded docx export - WAS: Anyone know of a best-seller written in LyX

2013-06-13 Thread Ray Rashif
On 12 June 2013 20:45, Rainer M Krug  wrote:

> stefano franchi  writes:
>
> > On Wed, Jun 12, 2013 at 9:11 AM, Rainer M Krug  wrote:
> >
> >> stefano franchi  writes:
> >>
> >> > On Wed, Jun 12, 2013 at 2:21 AM, Rainer M Krug 
> wrote:
> >> >
> >> >> Ray Rashif  writes:
> >> >>
> >> >> > On 12 June 2013 03:57, stefano franchi 
> >> >> wrote:
> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> On Tue, Jun 11, 2013 at 2:09 PM, Ray Rashif <
> schivmeis...@gmail.com
> >> >> >wrote:
> >> >> >>
> >> >> >>> On 11 June 2013 14:15, Rainer M Krug  wrote:
> >> >> >>>
> >> >> >>> I wanted to survey the LyX and LaTeX community for some opinions
> on
> >> >> this,
> >> >> >>> perhaps to get an idea as to the demand for some research into
> this
> >> >> area.
> >> >> >>> The project would do some empirical comparisons of the
> workarounds
> >> and
> >> >> >>> propose at most two or three solutions that work (integration
> with
> >> >> Pandoc,
> >> >> >>> or converintg directly to a simpler and well-supported language).
> >> >> >>>
> >> >> >>> The emphasis would be on retaining as much semantic meaning as
> >> >> possible,
> >> >> >>> across different levels of complexity, starting from the very
> >> basic. I
> >> >> am
> >> >> >>> not aware of any similar academic or non-academic effort, but
> this
> >> >> could
> >> >> >>> also be a long blog post.
> >> >> >>>
> >> >> >>>
> >> >> >>
> >> >> >> HI Ray,
> >> >> >>
> >> >> >> I am not sure about what you're asking, exactly? Perhaps a survey
> of
> >> the
> >> >> >> different lyx-doc(x) use cases that current lyx users care most
> >> about?
> >> >> Or
> >> >> >> rather a definition of the simplest yet still useful use case we
> can
> >> >> >> imagine? If the former, I would suggest starting a page on our
> wiki,
> >> >> >> perhaps as a possible GSoC 2014 project, as a repository of useful
> >> cases
> >> >>
> >> >> I think to start a wiki page to outline a possible GSoC 2014 project
> >> >> would be a good idea.
> >> >>
> >> >>
> >> > I created a page here:
> http://wiki.lyx.org/GSoC/GSoCProjectIdeasFor2014
> >> > The first item on the page is "Round trip conversion between LyX and
> >> .docx
> >> > formats <http://wiki.lyx.org/GSoC/GSoCProjectIdeasFor2014#toc1>"
> >> > I entered a minimal description of what I take is both Rainer's and
> Ray's
> >> > wishes.
> >> > Could you guys expand it?
> >>
> >> Thanks Stefano.
> >>
> >> just added my ideas and my understanding[1]. Please add your ideas and
> >> suggestions.
> >>
> >>
> >
> > Thanks Rainer. I added a couple of desired items to your list.
>
> To collate the discussion, I added a ticket:
>
> http://www.lyx.org/trac/ticket/8745
>
> to record discussions there.
>
> Please feel free to close the ticket if this is an wrong usage of a
> ticket.


Thanks guys, that's a good start. At first I wasn't sure how relevant this
would be for LyX or a summer program like GSoC, but with what you guys have
written the idea can be adapted and defined well. I'll add on if I see
anything else missing.


--
GPG/PGP ID: C0711BF1


Re: the dreaded docx export - WAS: Anyone know of a best-seller written in LyX

2013-06-11 Thread Ray Rashif
On 12 June 2013 03:57, stefano franchi  wrote:

>
>
>
> On Tue, Jun 11, 2013 at 2:09 PM, Ray Rashif wrote:
>
>> On 11 June 2013 14:15, Rainer M Krug  wrote:
>>
>> I wanted to survey the LyX and LaTeX community for some opinions on this,
>> perhaps to get an idea as to the demand for some research into this area.
>> The project would do some empirical comparisons of the workarounds and
>> propose at most two or three solutions that work (integration with Pandoc,
>> or converintg directly to a simpler and well-supported language).
>>
>> The emphasis would be on retaining as much semantic meaning as possible,
>> across different levels of complexity, starting from the very basic. I am
>> not aware of any similar academic or non-academic effort, but this could
>> also be a long blog post.
>>
>>
>
> HI Ray,
>
> I am not sure about what you're asking, exactly? Perhaps a survey of the
> different lyx-doc(x) use cases that current lyx users care most about? Or
> rather a definition of the simplest yet still useful use case we can
> imagine? If the former, I would suggest starting a page on our wiki,
> perhaps as a possible GSoC 2014 project, as a repository of useful cases
> people could refer to. If the latter...well I'd need further info because
> I'm not really sure what you're aiming for.
>

Hey Stefano

Sorry for the lack of clarity there -- probably a mistake of dumping one or
two things I had on my mind without context. I was referring to
cross-platform document interoperability for collaborative writing and
editing, not really LyX-specific but very much related, and not really a
new issue.

If there are people indeed affected by this, and they would like some
documentation, then I'd like to put in some time to review current issues
and strategies, and produce working code to convert a non-friendly format
into a pluggable one (into LyX, LaTeX, Pandoc) for _only_ the use cases
that matter most (according to the target audience; writers, editors,
fiction or non-fiction).

Often times I have found myself dealing with only a subset of formatting
tools during the first phase of a write-up, in most cases a draft, and I
would often make the mistake of thinking they're simple enough to not break
collaboration. I would assume many of our workflows start with sections,
followed by emphasis (boldface and italics), then simple lists (itemized
and enumerated), footnotes, and finally citations.

Personally I have never needed anything more complex like cross-references,
tables and images -- I always schedule them for later phases because they
interrupt the workflow, although I do make space for them informally (using
characters I can easily search for). At the end of the day, what I have to
deal with is a DOC or DOCX file with semantic comments (that are not
understood by most other tools), no matter where or how I start.

== TL;DR ==
What I'd like is to solve for the missing input formats in e.g. Pandoc. It
does not support RTF, DOC, or DOCX, but supports HTML, which Word does not
output cleanly. Either way, it's something I have had in my mind for some
time, but too busy to investigate or ask around methodically. Getting an
idea of the demand for a solution in this case could force me to invest the
time.

Inspiration: http://gio.act.gov.au/2013/03/13/document-conversion-markdown/


--
GPG/PGP ID: C0711BF1


Re: the dreaded docx export - WAS: Anyone know of a best-seller written in LyX

2013-06-11 Thread Ray Rashif
On 11 June 2013 14:15, Rainer M Krug  wrote:

> These are just ideas from my side, but to try to incorporate pandoc
> into LyX in the same way as LaTeX is Incorporated, would make LyX even
> more powerful then it is already now.
>

I agree. In fact, I think this affects me more as an editor, where I have
to collaborate with clients often with a format they're comfortable with.
Recently I've been using pandoc markdown to write stuff and then outputting
to Word, but the back and forth is really becoming annoying as the other
way around is not a painless route.

For a start, both RTF and DOC formats have some inherent issues. I took
some time to briefly benchmark this and came to the conclusion that they're
not really worth the effort. Try converting a simple RTF or DOC file with
one section and some basic formatting (bold, italic). Abiword, OpenOffice,
Ted -- all had problems. However, DOCX is a different story.

I believe that if we define the simplest use case we are satisfied with we
can come up with a good solution for DOCX, which is a (slightly) documented
format (at least, better than RTF or DOC). Rob Oakes did some work on DOC
[1] but it still involves a number of loops and caveats. You can also find
some programmatic examples for writing DOCX on the web [2] and an HTML
converter. [3]

I wanted to survey the LyX and LaTeX community for some opinions on this,
perhaps to get an idea as to the demand for some research into this area.
The project would do some empirical comparisons of the workarounds and
propose at most two or three solutions that work (integration with Pandoc,
or converintg directly to a simpler and well-supported language).

The emphasis would be on retaining as much semantic meaning as possible,
across different levels of complexity, starting from the very basic. I am
not aware of any similar academic or non-academic effort, but this could
also be a long blog post.


[1] http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import
[2] http://www.jackreichert.com/2012/11/09/how-to-convert-docx-to-html/
[3] http://www.textfixer.com/html/convert-word-to-html.php


--
GPG/PGP ID: C0711BF1


Re: Anyone know of a best-seller written in LyX

2013-06-09 Thread Ray Rashif
On 9 June 2013 23:32, stefano franchi  wrote:

>
>
>
> On Sun, Jun 9, 2013 at 9:36 AM, Steve Litt wrote:
>
>
>> So, when he comes back and asks that, it would be *wonderful* to give
>> the writer's list one or more best seller books (I think something with
>> an Amazon rank of less than 5000 would do it), to refute his statement,
>> by counterexample.
>>
>>
>
> I'm willing to bet you won't find such an example. The reason is simple:
> more or less by definition a best-seller is book produced by a major
> commercial publishing house supported by a consistent marketing effort,
> heavily edited by a professional editor and laid out by a (team of )
> typesetters according to a carefully designed house-specific graphic design
> project. The writer is just one element of the whole operation and she must
> use tools everyone else uses (or tools that produce output everyone else
> can use and viceversa). That means the writer must use microsoft word or
> word-compatible software, because that the format the editor will expect,
> and the doc format is what the typesetter wants when the text is inputted
> into InDesign.
> LyX just does not fit that scenario---unless everyone else moves to LyX
> and the typesetters switch to LaTeX. It's not going to happen.
>
> The exception is scientific publishing (Springer comes to mind), where,
> until not too long ago, many publishers had embraced Latex typesetting, and
> therefore made fitting LyX into their process relatively easy.
>
> But if by "best-sellers" you mean the kind of books listed on the NYTimes,
> then I'm afraid LyX won't have much of a chance.
>
> Then again, I'm a pessimist by nature.
>

I'm not much of a pessimist, but I would agree with this. Unless we we
survey the tools used by self-published bestsellers [1], we'll lose this
debate.

Traditional publishing generally means submitting a proposal, a manuscript
and then getting an advance -- no where in there do I see an incentive to
go out of your way to do anything but write.

Now, if there were publishing houses using open-source tools, I wouldn't
know, but that would be really cool.

[1] http://www.amazon.com/Self-Published-Bestsellers/lm/R2UHB9O6LWN1QI

--
GPG/PGP ID: C0711BF1


Re: Line breaks in URLs

2013-06-07 Thread Ray Rashif
On 7 June 2013 04:35, Tim Wescott  wrote:

> I tried putting a really really long URL into Lyx, expecting that it
> would get line breaks forced as necessary to fit.
>
> That didn't happen -- instead, it just gets truncated.
>
> Is there a way to force line breaks in a URL, or even (oh be still my
> heart) to tell Lyx to make it happen?
>
> TIA
>
> --
>
> Tim Wescott
> www.wescottdesign.com
> Control & Communications systems, circuit & software design.
>
>
I've had the best luck with Insert > URL when I want verbatim links and not
hyperlinks behind text.

-- 
GPG/PGP ID: C0711BF1


Re: Reference list without numbers before the entries

2013-06-01 Thread Ray Rashif
On 1 June 2013 22:14, Jürgen Spitzmüller  wrote:

> Uwe Stöhr wrote:
> > I did but maybe I completely misunderstood the task. In your example the
> bib
> > entry has the key "bratmann" and the label is "Bratmann(1999)". In the
> > footnote you referenced it via the label. I understand it so that the
> user
> > don't want to have a label because I already proposed the author-year
> style
> > you used. I'll be quiet now.
>
> Huh? But this is only the technical ID of the label. In the output, it
> will be
> "Bratmann (1999)" in the citation and it will not ppear at all in the
> bibliography. You refered to [Bra99] which is not author-year style, but
> alphanumeric.
>
> Maybe the OP should export our example to PDF, then he'll see that this is
> exactly what he wants.
>

I finally see what could be confusing OP. Using author-year would not work
without adding in a label, and a label with the correct formatting:
Author(YEAR)

Attached two files to demonstrate what OP wants and what he needs (I hope),
which is basically what Jürgen posted.


--
GPG/PGP ID: C0711BF1


WrongUsage.lyx
Description: Binary data


CorrectUsage.lyx
Description: Binary data


Re: Reference list without numbers before the entries

2013-06-01 Thread Ray Rashif
On 1 June 2013 22:02, Jürgen Spitzmüller  wrote:

> Ray Rashif wrote:
> > OK so it's like this:
> >
> > 
> > Those using LaTeX are more productive than their traditional
> counterparts.¹
> >
> > ---
> > ¹ John, 1999
> >
> > ...
> >
> > References
> > -
> > John, D. (1999). Proceedings of the ...
> > 
> >
> > If so, I've seen this in quite a few organisational publications, though
> > they use per-chapter bibliography.
>
> Well, sure, this is completely common in the humanities. This is the usual
> author-year ("harvard") style which you can produce with natbib, jurabib or
> biblatex. I do not understand what should be so special about it.
>
> Jürgen
>

Ahh, then I got it all wrong. But I guess you guys know what he's talking
about more or less. I think he just wants to cite in his chosen style and
enter bibliography items manually at the end of the document. But I still
don't get why the "label" should be a problem since it's internal to LyX --
he can choose to ignore it since it won't show up in the output.


--
GPG/PGP ID: C0711BF1


Re: Reference list without numbers before the entries

2013-06-01 Thread Ray Rashif
On 1 June 2013 21:45, Uwe Stöhr  wrote:

> Am 01.06.2013 15:41, schrieb Jürgen Spitzmüller:
>
>
>  Maybe I got it completely wrong, but don't you just want to use
>> author-year,
>> i.e. "harvard" style (via Natbib or BibLaTeX), which works with and
>> without
>> BibTeX? See attached for a simple natbib example.
>>
>
> I already proposed this but the user wants to have _no_ label in the
> bibliography list. The reason is that he wants to cite within a footnote.
> At the end of the document he therefore wants to have only the list of
> cites used in the document without a label.
> (Personally I have never see such a citing style and therefore doubt that
> this follows a common citing rule.
>

OK so it's like this:


Those using LaTeX are more productive than their traditional counterparts.¹

---
¹ John, 1999

...

References
-
John, D. (1999). Proceedings of the ...


If so, I've seen this in quite a few organisational publications, though
they use per-chapter bibliography.

--
GPG/PGP ID: C0711BF1


Re: My hyperlinks and urls are not working in Adobe or Okular but do work

2013-05-25 Thread Ray Rashif
On 26 May 2013 02:27, John Kane  wrote:
> Follow up on the Okular problem. Apparently I had accidentally turned on the
> browse tool--whatever that is. Hit n Cntl-1 fixed it.  Still not a clue
> about acrobat

I am able to reproduce this. I haven't used Adobe's Linux viewer for a
long time, and I was testing a PDF for something when I chanced upon
this peculiarity last night.

I'm pretty sure it's the Linux version that isn't able to click on
these hyperlinks. You can try using the reader on Windows. I don't
have any other example file to test (one which is not created by
LaTeX) so I can't completely verify this.


--
GPG/PGP ID: C0711BF1


Re: Preparing and inserting figures into LyX document

2013-05-24 Thread Ray Rashif
On 24 May 2013 05:00, Gordon Watson  wrote:
> With LyX working nicely with my text-input, I now need to learn how to 
> prepare and insert figures in that text.
>
> 1. Given my system -- MacOSX 10.7.5, LyX 2.0.5.1 -- where best to start 
> drawing for LyX?
>
> 2. What search-terms are best for learning how to insert such figures into my 
> document?
>
> PS: I recognise that it's mostly my problem, but I have trouble with some of 
> the LyX documentation; also with archive-search. It's therefore very helpful 
> when I'm given some early pointers and advice. When I'm more familiar with 
> the LyX scene, I plan to contribute to the documentation team as a "concerned 
> beginner/user."
>
> Thank you; Gordon -- MacOSX 10.7.5, LyX 2.0.5.1

If perhaps you're looking for some pointers on creating charts, graphs
and other illustrations, the most efficient way I've found is to use
whatever third-party tool does the drawing best, and then export to
PDF, trim the whitespace with pdfcrop (PDF Cropper on Windows), and
import that into the LyX. This allows the illustration to remain a
vector image that is very portable, so it can be stretched and
squeezed (and edited with other tools) at will.

--
GPG/PGP ID: C0711BF1


Re: bibliography file question: refetching records automatically

2013-05-21 Thread Ray Rashif
On 20 April 2013 15:51, Csikos Bela  wrote:
> Hello:
>
> I have a question regarding bibliography/bibtex databases.
> Is there a program or script that can use an existing bibliography database 
> (format is not important, can be bibtex, RIS, etc.) and fetch all of its 
> records in a complete form again from Pubmed based on the journal name, 
> volume and pages fields? Possibly into a new file. I have a bibus database 
> with hundreds of records but many of them are incomplete, and don't have DOI, 
> PMID, URL fields. Fetching them again one by one would be tedious.

Mendeley Desktop can import BibTeX, and can search online databases
(possibly just Google Scholar) by title. It will repopulate every
field for which there is information, including DOI and URL if they
exist in the remote source. There is a button you can click to
initiate this search (right near the title input field), so you may
have to do this one by one.


--
GPG/PGP ID: C0711BF1


Re: Converting lyx to odt

2013-04-29 Thread Ray Rashif
On 29 April 2013 07:02, Sotiris Hasapis  wrote:
> I ' m trying to convert lyx to odt file using the methods described here:
> http://wiki.lyx.org/Tools/LyX2OpenOffice
> but nothing seems to work. In fact when taking the convert option :
> Latex(plain) to openoffice nothing happens and responds : "Error while
> exporting format: odtFile 'C:/Documents and Settings/Owner/Local
> Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_cryptograhpy.tex'
> was not closed properly."
> Any help please?
>
> I'm using windows xp, lyx 2.0.
> Thank you.
> Sotiris.

>From experience this has never proven useful. Interoperability is an
issue here with LyX and other word processors. Even if one conversion
succeeds (to either a .doc, .docx, .odt or .rtf), you'd likely need to
do some clean-up here and there.

A fine compromise I have found is to use elyxer¹ as an intermediary
tool. Its HTML output is beautiful, and it works with complex
parent-child lyx documents including figures. You could also take a
look at pandoc (via LaTeX).²

¹ http://elyxer.nongnu.org/
² http://johnmacfarlane.net/pandoc/


--
GPG/PGP ID: C0711BF1


Re: Citations are not working.

2013-04-23 Thread Ray Rashif
On 23 April 2013 19:39, John Kane  wrote:
> Sorry to take so long to get back to you.
>
> @ Jacob,
> Many thanks for both your and Ray's help.  I read through both and tried
> yours first and you were right.  I had thought that I had I had changed that
> setting but I had not.  For some reason I seem to hit cancel rather than
> save in LyX settings sometimes.  It took two tries just now.
>
> @ Ray
> I am definitely going to save your post for my next emergency but what
> exactly does the code do? . Some kind of complete reset to default settings
> for a program?
>
> I'm a newcomer to Linux and a lot of commands are not yet intuitive.

I'm glad that Jacob actually chimed in to suggest the simplest
approach first -- I should've mentioned that alongside as well.
Indeed, the moving of the directories completely resets LyX (think of
how you will do the same thing on Windows; removing stuff from
%APPDATA%). On Linux and other GNU systems, ~/ (as dot files) and
~/.config are common config dumping grounds.

It's usually just a "quick fix" to check whether the program actually
runs with default settings (provided its files in the root/admin file
system have not changed), but I suggested it on the presumption that
it would be followed by a comparison of the original and existing
configs. In short, this should be a last resort (which I had thought
was the case).

--
GPG/PGP ID: C0711BF1


Re: Citations are not working.

2013-04-21 Thread Ray Rashif
On 21 April 2013 21:28, John Kane  wrote:
> I seem to be rapidly losing any ability to work with LyX.  In the attached
> example I cannot get citations to work. I originally added the citations
> using the Lyz plug-in for Zotero but a quick and non-expert look at the bib
> file suggests it's okay and JabRef seems happy with it.
>
> I obviously am doing something stupid but what?
>
> Or, have I really managed to muck up some settings on my system since my
> less than sucessful attempt to switch to biblatex?

I am not able to reproduce any "problem" (you do not describe any).
Citations do appear and the (list of) references are there.

To start LyX afresh, here are the Linux-specific steps:

mv ~/.lyx ~/.lyx.bak
mv ~/.config/LyX ~/.config/LyX.bak

See if your citations are not working after that.

--
GPG/PGP ID: C0711BF1


Re: Installing Lyx with no internet connection

2013-04-21 Thread Ray Rashif
+On 21 April 2013 22:41, adi  wrote:
> Hi!
> Im using windows XP and would like to install Lyx for the first time on this
> computer. Is it possible to make this work with no internet connection
> during the actual installation? (I have another computer connected to the
> internet)

Absolutely. I do this all the time. What you need is proTeXt¹ for the
LaTeX installation (1.3 GB), and a standalone LyX installer without
MikTeX (35 MB).² So, you do need a fast (or patient) connection for
the initial download.

The ProTeXt distribution of MiKTeX (TeX for Windows) contains almost
every package that you may ever need. This is the only distribution of
TeX that can be called an "offline", "standalone" or "full" TeX
installer, IMHO.

¹ http://www.tug.org/protext/
² http://www.lyx.org/Download

--
GPG/PGP ID: C0711BF1


Re: feature request: ribbon menus

2013-04-17 Thread Ray Rashif
On 4 April 2013 07:11, Richard Heck  wrote:
> On 04/03/2013 04:41 PM, Alex Vergara Gil wrote:
>>
>>
>>> Alex Vergara Gil wrote:

 I don´t know if thi request can be made inside Qt (I think there should
 be some package for this in the nokia library!).
>>>
>>> Pavel Sanda wrote:
>>> No it isn't. Mr Google suggest that "Qt team at one point stopped
>>> developing
>>> the control due to Microsoft licensing."
>>> This sounds funny given the fact that tabbed toolbar was already around
>>> in 90s
>>> and I remember it from Borland's Delphi UI.
>>>
>>> Pavel
>>>
>>
>>
>> Yes indeed, this sounds like we should not be able to build frames at all
>> because they look like Microsoft´s Windows and these are licensed by
>> Microsoft ;) so what kind of things are legal or not? This point puts even
>> more fuzzy to my logic! I thougth graphic design as long as it is not equal
>> are not the same and we can make the ribbon as different as we want, just
>> keeping the idea and even better, instead of putting it in the top we can
>> put then at the left so we can avoid the vertical space eating that Jacob
>> mentioned.
>
>
> Though one can put it this way: Nokia decided they did not wish to spend a
> gazillion dollars fighting a patent case, even if they might win it in the
> end, and even if Microsoft's patent makes about as much sense as the old
> joke that they would eventually patent 0 and 1.
>
> Remember: Apple got a design patent for a rectangle with rounded corners,
> and they won a patent infringement suit against Samsung. Really.
>
> That's the sad state of US patent law.

Hi guys this might be an interesting example of something like those
ribbon menus on Linux (with Qt):

http://www.omgubuntu.co.uk/2013/03/wps-office-for-linux-looks-like-microsoft-office-but-isnt

"The Qt suite apes the interface of Microsoft’s ‘Ribbon’ interface,
and whilst I can’t tell you whether it’s 100% accurate in its
replication (I haven’t used Microsoft Office long enough to tell),
it’s certainly authentic looking."

Just thought I'd share this -- not that I particularly love this kind
of UI (I don't dislike it either). I work extensively cross-platform
and sometimes with very old hardware/software as well so I tend to
adapt wherever needed without much trouble, so to say.


--
GPG/PGP ID: C0711BF1


Re: Insert 2 empty pages at the very beginning of book(KOMA-Script)

2013-03-30 Thread Ray Rashif
On 27 March 2013 01:06, Hans-Peter Wolf  wrote:
> Dear experts,
>
> I use Lyx Version 2.0.5.1,Windows 7,64 Bit.
>
> I use the book(KOMA-Script)-document.
>
> My probleme: How can I add 2 aditional, empty pages ( in German the so
> called “Schmutztitel”) at the very beginning of the book-document?
>
> Which code is to add and on which place(präampel ore text body)?
>
> I am a beginner with Lyx and LaTex, and I would be glad, if you could help
> me!

Could you try, before any calls to \maketitle (most cases, in preamble):

\newpage
\thispagestyle{empty}
\mbox{}
\cleardoublepage
\newpage
\thispagestyle{empty}
\mbox{}
\cleardoublepage

I have a two-sided document where I insert a single blank page
following this method, but that's way after \maketitle (after
frontmatter, before chapter 1).

--
GPG/PGP ID: C0711BF1


Re: Turning hyperref off in table of contents

2013-03-24 Thread Ray Rashif
On 25 March 2013 05:20, Frederick FN Noronha फ्रेड्रिक नोरोन्या
*فريدريك نورونيا  wrote:
> Dear all: I'm getting the hyperref links ON in the table-of-contents, when I
> don't want it. Could you pls guide on how to remove the clickable blue marks
> around the chapter titles in TOC? Thanks, FN

Why not keep the links but remove the colour?

\begingroup
\hypersetup{linkcolor=black}

TOCHERE (or anything else you don't want coloured)

\endgroup

You also want "No frames around links", which is in the document
settings (PDF properties > hyperlinks).


--
GPG/PGP ID: C0711BF1


Re: eLyXer 1.2.4 released

2013-03-17 Thread Ray Rashif
On 17 March 2013 19:12, Alex Fernandez  wrote:
> Hi Ray,
>
> On Sun, Mar 17, 2013 at 1:35 AM, Ray Rashif  wrote:
>>
>> On 17 March 2013 07:12, Alex Fernandez  wrote:
>> > As Liviu discovered, just to let you all know that I had to release
>> > 1.2.5
>> > because of problems with the 1.2.4 release (the binary lacked a couple
>> > of
>> > patches; otherwise the source code was fine).
>>
>> Alex, when I first heard of eLyXer -- amidst mounting frustrations
>> resulting from several failed attempts at converting a 350-page
>> document to any other usable format -- I thought it was just another
>> deceptive solution and gave it a miss entirely.
>>
>> How wrong I was, how deceptively brilliant this is! I was expecting I
>> would have to at least input child documents, but it worked its magic
>> on the master document itself. Believe me, nothing else ever worked,
>> and this is a complex document with LaTeX hacks here and there.
>>
>> Sure, there were some issues, like not recognising some (or all) LaTeX
>> commands, external inset, and ignoring some BibTeX entries, but I now
>> have a usable single-file HTML verbatim copy of the main contents,
>> complete with (cross-)references and images.
>>
>> The software had been lying dormant as a package in my (GNU/Linux)
>> distribution's unofficial buildscripts repository [1] with no love at
>> all, but I'll be promoting it directly to a supported binary
>> repository as soon as I get some time -- no-one should miss this.
>>
>>
>>
>> [1] https://aur.archlinux.org/packages/elyxer/
>
>
> Glad you are doing this. I will add you to the list of maintainers if you
> want, and send you any announcements directly.

Sure, it is now available officially via the [community] repository.
And after typing all that I forgot to mention the one thing that was
most important -- thank you for eLyXer :)


--
GPG/PGP ID: C0711BF1


Re: eLyXer 1.2.4 released

2013-03-16 Thread Ray Rashif
On 17 March 2013 07:12, Alex Fernandez  wrote:
> As Liviu discovered, just to let you all know that I had to release 1.2.5
> because of problems with the 1.2.4 release (the binary lacked a couple of
> patches; otherwise the source code was fine).

Alex, when I first heard of eLyXer -- amidst mounting frustrations
resulting from several failed attempts at converting a 350-page
document to any other usable format -- I thought it was just another
deceptive solution and gave it a miss entirely.

How wrong I was, how deceptively brilliant this is! I was expecting I
would have to at least input child documents, but it worked its magic
on the master document itself. Believe me, nothing else ever worked,
and this is a complex document with LaTeX hacks here and there.

Sure, there were some issues, like not recognising some (or all) LaTeX
commands, external inset, and ignoring some BibTeX entries, but I now
have a usable single-file HTML verbatim copy of the main contents,
complete with (cross-)references and images.

The software had been lying dormant as a package in my (GNU/Linux)
distribution's unofficial buildscripts repository [1] with no love at
all, but I'll be promoting it directly to a supported binary
repository as soon as I get some time -- no-one should miss this.


[1] https://aur.archlinux.org/packages/elyxer/


--
GPG/PGP ID: C0711BF1


Re: pdf content saved as images

2013-02-26 Thread Ray Rashif
On 25 February 2013 18:59, Csikos Bela  wrote:

> And/or is it possible to make a pdf which is not searchable or indexable?
>

There may be a couple of ways or more to go about this. For starters, you
may convert the text to outlines. For software that allow you to predefine
some security options for exported documents, you may select to disable
printing and/or disable copying of content.

There should be a way to achieve one of these ways with ghostscript, if not
(pdf)latex. Converting to and from image formats may appear to work but
they may be indexable (for indexers that do OCR), while not searchable.

I know there must definitely be a way to lock out the text like this,
because unfortunately, I've had the bad luck of dealing with such files. It
becomes a real PITA when you're spending hours reading tens of books for
relevant data and information. In such unfortunate cases copying the text
leaves you with garbled characters.


--
GPG/PGP ID: C0711BF1


Re: URL appearing in reference list with apa6

2013-02-18 Thread Ray Rashif
On 19 February 2013 02:39, John Kane  wrote:

> I seem to have gotten LyX back in action for the moment with apa6.
> However  am having a minor problem with a bibliography item.  For some
> reason it is including a URL which I don't want.
>
> The URL is correct, in that I did download the reference from someplace,
> but I don't want it in a journal entry since it is not a website,  etc and
> the download time and date are not relevant.
>
> I am handling my references with Zotero and it is creating a nice little
> bib file as I play around but why am I getting the URL in the reference. Or
> perhaps more correctly --how do I turn it off?  I can easily edit the
> bibtex entry but I suspect a lot of my references in real life willl have
> this and it might mean a lot of hand editing.
>
> Zotero and OpenOffice.org handle the reference correctly, BTW.
>
> Examples attached
>
> Thanks
> (and to paraphrase S. Pepys  "so to a late lunch".
>
>
This is dictated by your BibTeX style. The .bst file has all the logic to
deal with your .bib file - including what to parse and what not to parse,
and what to show when. I have yet to find a BibTeX editor that offers a
little bit of intuitive style handling as well.

If you're familiar with sed, you can manipulate your .bib file to your
liking (remove the url keys so they do not get parsed by your style, or use
a different style).


--
GPG/PGP ID: C0711BF1


Re: searching in the references

2013-02-15 Thread Ray Rashif
On 15 February 2013 17:10, Frédéric Parrenin wrote:

> Dear all,
>
> I often encounter compilation problems linked with the bibliography.
> For example, lyx tell me that there is a syntax problem in a given
> reference.
> Then I need to search where I have inserted the reference in the lyx
> document.
>
> How to do that?
> The current search tool does not seem to parse the references.
>
> Best regards,
>
> Frédéric Parrenin
>

You probably want Document > Outline and select 'List of Citations'. You
can then type in the filter box (this will only match keys and not any
other information about the reference).


--
GPG/PGP ID: C0711BF1


Re: Get number of unique references cited

2013-02-09 Thread Ray Rashif
On 10 February 2013 01:33, stefano franchi wrote:

> One way to go about it  is to use bibtool to extract all the references
> your article/book uses from your aux file and dump them in a new .bib file.
> Then you can use grep on the @ character to count them. Not foolproof but
> should get you fairly close. Or you can open the new bib file in a bibtex
> editor (JabRef, Bibdesk, etc) and let it count them for you.
>
> So, you'd export the file to latex (with file>>export), then run latex on
> the exported file (new-file.tex, let's say) in a terminal window, and then
> run bibtool on the .aux  file it produced:
>
> bibtool -x my-file.aux -o new-bibliography.bib
>
>
> Then run grep on the the new bib file:
>
> grep --count @ new-bibliography.bib
>
> Look at this thread on tex.stackexchange for other ideas:
>
>
> http://tex.stackexchange.com/questions/32032/extract-all-citations-from-tex-file
>
> 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
>
> stef...@tamu.edu
> http://stefano.cleinias.org
>

Thanks guys, so it seems there are several ways to go about it. Wolfgang,
you are correct; I think that's the simplest approach (so simple that I
wonder why I didn't think of it).

In the meantime I cooked up a script based on a one-liner that appeared to
work, given some constraints. Attached is the shell script (requires
dos2unix if you work with Windows-saved files) which takes files as
arguments (so it can report per-file citation count), e.g. "lyxcitecount
*.lyx".

I'll see if I can somehow integrate such a count into the LyX statistics
dialog. I think that'll be pretty neat, especially since it'll work for
selections as well. The problem in this case, I suppose, would be that
different bib engines use different cite commands.


--
GPG/PGP ID: C0711BF1


lyxcitecount.sh
Description: Bourne shell script


Re: Lyx: citation

2013-01-31 Thread Ray Rashif
On 31 January 2013 04:04, "Jörg Kühne"  wrote:

> Dear Lyx user list
>
> In Lyx appears the citation in form of (vgl. Scheer, 2002, S. 4) but in
> the PDF the citation appears in the form of [vgl. 1, S. 4]. What can I do
> to change the PDF citation view to (vgl. Scheer, 2002, S. 4)?
>
> Best regards
>
> Joerg
>

Could this be because your citation style uses the natbib option 'square'
by default? Try adding 'round' to Document > Settings > Document Class >
Class options, in the 'custom:' field.


--
GPG/PGP ID: C0711BF1


Re: non-English character in bibtex

2012-12-31 Thread Ray Rashif
On 30 December 2012 12:02, Degang Wu  wrote:

> Hi,
>
> I am trying to use the bibtex function in lyx to generate the reference
> list, and the bibtex library is generated and managed by Zotero. Now the
> author names of an entry contain accented a and \beta (both characters are
> in plain text), and lyx complained "! Package inputenc Error: Keyboard
> character used is undefined". What can I do to solve this problem?
>
> Regards,
> Wu Degang


I tend to have a lot of accented characters in my bibtex files, and they
have not been too troublesome so far. I use Mendeley, but I also import the
exported bib file into KBibTeX and then save it. Most of the foreign chars
get automatically converted to LaTeX format, and a couple that do not are
easily fixed with a bit of sed [1] magic.

[1] http://en.wikipedia.org/wiki/Sed

--
GPG/PGP ID: C0711BF1


Re: APA6 class with LyX?

2012-12-10 Thread Ray Rashif
On 11 December 2012 03:01, stefano franchi  wrote:
> 
> Not true. LyX/Latex's benefits are not limited to typesetting equations
> (although it does a much better job that its competition in that area). A
> Latex-typeset document looks better in many other respects---from
> paragraph-division and typesetting (in spite of recent improvements in
> Word's algorithms), to consistent application of style, down to small but
> crucial things such as determining font sizes/leading[1].
>
> The reason why Social sciences/Humanities are happy with Word/Endnote is
> (historically speaking) different: authors used to submit  Word files (or,
> earlier, Wordstar) and the publisher would import and typeset with real
> typesetting software. Such programs (and still are) were usually very bad at
> typesetting complex mathematical formulas unless each single formula was
> tweaked by hand, a very painful and expensive proposition. That was prompted
> D Knuth to invent TeX---the poor quality of professional typesetting
> software for math, not the similar but irrelevant problem in word processing
> program. The lack of equations in the Humanities/Social Sciences made the
> traditional process working smooth and insured that the typographical
> quality of publications in the fields was high, or at least acceptable.
> Authors used primitive (typographically speaking) software, publishers used
> real typesetters and everyone was happy.
>
> Except...that desktop publishing happened and publishers started to cut down
> on costs by using word as a typesetting program. Even worse, when they
> started asking for pdf,  camera-ready  they would provide typographical
> specs as series of Word instructions, since they do not know any better (all
> the typesetters having long gone). The result is that the vast majority of
> Humanities/Social Sciences journal and and increasing number of Humanities
> *books*  are now typographically ugly and often barely readable
>
> The same radical cost-cutting  measures took place  in the Natural
> sciences/Engineering, of course. But since *they* were already using
> Latex/TeX, the quality of their journal and books was only minimally
> affected (although it was: it takes a truly capable typesetter to achieve
> high results in Latex--relying on standard classes is only the starting
> point. And most authors not named Knuth are not great typesetters).
>
> That's why we in the Humanities are stuck with Word as a publishing
> tool---because it used to work well as a drafting tool when the industry
> worked differently, not because we do not use equations.
>
> 

Thank you Stefano - that was exactly the background story I was hoping
someone would fill in. My brief statement on equations was just a
layman's generalisation on why faculty would go through the trouble to
suggest LaTeX to students (surely, STEM lecturers would have _more_
reason).

TeX/LaTeX/LyX is definitely not _only_ about equations. I recently
edited and "typeset" (like you said, no one better than Knuth,
especially not someone who only played with his father's relic
typewriter as a toddler) a social science dissertation completely in
LyX with some LaTeX fiddling.


--
GPG/PGP ID: C0711BF1


Re: APA6 class with LyX?

2012-12-10 Thread Ray Rashif
On 11 December 2012 01:21, Jacob Bishop  wrote:
> have found very few people in the social sciences who are even aware of
> LaTeX. Not closed minded, just unaware. They use MS Word and Endnote because
> they don't know that there are good/better (free) alternatives.

And this stems from the fact that social science has negligible need
for (typesetting) equations, because that's what really sets LaTeX
apart. With MS Word you can configure references, cite them and
arrange your document based on styles. For qualitative/descriptive
papers, that is enough. As such, few people find any need to go out of
their way to look for something better.


--
GPG/PGP ID: C0711BF1


Re: APA6 class with LyX?

2012-12-08 Thread Ray Rashif
On 9 December 2012 00:45, Scott Kostyshak  wrote:
> On Sat, Dec 8, 2012 at 10:30 AM, John Kane  wrote:
>
> Hi John,
>
>> Would anyone know of any work being done on this?
>
> No work is currently being done. See the last comment here for the reason why:
> http://www.lyx.org/trac/ticket/8187
>
> And see this ticket for the main request:
> http://www.lyx.org/trac/ticket/8391
>
> Best,
>
> Scott

I came across this recently as I was searching for some answers but
this is only LaTeX-specific:
mirror.hmc.edu/ctan/macros/latex/contrib/apa6/apa6.pdf

May help to understand the situation at least.


--
GPG/PGP ID: C0711BF1


Re: Errors when using apacite for bibliography

2012-11-23 Thread Ray Rashif
On 23 November 2012 02:58, Florian  wrote:
> Hi there,
>
> I would need some help with apacite, as I do not seem to get it working. I
> use LyX 2.0.5 on Windows 7.

Try enabling Default citation style in preferences and then in
preamble save the following:

% Workaround for APA style (must turn off natbib first)
\usepackage{apacite}
\usepackage[authoryear]{natbib}


--
GPG/PGP ID: C0711BF1


Re: LyX andTeX Live: How to find and link a new latex version?

2012-09-01 Thread Ray Rashif
On 2 September 2012 09:08, David L. Johnson  wrote:
> His full path began with /usr/local  -- not somewhere the distro should use.
> That is for things the user installs, only, in my book.

That texlive was obviously installed manually as no sane, orthodox
package manager touches /usr/local.

The two installations are now in conflict and 'which' will only
reports what's in /usr/local, as that path gets priority. If the
package manager cannot see it, but the user is sure it was used to
install one of them, then a custom repository was added and later
removed.

Just see if a '/usr/bin/latex' exists. If it does not, then the
package manager did not install any texlive to begin with.

$ file /usr/bin/latex
/usr/bin/latex: symbolic link to `pdftex'


--
GPG/PGP ID: C0711BF1


Re: Setting Up Longtable

2012-08-13 Thread Ray Rashif
On 14 August 2012 00:35, Rich Shepard  wrote:
> On Mon, 13 Aug 2012, Rich Shepard wrote:
>
>>  I'm still not doing this correctly. When I try to add a new row above the
>> top row (column headers), it's inserted below that row. Cutting and
>> pasting the column headers to the new second row does not work smoothly.
>> Then I read the EmbeddedObjects.pdf.
>
>
>   Well! After all my attempts to get a caption on the longtable I've FUBAR'd
> it. It will no longer compile ... missing an /end{longtable} and does not
> like where I manually entered it in the .lyx file.
>
>   The table itself has been extracted to another file which I've attached to
> this message. I would greatly appreciate learning how to make it compile and
> how to put a caption on it.
>
> Rich

Rich, could you try to view the attached file?


-- 
GPG/PGP ID: C0711BF1


longtabletest.lyx
Description: Binary data


Re: Setting Up Longtable

2012-08-10 Thread Ray Rashif
On 11 August 2012 07:42, Rich Shepard  wrote:
> On Fri, 10 Aug 2012, curtis osterhoudt wrote:
>
>> Ah. A slightly easier way of getting there is to place the mouse cursor
>> within the table, and then go to the "Edit" menu at the top of the LyX
>> window, choose "Table Settings", and then the dialog which appears
>> includes the "Longtable" tab.
>
>
> Curtis,
>
>   I need to play with this (or your previous suggestion). When I follow the
> above, and check the box for 'caption' it makes the column header row a
> caption. Since all tables I've used in the past were in floats I need to
> learn how to work with a table outside a float.
>
>   Looks like I need to play until I can get the caption correct, then figure
> out by trial-and-error where to break the page.
>
> Thanks for the pointers,
>
> Rich
>

Rich, long tables are documented thoroughly. Please have a read of the
internal documentation (embeddedObjects in particular) [1], else
search Google. However, you can skip the LyX wiki page on long tables
as it is outdated.

Long tables are just static tables with manually-added float features,
such as a caption. You create your table, and then when you're done,
create a new row on the top or bottom and then make that row a caption
(Caption: On; right-click in any column).


[1] www.almack.ch/upload/Doc/LyX/en/EmbeddedObjects.pdf

--
GPG/PGP ID: C0711BF1


Re: pdfpages inclusion with forms blanks the forms information

2012-08-07 Thread Ray Rashif
On 8 August 2012 09:11, curtis osterhoudt  wrote:
> Dear LyXers,
>
>I'm producing a few files (via pdflatex) in the 2.1.0 version of lyx (I
> grab it from the -devel git repository and compile it locally). This is on a
> debian system, running a 3.5 (sid) kernel.
>
>When I include an already-produced .pdf document (via Insert --> File -->
> External Material) and then choose the template as "PDF pages", everything
> looks great, and the preview on screen shows that all information is in the
> forms in the original .pdf.
>
>However, upon exporting from LyX, either doing a View (which I have set
> to compile via pdflatex), or through File --> Export --> PDF (pdflatex), the
> resulting document has the forms as blank (viewing in Okular or acroread).
> Is this a limitation of pdflatex, or something wacky that LyX is doing?
>
>  Many thanks,
> Curtis O.
>

In LaTeX and LyX options, type this:

pages=-,pagecommand={\thispagestyle{plain}},scale=1.0

Otherwise it is some other weird problem. Works fine for me. Try
another or a random pdf if this fails. Then you can narrow it down to
just this pdf as the cause.


--
GPG/PGP ID: C0711BF1


Re: Working in LyX from the get-go---more or less

2012-08-02 Thread Ray Rashif
On 2 August 2012 21:25, Liviu Andronic  wrote:
> On Thu, Aug 2, 2012 at 11:41 AM, Eric Weir  wrote:
>>
>> Thanks for the reminder, Eberhard. But first I have to figure out how to 
>> install latex2rtf?
>>
> I took a look at the project's SF page and it seems to me that they're
> not providing binaries for Mac. If this is so, you may either compile
> the converter from source (likely a big headache in itself), or use
> Windows or Linux to proceed: On both latex2rtf can be easily
> installed.

If the softpedia binary doesn't cut it, set up Homebrew [1] and
install the latex2rtf package/formula. You will probably also need to
download XCode.

Otherwise you can download XCode alone and just build latex2rtf
manually. The make file should require no changes. Just go into the
unzipped folder of the unix source archive and type 'make && sudo make
install' from terminal. Homebrew (and similarly MacPorts and Fink)
just automates all this stuff for you on a systemwide scale.

[1] http://mxcl.github.com/homebrew/

Caveat: I'm not a Mac user.


--
GPG/PGP ID: C0711BF1


Re: Working in LyX from the get-go---more or less

2012-08-02 Thread Ray Rashif
On 2 August 2012 17:39, Eric Weir  wrote:
>
> On Aug 2, 2012, at 1:25 AM, Ray Rashif wrote:
>
>> On 2 August 2012 03:23, Eric Weir  wrote:
>>> My document is simple. Headings and footnotes. About ten pages. I'd like to 
>>> see if the LaTeX to RTF convertor will handle it.
>>
>> For this case latex2rtf is the perfect tool. When you have no images,
>> you're in luck. latex2rtf does the job - I've been using it for
>> several weeks already.
>
> Thanks, Ray. Good to hear. I don't see any of my documents every getting more 
> complicated than this. Longer, maybe, but never more complicated.
>
> Maybe you could give me a little help with latext2rtf? Like, where do I get 
> it? [Is it in the lyx pacage?] How do I install it? [Is it installed to lyx 
> or independently of it?] How do I invoke it? [From within lyx or the terminal 
> or some other way?]

Hi Eric you have been given the link to latex2rtf a few times. There
is no mac binary to be seen so probably that's the reason why you're
confused. You have to compile it on your mac, or find a binary [1].

[1] http://mac.softpedia.com/get/Developer-Tools/latex2rtf.shtml


--
GPG/PGP ID: C0711BF1


Re: Working in LyX from the get-go---more or less

2012-08-01 Thread Ray Rashif
On 2 August 2012 03:23, Eric Weir  wrote:
> My document is simple. Headings and footnotes. About ten pages. I'd like to 
> see if the LaTeX to RTF convertor will handle it.

For this case latex2rtf is the perfect tool. When you have no images,
you're in luck. latex2rtf does the job - I've been using it for
several weeks already.


--
GPG/PGP ID: C0711BF1


Re: Graphics Tools

2012-07-16 Thread Ray Rashif
On 16 July 2012 23:44, William R. Buckley  wrote:
> Working with TeX is a bit of a challenge, since it seems not to
> include much support for abstract drawing.  I have need for figures
> to appear in a paper, and am not familiar with the toolset usually
> employed for use to make drawn images suitable for use with TeX.
>
> Can you please make a few suggestions.

Virtually any kind of image would work, because you can convert around
if anything does not. I have PDF, JPEG and PNG images / drawings. As
long as you don't think "integrated drawing", you're good to go (i.e.
use a separate program to draw and create an image file).


--
GPG/PGP ID: C0711BF1


Re: Unable to export to OpenDocument ODF

2012-07-12 Thread Ray Rashif
On 13 July 2012 05:09, Richard Heck  wrote:
> On 07/12/2012 02:45 PM, Ray Rashif wrote:
>>
>> I'm trying to export my entire document to a format which can be
>> edited in conventional word processing software (OpenOffice, MS Word).
>> As RTF does not support images, and HTML export does not retain much
>> of the formatting (e.g. citations, sometimes not even appearing),
>>
> Have you tried using LyX's own XHTML export? I've had very good luck using
> it for this
> purpose.

Yes, that works well. However, I'm not able to open it (the xhtml
file) with any word processor. Most obvioously, MS Word does not
recognise "ldquote". I gave up at that point. Do you have any
suggestion for this?


>> I am left with ODF. However, I have not been successful. This is the final
>> dialog:
>>
>> An error occurred while running:
>> mk4ht oolatex "thesis.tex"
>>
>> If it's important, this is a master-child doc, with images formatted
>> in PDF (vector), JPG and PNG, some of them resized, scaled, rotated. I
>> also have foreign characters, but the document is in English. The
>> encoding for some child docs are utf8 extended, where there are some
>> accents and umlauts (mainly names and such).
>>
> The oolatex program, which is what LyX is trying to use for conversion, is
> pretty famously
> a difficult beast. If the document is complicated, then I'd definitely
> suggest you export it to
> LaTeX and try using oolatex manually. It'll be easier to see what the
> problem is.

Yes, I'l have to give it some attention. Currently I'm looking at what
other ways I could achieve this. Thanks!


--
GPG/PGP ID: C0711BF1


Unable to export to OpenDocument ODF

2012-07-12 Thread Ray Rashif
I'm trying to export my entire document to a format which can be
edited in conventional word processing software (OpenOffice, MS Word).
As RTF does not support images, and HTML export does not retain much
of the formatting (e.g. citations, sometimes not even appearing), I am
left with ODF. However, I have not been successful. This is the final
dialog:

An error occurred while running:
mk4ht oolatex "thesis.tex"

If it's important, this is a master-child doc, with images formatted
in PDF (vector), JPG and PNG, some of them resized, scaled, rotated. I
also have foreign characters, but the document is in English. The
encoding for some child docs are utf8 extended, where there are some
accents and umlauts (mainly names and such).

And the terminal (and also statusbar) output has hundreds of lines
during the export process, the last few relevant among them:

--- Warning --- System return: 256
System call: mkdir -p  sxw-thesis.dir/Pictures/thesis834x.png
System return: 0
System call: rmdir sxw-thesis.dir/Pictures/thesis834x.png
System return: 0
cp: cannot stat 'thesis834x.png': No such file or directory
cp: cannot stat 'thesis835x.png': No such file or directory
cp: cannot stat 'thesis836x.png': No such file or directory
cp: cannot stat 'thesis837x.png': No such file or directory
cp: cannot stat 'thesis838x.png': No such file or directory
Systemcall.cpp(262): Systemcall: 'mk4ht oolatex "thesis.tex"' did not finish!
Systemcall.cpp(263): error The process timed out. It might be
restarted automatically.
Systemcall.cpp(264): status The process exited normally.
System call: cpthesis834x.png
sxw-thesis.dir/Pictures/thesis834x.pngError: Cannot convert file

An error occurred while running:
mk4ht oolatex "thesis.tex"


--
GPG/PGP ID: C0711BF1


Re: Relativ and absolute Path by picutres

2012-07-09 Thread Ray Rashif
On 9 July 2012 14:34, uwe  wrote:
> Hello,
>
> i work with to configurations on my lyx Documents:
>
> MacOSX, LYx, Dropbox
>
> Linux, Lyx, Dropbox
>
> The most time i work with MaxOSX. Sometime i have to make changes with
> Linux/lyx and compile the Lyx-Dokument to pdf.
>
> My lyx under MacOSX store the whole pciture path like
>
> /Useres/uwe/xx/xxx/piture.jpg
>
> If I want compile the Document with Linux ich have set all Path by hand to
> Relative Path like
>
> /xxx/picture.jpg.
>
> Are there any settings, I can say MacOSX to use a relative path.
>
>
> Thanks
>
> uwe
>
>

I usually just edit the paths when selecting the graphics to make it
relative. Otherwise if you know sed you can patch em up all at once.

-- 
GPG/PGP ID: C0711BF1


Re: Using datatools Within LyX

2012-06-25 Thread Ray Rashif
On 26 June 2012 02:46, Rich Shepard  wrote:
>  The datatools package can read a .csv file and produce a LaTeX table
> (which the docs refer to as a database). The LaTeX code is straight-forward,
> but I've not succeeded in implementing it within the LyX environment.
>
>  I set up a float table and entered the caption. Under that I inserted ERT:
>
> \DTLloaddb{basin_characteristics}{basin_characteristics.csv}
> \DTLdisplaydb{basin_characteristics.csv}
>
> but this does not insert the data into a tabular environment even if I try
> to print a preview.
>
>  I'd greatly appreciate a clue on how to import my
> 'basin_characteristics.csv' file to a table so I can futz with it and make
> it pretty.
>
> Rich
>

You can do anything with ERT:

http://www.latex-community.org/forum/viewtopic.php?f=44&t=16419#p59164

This creates a list environment, so what you do is create a table
environment. But of course, it'll be better to just use one of the
other straightforward ways, you don't need this for a table. Just
exotic stuff.


-- 
GPG/PGP ID: C0711BF1


Re: Include a PDF file containing 3D object

2012-06-22 Thread Ray Rashif
On 22 June 2012 21:50, Liviu Andronic  wrote:
> On Fri, Jun 22, 2012 at 3:44 PM, Rainer M Krug  wrote:
>> I don't think that you can use pdfpages, as it *embeds* the page in the 
>> created pdf (as I
>> understand it) - what you probably would need is to *add* the page with the 
>> 3d object into your
>> created pdf. You could use something like pdftk or similar to do this.
>> This will mix up page numbering etc, but I am sure one could deal with this 
>> in LyX.
>>
> Fair comment. If you're using Linux, I would suggest PDF Chain for
> this. Otherwise---Windows---, there are other pdftk GUIs.
>
> Liviu

This may help:

http://meshlabstuff.blogspot.com/2009/03/creating-interactive-3d-objects-inside.html

Search 'pdf 3d objects"

You probably have to get used to some LaTeX markup.


--
GPG/PGP ID: C0711BF1


Re: Custom frontmatter and headings

2012-06-20 Thread Ray Rashif
On 20 June 2012 05:45, Steve Litt  wrote:
> On Wed, 20 Jun 2012 02:02:40 +0800, Ray Rashif said:
>> On 20 June 2012 01:44, Ray Rashif  wrote:
>> > Hi guys
>> >
>> > I'm adding a _static_ list of acronyms/abbreviations/units page
>> > (because I don't want any program to mess with my style of
>> > abbreviating throughout the document), but so far I haven't been
>> > able to match the frontmatter headings, for eg. table of contents,
>> > list of figures, list of tables.
>> >
>> > I would want the heading of this custom "List of Acronyms" to be
>> > similar to the typeset "List of Tables" and so on. I've used the
>> > code from [1] and it uses section*, but it is not consistent. Is
>> > there a way I could centre the section title? But even so, I'd like
>> > a better, more "integrated" approach.
>> >
>> > [1] http://www.latex-community.org/forum/viewtopic.php?f=44&t=16419
>> >
>> >
>> > --
>> > GPG/PGP ID: C0711BF1
>>
>> Ermm..correction. It's not actually the list I'm worried about but
>> another custom frontmatter - a declaration page. The list of acronyms
>> would be left aligned, but not the declaration.
>>
>> So, the real question is, how would I go about adding a custom
>> "declaration" page with the title centred (and not left-aligned by
>> using section*)?
>
> :-)
>
> It's time for my monthly "fingerpaint the frontmatter" suggestion.
>
> In my opinion, the styles based nature of LyX is ideal for a document's
> Mainmatter, where everything should be consistent.
>
> But in my opinion, the frontmatter is a bunch of one-off stuff that's
> much better done using ERT than trying to shoehorn a Document Class
> into doing stuff like center aligning something or tailoring vertical
> space, or for gosh sakes including a full sized cover image.

That is my own opinion as well (I have customised a lot with ERT), but
was hoping I would receive some pointers on how to style (with ERT)
pages to match each frontmatter type.

Currently I'd like a "Declaration" page with the title centred just
like the Acknowledgements and Abstract environment. The "List of
Abbreviations" would be left aligned and typefaced exactly as the
"List of Tables" and so on.

> SteveT
>
> Steve Litt                *  http://www.troubleshooters.com/
>                          *  http://twitter.com/stevelitt
> Troubleshooting Training  *  Human Performance
>



-- 
GPG/PGP ID: C0711BF1


Re: Custom frontmatter and headings

2012-06-19 Thread Ray Rashif
On 20 June 2012 01:44, Ray Rashif  wrote:
> Hi guys
>
> I'm adding a _static_ list of acronyms/abbreviations/units page
> (because I don't want any program to mess with my style of
> abbreviating throughout the document), but so far I haven't been able
> to match the frontmatter headings, for eg. table of contents, list of
> figures, list of tables.
>
> I would want the heading of this custom "List of Acronyms" to be
> similar to the typeset "List of Tables" and so on. I've used the code
> from [1] and it uses section*, but it is not consistent. Is there a
> way I could centre the section title? But even so, I'd like a better,
> more "integrated" approach.
>
> [1] http://www.latex-community.org/forum/viewtopic.php?f=44&t=16419
>
>
> --
> GPG/PGP ID: C0711BF1

Ermm..correction. It's not actually the list I'm worried about but
another custom frontmatter - a declaration page. The list of acronyms
would be left aligned, but not the declaration.

So, the real question is, how would I go about adding a custom
"declaration" page with the title centred (and not left-aligned by
using section*)?


--
GPG/PGP ID: C0711BF1


Custom frontmatter and headings

2012-06-19 Thread Ray Rashif
Hi guys

I'm adding a _static_ list of acronyms/abbreviations/units page
(because I don't want any program to mess with my style of
abbreviating throughout the document), but so far I haven't been able
to match the frontmatter headings, for eg. table of contents, list of
figures, list of tables.

I would want the heading of this custom "List of Acronyms" to be
similar to the typeset "List of Tables" and so on. I've used the code
from [1] and it uses section*, but it is not consistent. Is there a
way I could centre the section title? But even so, I'd like a better,
more "integrated" approach.

[1] http://www.latex-community.org/forum/viewtopic.php?f=44&t=16419


--
GPG/PGP ID: C0711BF1


Re: Can't update pdf in PDF-XChange, but can in Adobe..

2012-06-18 Thread Ray Rashif
On 18 June 2012 07:25, nikusik  wrote:
> Hello all!
>
> So I can't update my pdf file when using PDF-XChange (or Nuance) as a pdf
> reader, but there is no problem when I use Adobe.
>
> I can view/ create the documents fine in LyX using all 3 readers, but when I
> try to update with PDF-XChange or Nuance, I get the following message:
>
>   "I can't write on file 'Filename.pdf'"
>
> So in order to view any changes to the document, I must close the pdf file,
> and click view again.
> Here is an excerpt for the error log, if it help:
>
>   ! I can't write on file `First_document.pdf'.
>   Please type another file name for output
>   ! Emergency stop.
>   
>                      \endgroup \set@typeset@protect
>   l.80 O
>         ne can get carried away while playing around. But I would like to
>   *** (job aborted, file error in nonstop mode)
>
>
> I would really appreciate any help! While I'm glad it works in Adobe at
> least, I don't really want to work with it, but nor do I want to close and
> reopen the pdf file if I want to work with another reader...
>
> Thanks!
>
>
> --
> View this message in context: 
> http://lyx.475766.n2.nabble.com/Can-t-update-pdf-in-PDF-XChange-but-can-in-Adobe-tp7580136.html
> Sent from the LyX - Users mailing list archive at Nabble.com.

Same thing happens with Foxit. These readers lock the file in view, so
it's an upstream issue, not specific to LyX or LaTeX.

-- 
GPG/PGP ID: C0711BF1


Re: Inserting Citations

2012-06-15 Thread Ray Rashif
On 15 June 2012 03:17, William Hanson  wrote:
> Ray,
>
>
> I'm trying to make progress by taking mini-steps.  In trying to execute one
> of your recommendations, I've hit a snag.  Recently you said:
>
> "Choose an existing citation in your LyX document, note down its name
> as seen there. For eg., "Michael1999". In Mendeley look for that
> specific bibliographic entry, as close as you can remember. Then find
> the field "Citation Key". The two must match."
>
> By "Mendeley" you mean Mendeley Desktop, right?  In the LyX document I'm
> most concerned with I can find, e.g., the citation "[Hanson2006]". And in
> Mendeley Desktop I can find the exact bibliographic entry to which this
> citation refers.  But I don't see any field called "Citation Key" in
> Mendeley Desktop.  So I'm stuck at this point.

Both Mendeley Web and Desktop have a 'Citation Key' field. Otherwise,
citations would have no unique identifier, and hence would not be
usable in any application. In Web, it's Edit document details >
Additional Fields.

In Desktop, it's right below 'Tags' and 'Keywords'. If not, go to
Options > Document Details and make sure 'Citation Key' is selected
for every document type. It may be wise to make sure you're fully
updated to the latest version of the program.

> But moving on just one more mini-step, you continue the passage quoted above
> as follows:
>
>
> "If not, simply reselect the item in LyX bib dialogue from the
> "Available Citations" pane and delete the old citation from the
> "Selected Citations" pane"
>
> But this is what I'm simply unable to do, because I can't find any way to
> get any file from my Mendeley Desktop into the "Available Citations" pane in
> LyX.  If only I could do that, I'm pretty sure I could solve my original
> problem, namely, getting all the :"[?]"s in the pdf replaced with real
> references.

Look in Options > BibTeX. I personally have these checked:

Escape LaTeX special characters
Enable BibTeX syncing
Create one BibTeX file per collection
And a path where Mendeley will store the bib file(s)

You may choose not to sync, in which case simply select a folder or
the files you want and File > Export.


--
GPG/PGP ID: C0711BF1


Re: help regarding jabref to lyx

2012-06-14 Thread Ray Rashif
On 14 June 2012 23:13, Y.A. Sharif  wrote:
>  Dear Friends
> Can anyone help me regarding the input of reference through jabref to lyx?
> I tried several times but jabref mentions something about the path link in
> the lyx.
> I made the change but its not working.
> And I did the other way like, I made the bib file in jabref and imported
> through lyx but when I compile the file for PDF in lyx it doesnt show the
> references!!!
> I appreciate any kind of help.
> Thank you very much.
> Sharif

Google "lyx jabref". Only the first few results are what you need.
Remember that only cited references will show up in the list of
references. Otherwise, you have some other problem, which requires
more information.

Please also remember to bottom-post (like I have done) if you were not
going to. See http://www.idallen.com/topposting.html


--
GPG/PGP ID: C0711BF1


Re: Inserting Citations

2012-06-14 Thread Ray Rashif
On 14 June 2012 11:27, William Hanson  wrote:
> Ray,
>
> Thanks for your careful and detailed response.  Here are my answers to your
> 1-4.
>
> 1.  Yes, I had gathered as much.
>
> 2.  I was not limited in the number of .bib files I could add when running
> LyX on my old computer.  But you're right.  This is minor and can wait.
>
> 3.  Yes, this is not an issue.
>
> 4.  No, I'm not dealing with  master-child documents.

Your main problem therefore are citations that appear with a question
mark (?). Correct?

1. The bib file you used on the old computer must be the same on the
new one. Is it? Can you guarantee so? You may want to use a checksum
utility [1] to verify that they both have the same checksums. Chances
are they are not, and if so, proceed to (2).

> NEW INFORMATION:  I now realize that the .bib file I used (on my old
> computer) for the most important of my old papers is in my Mendeley desktop
> on the new computer but not in my BibTeX folder. Yet I can't figure out how
> to move it to the BibTeX folder.  A Windows Explorer search of all my
> documents does not find it, and the Mendeley Desktop doesn't seem to have
> any way to move it.

The bottom line is that the keys in the LyX document must match the
keys in the '.bib' file(s). Mendeley here is a third-party, and all it
does is generate the BibTeX file for you when asked. If what you do is
select the bib file directly from the folder Mendeley exports to,
chances are that you're selecting a new version where in turn chances
are high that keys are not the same as before.

2. Open up _all_ the bib files with a text editor. Search for a known
author, which you have cited in one of your documents but appears as a
'?'. The key is right next to the first curly brace '{'. This key and
the key LyX shows you for that particular citation must match.
Otherwise, you've run into a mismatch. Proceed to (3).

If you're curious, you can manually change the key in the bib file to
match the one known to LyX. Then preview the document, the citation
should now be visible.

3.  Check your Mendeley Desktop settings for where it stores the bib
file. Copy that file into your working directory (where your relevant
LyX files are for this particular document or set of documents).
Update your LyX files now by re-selecting every broken citation.

It is best to not load in LyX bib files that are generated by a
third-party application with no LyX integration, because it may be
overwritten. Mendeley Desktop, for the record, overwrites exported
(bib) files. That's why there's a big thin warning at the top of the
file.

Personally, I prefer to do away with any kind of integration even when
my final step involves KBibTeX (which does support LyX). I always keep
my bib files separate from what's generating them, and they reside
standalone among the related LyX/LaTeX documents. When there are
changes I simply replace them and update my documents accordingly.


--
GPG/PGP ID: C0711BF1


Re: Inserting Citations

2012-06-13 Thread Ray Rashif
On 14 June 2012 04:07, William Hanson  wrote:
> Ray,
>
> Below you suggest:  " just reselect your bib files by browsing to the
> correct ones."  That's what I've been doing but it doesn't work. the
> problem, as I've described it, still exists.
>
> You also suggest:  "check to make sure there is no key mismatch. You
> might've changed things in Mendeley which changed the keys, which are  now
> no longer the same as the keys known to bibtex (because they  retain the
> keys of the first ever bib file processed)."  I don't know what you mean by
> a key or a key mismatch in this context.

Choose an existing citation in your LyX document, note down its name
as seen there. For eg., "Michael1999". In Mendeley look for that
specific bibliographic entry, as close as you can remember. Then find
the field "Citation Key". The two must match.

If not, simply reselect the item in LyX bib dialogue from the
"Available Citations" pane and delete the old citation from the
"Selected Citations" pane. But, let's just run through your initial
complaint so that you know what to expect from LyX.

1. "No matter which of my four .bib files I add, I'll get only one or
two References showing up in the final pdf."

This means the LyX document finds your bib file(s), but is having
trouble with some/most of the citations.

Any citation with a '?' will not have a corresponding reference entry
below. Only valid citations that show up properly in the PDF output
will have a reference entry in the backmatter.

2. "I don't seem to be able to add more than one of my four .bib files."

This should not happen. You should be able to add as many bib files as
you like, as far as I am aware. It may be wise to file a bug report,
but not before you solve the rest of your problems here. As such, see
this as a different issue for now, and leave it alone / forget about
it.

3. "References that do show up are specific to that particular document."

This is correct. How else would you like it?

4. "When I go to another LyX document and try to add a reference the
Available Citation field is empty again."

Correct. You need to re-insert a bibliography and select the desired
bib files, for every new document. Only master-child documents can
share bibliographies. You have not mentioned anything about master or
child documents, so we assume you're not dealing with those.


--
GPG/PGP ID: C0711BF1


Re: Inserting Citations

2012-06-12 Thread Ray Rashif
On 13 June 2012 04:58, William Hanson  wrote:
> My problem is not primarily with creating new documents.  It is mainly with
> getting existing LyX documents (that have been transferred to my new
> computer) to appear with the references in them when LyX creates pdf files
> from them.  At present the pdf versions of these documents have no
> references at the end, and every citation in the text is replaced with a
> question mark inside of square brackets.  I have been partly successful in
> doing what Ray suggests with NEW documents:
>
>
> Start LyX, create a new empty document, insert > list > bibliography,
> select your four bib files, press OK, now type something and press the
> Bib icon, you should be able to select an entry from all four bib
> files. Now preview the document. You should see "foo [n]" or "foo
> (xyz, d)", and just one entry in the references. If you cannot
> reproduce this, you are looking at a bug, most probably in your
> installation.
>
> However,
> (1) I can't add more than two of my four .bib files to any new or existing
> document.  The program simply ignores the third and fourth.
> (2) When I do succeed in adding one or two .bib files to an existing
> document, some but not all of the citations in the body of the document
> connect to the cited reference, even though that reference is in the .bib
> files that have been added to the document.  These renegade citations still
> show up as [?] in the pdf.

This is what's important. That happens when your document cannot find
the particular key or file. In these old documents, just reselect your
bib files by browsing to the correct ones. It might help if you could
shift these files to a directory with or below your lyx file, then
change the path to be relative (like ../foo.bib).

Other than that, check to make sure there is no key mismatch. You
might've changed things in Mendeley which changed the keys, which are
now no longer the same as the keys known to bibtex (because they
retain the keys of the first ever bib file processed). In that case
you'd have to reselect your citations.


--
GPG/PGP ID: C0711BF1


Re: Inserting Citations

2012-06-12 Thread Ray Rashif
On 13 June 2012 02:05, William Hanson  wrote:
> To All,
>
> I'm still having trouble getting LyX 2.0.3 to allow me to insert citations
> into documents created on a new Dell (running Windows 7).  (My old HP, which
> runs Windows XP, has no trouble doing this). On the Dell LyX works just fine
> until I click the Insert Citation tab.  It brings up the usual LyX: Citation
> window, but the Available Citation field is empty.
>
> However, my BibTeX folder contains four non-empty BibTeX Database (.bib)
> files (the same ones I used earlier on the HP, and which I transferred to
> the Dell via Mendeley).  I've tried making my .bib files available to LyX
> using  insert > list / TOC > BibTeX bibliography.  But no matter which of my
> four .bib files I add, I'll get only one or two References showing up in the
> final pdf.  And I don't seem to be able to add more than one of my four .bib
> files.  Also the references that do show up are specific to that particular
> document.  When I go to another LyX document and try to add a reference the
> Available Citation field is empty again.

All bibliographic data are available on a per-document basis, and
references will only appear _as cited_. This means there will not be
any reference entry at the end of the document for any works _not_
cited. For child documents, citations can be seen only in the master
preview.

Start LyX, create a new empty document, insert > list > bibliography,
select your four bib files, press OK, now type something and press the
Bib icon, you should be able to select an entry from all four bib
files. Now preview the document. You should see "foo [n]" or "foo
(xyz, d)", and just one entry in the references. If you cannot
reproduce this, you are looking at a bug, most probably in your
installation.


--
GPG/PGP ID: C0711BF1


PDF go to real page number

2012-06-10 Thread Ray Rashif
Is there a way to make it such that when I select a 'Go To' page, the
pdf viewer would take me directly to the 'actual' page number in the
document, and not the number of the entire PDF? It can be worked
around by not using 'Go To', but instead entering the number in the
counter field. However, it's useful when some people would rather not
use the mouse.


--
GPG/PGP ID: C0711BF1


Re: Drag and drop image files to LyX

2012-06-08 Thread Ray Rashif
On 9 June 2012 02:16, Richard Heck  wrote:
> On 06/08/2012 01:17 PM, Horacio Pérez wrote:
>>
>> Is it possible somehow to drag and drop image files to LyX?
>>
> Not at the moment, I don't think, though feel free to file an enhancement
> request. It probably wouldn't be all that hard to make this work.

But you'd be surprised what actually works. This normally should work
if you copy from an application that treats the image as an object,
i.e not from the desktop or file manager, or an image viewer.

In simple terms, copy image from file manager or desktop, paste in a
normal word processor, copy that, paste in LyX. This, of course, if
you don't wanna have to organise anything into your LyX project dir
for use when you click the insert image button.

Today I pasted a dozen images like that with 2 windows split side by
side, and LyX even allowed me to insert a sub-float, 2 by 2 forming a
4-image figure. Just amazing, or maybe my expectations were too low :D


--
GPG/PGP ID: C0711BF1


Re: I'm certain it has been discussed here previously..............

2012-06-03 Thread Ray Rashif
On 3 June 2012 17:38, Charlie  wrote:
>
> I'm certain it's been discussed here before, but I can't find a
> reference to it.
>
> The way to stop a URL as an "insert URL" from running out over the
> margins into infinity. This happens in various document classes.
>
> The first line of the Insert URL has the right idea, but the second one
> doesn't stop at any margin.
>
> I know it can be done easily without using the insert URL application,
> but then the URL can't just be clicked on in the .pdf version to take
> the reader to the location. Instead it needs to be copied and pasted
> into a browser address bar.
>
> I think it should be possible to show the URL in a different way, even
> if it's just a link to the correct page.
>
> Just thought I would ask if someone can point me to the location of the
> discussion.
>
> Thank you,
> Charlie
> --
> **  **  **  **  **  **  **  **  **  **
> Registered Linux User:- 329524
> ***
>
> Patriotism is supporting your country all the time, and your government
> when it deserves it. --Mark Twain
>
> ***
> Debian GNU/Linux - just the best way to create magic
> ___

Did you try explicitly loading the url package in preamble?


-- 
GPG/PGP ID: C0711BF1


Re: Scrolling Slowness [Re: keyboard Scrolling Anomaly]

2012-05-22 Thread Ray Rashif
On 22 May 2012 23:13, Olivier Ripoll  wrote:
> On 20.05.2012 11:14, Rashif Ray Rahman wrote:
>
>> So, I finally managed to track down a peculiarity.
>>
>> On Windows (7), there is no scrolling issue with the keyboard, or the
>> mouse scroll wheel (or touchpad vertical scroll). However, there is
>> lag if I use the scroll bar (by dragging with the mouse).
>
> [...]
>
> Hi,
>
> That looks a lot like what I'm seeing since 2.0.2.
>
> www.lyx.org/trac/ticket/8135
>
> Could you try LyX 2.0.1 on Windows and see if you smooth scrolling by
> dragging the scrollbar is working with it ?

I had noticed that bug report before, and I tried my luck on Linux by
installing 2.0.1, but it did not help. I will try it on Windows,
although it does appear to me as if the only problem in Windows is
that of scrolling with the scrollbar. Nothing else is a problem there.


--
GPG/PGP ID: C0711BF1


Re: Child documents, integration and citation

2012-05-19 Thread Ray Rashif
On 20 May 2012 05:05, case  wrote:
> On Sat, May 19, 2012, Ray Rashif wrote:
>
>> For now I don't see much of a problem but I don't know how I'm going
>> to deal with it once I'm in the range of hundreds of pages and a
>> number of chapters.
>
> FWIW, it's certainly possible and convenient to have a single lyx document
> with hundreds of pages and many chapters.  I've written several books of
> 500-1000 pages, and appreciate the simplicity of only dealing with a single
> file, and being able to navigate around without having to load new files.
> I've never seen any slowness that bothered me.  Your mileage may vary.

That's comforting to know, especially if it's not going to take that
much time to compile the whole document with figures and all that.


--
GPG/PGP ID: C0711BF1


Re: Child documents, integration and citation

2012-05-19 Thread Ray Rashif
On 19 May 2012 09:30, stefano franchi  wrote:
> On Fri, May 18, 2012 at 8:59 PM, Richard Heck  wrote:
>> On 5/18/12 7:31 AM, Ray Rashif wrote:
>>>
>>> Hi guys
>>>
>>> I want to confirm that this is a bug. I've noticed some old threads on
>>> this [1] but I believe it's a little different.
>>>
>>> When the master document includes the bibliography, opening the child
>>> document and adding a citation works. So, while editing, the child
>>> document is aware of the bib database. When compiling for preview,
>>> however, that knowledge is lost and citations are replaced with
>>> "(author?)" and the like. Obviously, there is no reference list for
>>> that child document.
>>>
>>> Wouldn't it be possible to actually integrate the child document while
>>> rendering? Do not show the references, but do show citations that are
>>> valid (i.e. that exists in the bib included in the master doc). You
>>> can reproduce this with a template [2].
>>>
>> There are various ways to handle this. The problem, such as it is, is due
>> to the fact that, if you compile the child document "standalone", then it's
>> treated as its own document, and not as a child. Option 1 is to compile
>> the master document instead, which you can do from the View menu, and
>> assign a shortcut to do. Option 2 is more complicated, and involves putting
>> a bibliography inset into the child, but protecting it with a LaTeX if-then
>> construct, so that it isn't actually included when you compile the master.
>>
>> So it's not really a bug, but a consequence of how LyX handles children.
>
> Third option:
>
> Always compile from the master document, but include only the child
> document you want to compile. That will bring in the frontmatter,
> probably (depending on how you structured your master/children), but t
> might do what you want. The command is in Document>>Settings

Thanks guys.

Yes, that's correct, I know I can view the master document and that's
what I've been doing. Even though I knew it was inherent due to how
LyX works I perceived it as a bug, simply because I expected the child
to inherit most other stuff (since it can already work with the bib
database while editing).

For now I don't see much of a problem but I don't know how I'm going
to deal with it once I'm in the range of hundreds of pages and a
number of chapters. The last two workarounds mentioned should get me
going, but I think the third option is the best approach since I'd
want the child to inherit everything. A couple pages worth of
abstracts and references shouldn't add that much of a compile time.


--
GPG/PGP ID: C0711BF1


Child documents, integration and citation

2012-05-18 Thread Ray Rashif
Hi guys

I want to confirm that this is a bug. I've noticed some old threads on
this [1] but I believe it's a little different.

When the master document includes the bibliography, opening the child
document and adding a citation works. So, while editing, the child
document is aware of the bib database. When compiling for preview,
however, that knowledge is lost and citations are replaced with
"(author?)" and the like. Obviously, there is no reference list for
that child document.

Wouldn't it be possible to actually integrate the child document while
rendering? Do not show the references, but do show citations that are
valid (i.e. that exists in the bib included in the master doc). You
can reproduce this with a template [2].


[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg77181.html
[2] https://github.com/telegraphic/Oxford-LyX-Thesis-Template


--
GPG/PGP ID: C0711BF1