Re: Translate LyX document to another language

2023-02-21 Thread Paul Smith
Thanks, Dr Eberhard W Lisse. The idea is to get a LyX file as the
result, but I understand it is something very difficult to achieve.

Paul


On Tue, Feb 21, 2023 at 8:19 PM Dr Eberhard W Lisse  wrote:
>
> And the result must be a LyX file? I doubt that this is possible.
>
> You can always export to text and have that translated.
>
> el
>
>
>
> On 21/02/2023 11:01, Paul Smith wrote:
> > Dear All,
> >
> > Is there some way of automatically translating a LyX document, say,
> > from Spanish to English?
> >
> > I have come across GoogleTranslate4LyX:
> >
> > https://wiki.lyx.org/Tools/GoogleTranslate4LyX
> >
> > However, since an intermediate step involves conversion to HTML files,
> > I am a bit skeptical about the quality of the result.
> >
> > Thanks in advance,
> >
> > Paul
>
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Translate LyX document to another language

2023-02-21 Thread Paul Smith
On Tue, Feb 21, 2023 at 12:53 PM Pavel Sanda  wrote:
> >
> > Is there some way of automatically translating a LyX document, say,
> > from Spanish to English?
>
> Not easy for the whole document. But if you are coder I can see that within
> couple hours you might come up with a script which does something along these 
> lines:
> 1) copy paragraph which is selected in lyx into text file
> 2) seend it to DeepL API via curl
> 3) receive the response
> 4) paste it back into document
>
> Special formatting, equations/ images etc will be gone in this transformation.
>
> But having in LyX some better handling of such exchange for external services
> would be useful. From time to time I am checking grammarly for evolution of 
> their
> API interface, which would be closer to C++/Qt world so we could directly use 
> it...

Thanks, Pavel, for the ideas you have suggested. As soon as I have
some spare time, I will try to implement them in Python.

Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Translate LyX document to another language

2023-02-21 Thread Paul Smith
On Tue, Feb 21, 2023 at 9:05 AM Lorenzo Bertini
 wrote:
>
> > Is there some way of automatically translating a LyX document, say,
> > from Spanish to English?
> >
> > I have come across GoogleTranslate4LyX:
> >
> > https://wiki.lyx.org/Tools/GoogleTranslate4LyX
> >
> > However, since an intermediate step involves conversion to HTML files,
> > I am a bit skeptical about the quality of the result.
>
> I'm not aware of any tool specifically made for this purpose, but a .lyx
> file is in plain text, so if you can get any translator that works with
> that and can skip LyX's keywords it should work fine.

Thanks, Lorenzo. The difficulty is really to skip LyX's keywords!

Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Translate LyX document to another language

2023-02-21 Thread Paul Smith
Dear All,

Is there some way of automatically translating a LyX document, say,
from Spanish to English?

I have come across GoogleTranslate4LyX:

https://wiki.lyx.org/Tools/GoogleTranslate4LyX

However, since an intermediate step involves conversion to HTML files,
I am a bit skeptical about the quality of the result.

Thanks in advance,

Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: TikZ

2022-09-27 Thread Paul Smith
You have to activate instant preview beforehand, going to

Tools -> Preferences -> Look and Feel -> Display.

Paul

On Tue, Sep 27, 2022 at 4:12 PM Daniel CLEMENT via lyx-users
 wrote:
>
> Le mardi 27 septembre 2022 à 09:29 +0100, José Matos a écrit :
> > On Fri, 2022-09-23 at 06:40 +, M.B. Schiekel wrote:
> > > Hallo Dan,
> > >
> > > LaTeX-Preamble:
> > >\usepackage{tikz}
> > >\usepackage{braids}
> > >
> > > this works perfect - or what support do you wish?
> > > bernhard
> >
> > If you insert the tikz code inside a preview box the figure will be
> > shown immediately, if you click over it you will see the code.
> >
> > The preview box can be inserted in the same way as the tex code:
> >
> > Insert -> TeX Code
> > Insert -> Preview
>
> Hmm... PFMJI, but I'd like to give this a try. Exactly how should it be
> done?
>
> If I put the tikz code inside the Preview, I just get the code in the
> output. If I put it inside TeX Code, I get an error ("control sequence
> never def'd" about tkzTabInit)
>
> I know my tikz code is OK because I was able to preview its result and
> export to eps from the Qtikz utility. But it would be sooo much simpler
> to get that directly under LyX!
> >
> > You are still responsible for adding the correct tikz code...
> >
> > --
> > José Abílio
> --
> Daniel CLEMENT
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converting markdown to PDF

2021-06-16 Thread Paul Smith
On Wed, Jun 16, 2021 at 9:48 PM Paul A. Rubin  wrote:
>
> > Using R is a little overkill in my view, but if it works it works :-)-O
> It's a bit indirect, but for users of the RStudio IDE, you just open
> RStudio, open the .md file and click the "Knit to PDF" toolbar button
> and you're done (unless you don't like the way the PDF turned out). In
> my case, it would save having to look up the command syntax.

I believe that a much needed development avenue that LyX could take is
to become able to export to markdown. Something like the following,
but builtin natively:

https://wiki.lyx.org/Tips/ConvertMarkdown

Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converting markdown to PDF

2021-06-16 Thread Paul Smith
On Wed, Jun 16, 2021 at 5:27 PM Rich Shepard  wrote:
>
> I've an .md file that I want to convert to .pdf. Using pandoc I get a .pdf
> that's all in html. Can lyx help me convert the .md to a clean text (with
> code) .pdf?

You can use R for that, Rich. Just open your .md file in R and preview
it in PDF. I have just tested this approach and it works.

Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Augmented matrix is not produced correctly

2020-05-06 Thread Paul Smith
On Wed, May 6, 2020 at 6:43 PM Paul A. Rubin  wrote:
>
> I suspect that I have found a bug: When I do what I do at the attached
> screenshot, I do not get what one would have expected (the vertical
> line drawn between the first and the second column).
>
> This discussion may be relevant:
>
> https://tex.stackexchange.com/questions/299221/adding-vertical-line-equal-sign-to-augmented-bmatrix-without-using-array
>
> What version of LyX are you using? I get the vertical line using LyX 2.3.4.2 
> on Linux Mint.
>
> Thanks, Paul. I am using
>
> LyX Version 2.3.4.2
>
> on Fedora Linux 31.
>
> Have you selected the matrix decoration as [x], Paul?
>
> As soon as one does that, LyX uses bmatrix environment, with which it
> is impossible to get an augmented matrix.
>
> Sorry, missed that part. You're right, that does nuke the vertical line.
> A workaround is to use the [] math toolbar button to create the brackets
> and insert the matrix inside. It's not perfect -- there seems to be more
> white space between brackets and matrix -- but it's in the ballpark.
>
> No, Paul. There is a better approach: The one presented at the
> web-address I mention on my initial message: In the horizontal
> alignment, insert:
>
> @{}c|c@{}
>
> and select no matrix decoration. Then enter the brackets as you
> suggested. You will see that the extra white space between brackets
> and matrix will be gone.
>
> I would suggest that LyX implements this approach: Augmented matrices
> are shown very nicely and neatly.
>
> You should submit a ticket for this. I did a little experimenting and 
> discovered that if you do exactly what you were doing in the screenshot 
> except make any one column left or right justified rather than centered, LyX 
> nests an array inside a bmatrix. With all centering, LyX just uses a bmatrix 
> and drops the contents of the horizontal alignment field. (I did not 
> experiment with vertical alignments.) So unless there is a reason not to do 
> so, the answer might simply be to nest an array inside a bmatrix in all cases.
>
> The fact that LyX is deviating from its usual behavior in this one case has 
> me wondering whether the exception was created deliberately, to accommodate 
> some other use case.

Thanks, Paul. I have meanwhile submitted a ticket for this:

https://www.lyx.org/trac/ticket/11854

Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Augmented matrix is not produced correctly

2020-05-06 Thread Paul Smith
On Wed, May 6, 2020 at 5:13 PM Paul A. Rubin  wrote:
>
> >> I suspect that I have found a bug: When I do what I do at the attached
> >> screenshot, I do not get what one would have expected (the vertical
> >> line drawn between the first and the second column).
> >>
> >> This discussion may be relevant:
> >>
> >> https://tex.stackexchange.com/questions/299221/adding-vertical-line-equal-sign-to-augmented-bmatrix-without-using-array
> >>
> >> What version of LyX are you using? I get the vertical line using LyX 
> >> 2.3.4.2 on Linux Mint.
> > Thanks, Paul. I am using
> >
> > LyX Version 2.3.4.2
> >
> > on Fedora Linux 31.
> >
> > Have you selected the matrix decoration as [x], Paul?
> >
> > As soon as one does that, LyX uses bmatrix environment, with which it
> > is impossible to get an augmented matrix.
> >
> Sorry, missed that part. You're right, that does nuke the vertical line.
> A workaround is to use the [] math toolbar button to create the brackets
> and insert the matrix inside. It's not perfect -- there seems to be more
> white space between brackets and matrix -- but it's in the ballpark.

No, Paul. There is a better approach: The one presented at the
web-address I mention on my initial message: In the horizontal
alignment, insert:

@{}c|c@{}

and select no matrix decoration. Then enter the brackets as you
suggested. You will see that the extra white space between brackets
and matrix will be gone.

I would suggest that LyX implements this approach: Augmented matrices
are shown very nicely and neatly.

Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Augmented matrix is not produced correctly

2020-05-06 Thread Paul Smith
On Wed, May 6, 2020 at 4:50 PM Paul A. Rubin  wrote:
>
> I suspect that I have found a bug: When I do what I do at the attached
> screenshot, I do not get what one would have expected (the vertical
> line drawn between the first and the second column).
>
> This discussion may be relevant:
>
> https://tex.stackexchange.com/questions/299221/adding-vertical-line-equal-sign-to-augmented-bmatrix-without-using-array
>
> What version of LyX are you using? I get the vertical line using LyX 2.3.4.2 
> on Linux Mint.

Thanks, Paul. I am using

LyX Version 2.3.4.2

on Fedora Linux 31.

Have you selected the matrix decoration as [x], Paul?

As soon as one does that, LyX uses bmatrix environment, with which it
is impossible to get an augmented matrix.

Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Augmented matrix is not produced correctly

2020-05-06 Thread Paul Smith
Dear All,

I suspect that I have found a bug: When I do what I do at the attached
screenshot, I do not get what one would have expected (the vertical
line drawn between the first and the second column).

This discussion may be relevant:

https://tex.stackexchange.com/questions/299221/adding-vertical-line-equal-sign-to-augmented-bmatrix-without-using-array

Thanks in advance,

Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Lyx file format for tables

2019-05-22 Thread Paul Smith
On Wed, May 22, 2019 at 7:13 PM Rich Shepard  wrote:
>
> > Thanks, Rich and Jean-Marc. I am feelling, from what you both say, that I
> > need to study better knitr, and I am going to do so.
>
> Docs I have sent off the mail list.

Got them. Awesome! Thanks, Rich!

Paul


Re: Lyx file format for tables

2019-05-22 Thread Paul Smith
On Wed, May 22, 2019 at 6:08 PM Jean-Marc Lasgouttes  wrote:
>
> > Where can one find the specifications of the LyX file format for tables?
> >
> > The reason why I am asking that is because I have a bunch of tables
> > that I want to export from R to a single LyX document, and the
> > approach I am considering is to produce in R a text file in LyX format
> > with all my tables inserted.
>
> An approach would be to use Sweave or knitr to include R code in your
> document that will be replaced by the nice tables you need.

Thanks, Rich and Jean-Marc. I am feelling, from what you both say,
that I need to study better knitr, and I am going to do so.

Paul


Re: Lyx file format for tables

2019-05-22 Thread Paul Smith
On Wed, May 22, 2019 at 4:28 PM Paul A. Rubin  wrote:
>
> > Where can one find the specifications of the LyX file format for tables?
> >
> > The reason why I am asking that is because I have a bunch of tables
> > that I want to export from R to a single LyX document, and the
> > approach I am considering is to produce in R a text file in LyX format
> > with all my tables inserted.
> >
> I'm not sure if there is explicit documentation of the syntax for tables
> in LyX. You can create a small sample table with the desired format in
> LyX, open the code pane (View > Code Preview Pane) and set the format
> for the pane to LyX. That will show you what your sample table would
> look like in a LyX source file.
>
> I wonder if there might not be an easier way, though. There are several
> functions/packages in R that are designed for producing nice looking
> tables (including xtable and the kable() function from knitr), and a
> number of them have the option of generating LaTeX output. So you could
> have your R script generate the desired tables with the desired format
> and write them all to a LaTeX text file, then import that into LyX (File
>  > Import > LaTeX (plain), and copy/paste them where they are needed in
> your actual document.

Thanks, Paul. I imagined your "View > Code Preview Pane" idea, but I
though it would be easier to read the documentation, if there is some.
(The file format of tables in LyX does not appear to be simple.)

Regarding your other idea -- using xtable() or ktable -- I guess it is
not very practical in my case, as I have too many table (about 50
tables), and therefore I would like to insert all of them in their
right place in the LyX document, to avoid the work of copying and
pasting 50 times!

Paul


Lyx file format for tables

2019-05-22 Thread Paul Smith
Dear All,

Where can one find the specifications of the LyX file format for tables?

The reason why I am asking that is because I have a bunch of tables
that I want to export from R to a single LyX document, and the
approach I am considering is to produce in R a text file in LyX format
with all my tables inserted.

Thanks in advance,

Paul


Re: Question on advanced find and replace

2019-05-21 Thread Paul Smith
On Wed, May 15, 2019 at 2:41 PM Helge Hafting  wrote:
> >
> > I have a large document where I have many lines that are only
> >
> > @@
> >
> > Now, I want to insert all lines between two consecutive lines of @@
> > into a minipage. Can one do that automatically and not one by one?
>
> Not to my knowledge, no.
>
> Advanced search & replace lets you search for and/or replace stuff that
> isn't only normal text. So you can replace an image with another. You
> can search for & replace math formulas. You may also replace "@@" with a
> minipage.
>
> But if I understand correctly, you want to search for:
>
> @@
>
> some
>
> lines
>
> @@
>
> and have it replaced with:
>
> ---start minipage--
>
> some
>
> lines
>
> ---end minipage--
>
>
> And you want this to happen several times through your document, where
> the exact contents of "some lines" vary. This is not possible.  You may
> only search for fixed content, not variable. So you can search for
>
> @@
>
> some
>
> lines
>
> @@
>
> But such a search will only match exactly, you can't get it to also match
>
> @@
>
> other
>
> lines
>
> @@
>
> And I guess that is what you wanted?
>
>
> LyX lets you mark "some lines", you can then Insert->Box->Simple Frame
> and get your lines inside a minipage. And then repeat this mark & insert
> operation for all other occurences.
>
> If you want to automate this, consider taking advantage of the fact that
> a LyX file is a kind of text file. Software that deals with text (sed,
> awk, or many others) may be able to do what you want. And if there are
> hundreds of cases, writing a one-off program to do this may pay off.
> (Pay off in that it may be faster than editing it all by hand.)
> Otherwise, or if you aren't into programming, just edit manually.

Thanks, Helge. Indeed, I want to automate the procedure you describe
in your penultimate paragraph. And, as you suggest, I will try to
accomplish that by writing a program, as I have dozens of minipages to
insert.

Paul


Question on advanced find and replace

2019-05-12 Thread Paul Smith
Dear All,

I have a large document where I have many lines that are only

@@

Now, I want to insert all lines between two consecutive lines of @@
into a minipage. Can one do that automatically and not one by one?

Thanks in advance,

Paul


Re: Using new enumerate environment without ERT

2019-04-30 Thread Paul Smith
On Sat, Apr 27, 2019 at 2:42 PM Guenter Milde  wrote:
>
> >> Dear All,
>
> >> Suppose that I have created a new enumerate-like enumerate, say
> >> xenumerate. How can I use it from inside LyX without recourse to ERT?
>
> > A couple of possibilities come to mind. If you want to use the new
> > version exclusively (and not use good old "enumerate"), you could
> > redefine the enumerate environment itself. Assuming you want xenumerate
> > to coexist with enumerate, you can define a layout for it, either in the
> > Local Layout portion of the document settings (if you only want it for
> > one document) or in a module file installed in your local layouts directory.
>
> > Guessing that you want the last one (i.e., add this along side regular
> > enumerations and make it available to any document that wants it), I
> > would suggest looking at /usr/share/lyx/layouts/stdlists.inc for
> > inspiration. (That's the Linux path; on other OSes, your path may
> > differ.) Look for the section that begins "Style Enumerate" and copy it
> > to your local module file (which will also need the proper header
> > stuff). Change the first line of the style to "Style Xenumerate" (or
> > whatever), change the LatexName entry to "xenumerate", and see if
> > anything else needs tweaking (quite possibly not).
>
> It may help to have a look a the "enumitem" module that enhances enumeration
> environments.
>
> The appended gm-lists.module requires and uses enumitem to define
> additional list types. It is a bit dated, though.
>
>
> > Help > Customization has lots of details about creating your own modules
> > and paragraph styles. Note that you will have to expressly include the
> > module in any document where you want to use the style. (You could hack
> > stdlists.inc itself, but then you would need to repeat the hack any time
> > an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)

Thanks, Günter, I will have a look at that.

Paul


Re: Using new enumerate environment without ERT

2019-04-26 Thread Paul Smith
On Fri, Apr 26, 2019 at 9:39 PM Paul A. Rubin  wrote:
>
> > Suppose that I have created a new enumerate-like enumerate, say
> > xenumerate. How can I use it from inside LyX without recourse to ERT?
> >
> A couple of possibilities come to mind. If you want to use the new
> version exclusively (and not use good old "enumerate"), you could
> redefine the enumerate environment itself. Assuming you want xenumerate
> to coexist with enumerate, you can define a layout for it, either in the
> Local Layout portion of the document settings (if you only want it for
> one document) or in a module file installed in your local layouts directory.
>
> Guessing that you want the last one (i.e., add this along side regular
> enumerations and make it available to any document that wants it), I
> would suggest looking at /usr/share/lyx/layouts/stdlists.inc for
> inspiration. (That's the Linux path; on other OSes, your path may
> differ.) Look for the section that begins "Style Enumerate" and copy it
> to your local module file (which will also need the proper header
> stuff). Change the first line of the style to "Style Xenumerate" (or
> whatever), change the LatexName entry to "xenumerate", and see if
> anything else needs tweaking (quite possibly not).
>
> Help > Customization has lots of details about creating your own modules
> and paragraph styles. Note that you will have to expressly include the
> module in any document where you want to use the style. (You could hack
> stdlists.inc itself, but then you would need to repeat the hack any time
> an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)

Thanks, Paul, for your very valuable help! I am going now to ponder
about your suggestions and choose the one that fits best my needs.

Paul


Using new enumerate environment without ERT

2019-04-26 Thread Paul Smith
Dear All,

Suppose that I have created a new enumerate-like enumerate, say
xenumerate. How can I use it from inside LyX without recourse to ERT?

Thanks in advance,

Paul


Re: How to avoid breaking an item of enumerate?

2017-06-26 Thread Paul Smith
On Sun, Jun 25, 2017 at 8:43 PM, Paul A. Rubin <parubi...@gmail.com> wrote:
> On 06/25/2017 03:25 PM, Paul Smith wrote:
>>
>> On Sun, Jun 25, 2017 at 7:09 PM, Paul A. Rubin <parubi...@gmail.com>
>> wrote:
>>>
>>> You can manually force page breaks (after the document is "finalized") by
>>> inserting formatting instructions. See section 3.5.5 of the LyX User
>>> Guide.
>>> You might also try the enumitem module (see section 3.6 of the PDF
>>> documentation for the enumitem package), but I've struggled to get that
>>> to
>>> work.
>>
>> I am looking for a simple and automatic way. But thanks, Paul!
>>
>> Paul
>
> Fully automatic (not to mention simple) may not be feasible. What if you
> have a zillion subitems under one main item (or a few really long subitems)?
> Theoretically, you could put LaTeX in a position where your subitem list
> exceeds a page length but it's not allowed to break up the list. So, while
> I'm not a LaTeX guru, my guess is that the best you'll be able to do with an
> "automatic" approach is to encourage, rather than force, LaTeX to break
> after a sublist rather than during (or at the start) of one.
>
> I believe that's what the penalty options in the enumitem package are
> intended to do, and I believe that you can set global values for those
> penalties. So, if I'm right, you should just need to make two tweaks to the
> document. Add the enumitem module in the document modules list, and add a
> line of LaTeX code in the preamble setting your penalties. IF I'm right (and
> IF you can get it to work).

Thanks again, Paul. I have tried playing with

midpenalty

but with no success. Other people have reported the same on several
forums on the Internet.

Anyway, I can resort to the manual way! :-)

Paul


Re: How to avoid breaking an item of enumerate?

2017-06-25 Thread Paul Smith
On Sun, Jun 25, 2017 at 7:09 PM, Paul A. Rubin  wrote:
>>
>> Dear All,
>>
>> Suppose one has the following:
>>
>> 1. blablabla
>> a) blablabla
>> b) blablabla
>> 2. blablabla
>> a) blablabla
>> b) blablabla
>>
>> How to automatically avoid breaking the page in the middle of the
>> inner items? For instance:
>>
>> Page 1
>>
>> 1. blablabla
>> a) blablabla
>>
>> Page 2
>>
>> b) blablabla
>> 2. blablabla
>> a) blablabla
>> b) blablabla
>>
>> In this example, the page break should be like the following:
>>
>> Page 1
>>
>> 1. blablabla
>> a) blablabla
>> b) blablabla
>>
>> Page 2
>>
>> 2. blablabla
>> a) blablabla
>> b) blablabla
>>
>> Thanks in advance,
>>
>> Paul
>
> You can manually force page breaks (after the document is "finalized") by
> inserting formatting instructions. See section 3.5.5 of the LyX User Guide.
> You might also try the enumitem module (see section 3.6 of the PDF
> documentation for the enumitem package), but I've struggled to get that to
> work.

I am looking for a simple and automatic way. But thanks, Paul!

Paul


How to avoid breaking an item of enumerate?

2017-06-25 Thread Paul Smith
Dear All,

Suppose one has the following:

1. blablabla
   a) blablabla
   b) blablabla
2. blablabla
   a) blablabla
   b) blablabla

How to automatically avoid breaking the page in the middle of the
inner items? For instance:

Page 1

1. blablabla
   a) blablabla

Page 2

   b) blablabla
2. blablabla
   a) blablabla
   b) blablabla

In this example, the page break should be like the following:

Page 1

1. blablabla
   a) blablabla
   b) blablabla

Page 2

2. blablabla
   a) blablabla
   b) blablabla

Thanks in advance,

Paul


Re: Inserting picture on all corners of a sheet

2017-05-04 Thread Paul Smith
On Thu, May 4, 2017 at 1:35 PM, Paul Smith <phh...@gmail.com> wrote:
>
> I would like to insert a picture on every corner of a sheet (the same
> picture on all corners). How can one do that?

I have meanwhile found out that the LaTeX package

textpos

does what I was needing to do:

https://www.ctan.org/pkg/textpos?lang=en

Paul


Re: How to insert a colored frame around a sub-matrix of matrix?

2017-05-04 Thread Paul Smith
On Sat, Apr 1, 2017 at 3:23 PM, Paul Smith <phh...@gmail.com> wrote:
>>
>> How to insert a colored frame around a sub-matrix of matrix? I am
>> using the \bmatrix environment.
>
> I have meanwhile found out a solution to my own problem, which I will
> post later.

As promised, I am attaching here an example. Please, notice the LaTeX preamble.

Paul


example_colored_frame_submatrix.lyx
Description: application/lyx


Inserting picture on all corners of a sheet

2017-05-04 Thread Paul Smith
Dear All,

I would like to insert a picture on every corner of a sheet (the same
picture on all corners). How can one do that?

Thanks in advance,

Paul


Re: How to insert a colored frame around a sub-matrix of matrix?

2017-04-01 Thread Paul Smith
On Fri, Mar 31, 2017 at 10:49 AM, Paul Smith <phh...@gmail.com> wrote:
>
> How to insert a colored frame around a sub-matrix of matrix? I am
> using the \bmatrix environment.

I have meanwhile found out a solution to my own problem, which I will
post later.

Paul


How to insert a colored frame around a sub-matrix of matrix?

2017-03-31 Thread Paul Smith
Dear All,

How to insert a colored frame around a sub-matrix of matrix? I am
using the \bmatrix environment.

Thanks in advance,

Paul


Re: How can one box a equation with a specified color?

2016-10-11 Thread Paul Smith
Thanks, Edu.

Meanwhile, I found out a solution with

\fcolorbox

Paul


On Tue, Oct 11, 2016 at 10:44 PM, edu Gpl <mandrivagn...@gmail.com> wrote:
> add this code in Document setting > local layou:
> 
> Style Law
>
> Category MainText
>
> Margin Static
>
> LatexType Environment
>
> LatexName bluec
>
> NextNoIndent 1
>
> LeftMargin MMM
>
> RightMargin MMM
>
> ParIndent MM
>
> ParSkip 0
>
> ItemSep 0
>
> TopSep 0.5
>
> BottomSep 0.5
>
> ParSep 0
>
> Align Block
>
> AlignPossible Block, Left, Right, Center
>
> Preamble
>
> \usepackage{mdframed}
>
> \usepackage{xcolor}
>
> \newenvironment{bluec}
>
> {\begin{mdframed}[backgroundcolor=blue!10,linecolor=blue!10,roundcorner=10pt]\quotation}
>
> {\endquotation\end{mdframed}}
>
> EndPreamble
>
> End
>
> %
>
>
>
> regards
>
> 2016-10-12 0:17 GMT+03:00 Paul Smith <phh...@gmail.com>:
>>
>> Dear All,
>>
>> How can one box a equation with a specified color?
>>
>> Thanks in advance,
>>
>> Paul
>
>


How can one box a equation with a specified color?

2016-10-11 Thread Paul Smith
Dear All,

How can one box a equation with a specified color?

Thanks in advance,

Paul


Re: How to bind the same key to different functions?

2016-06-12 Thread Paul Smith
On Sun, Jun 12, 2016 at 10:40 PM, Richard Heck  wrote:
>>
>> Is it possible to configure LyX to have the
>>
>> Return key
>>
>> bound to both the auto-complete feature and the newline insertion?
>
> If I'm understanding correctly, you could try binding Return to:
> command-alternatives completion-accept; paragraph-break

Thanks, Richard. Perfect: That is works as I wished it worked!

Paul


How to bind the same key to different functions?

2016-06-12 Thread Paul Smith
Dear All,

Is it possible to configure LyX to have the

Return key

bound to both the auto-complete feature and the newline insertion?

Thanks in advance,

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-04 Thread Paul Smith
On Thu, Feb 4, 2016 at 12:12 AM, Richard Heck  wrote:
>
> Sure it is. Use the ERT's in the same paragraph.
>
> Thanks, Kornel, but, unfortunately, your example does not work,
> because it fails to convert to the current stable LyX version.
>
> Put your cursor just after the first ERT, and press ctrl + return (at
> least this is the shortcut on Linux).
>
> Thanks, Scott, but that does not work. (Please, see and compile the
> attached example; it outputs a two-lines integral...)
>
> Ah I see what you mean. In Kornel's attachment the second ERT only
> contained the dollarsign and not the x, so it worked.
>
> For your example, add a % at the end of the first ERT (so inside the ERT
> at the very end).
>
> Thanks, Scott. That works!
>
> Also: Add in Local Layout, under Document> Settings:
>
> Format 41
>
> InsetLayout ERT
>
> MultiPar true
>
> End
>
> Then you can hit "return" inside ERT to get multiple lines.

Thanks, Richard, for your solution.

Paul


Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
Dear All,

Is it possible to break into different continuous lines a same LaTeX
command in ERT? Please, see the attached example, with which I get
errors.

Thanks in advance,

Paul


break_command.lyx
Description: application/lyx


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 3:29 PM, Paul Smith <phh...@gmail.com> wrote:
>>>
>>> Is it possible to break into different continuous lines a same LaTeX
>>> command in ERT? Please, see the attached example, with which I get
>>> errors.
>>
>> Why don't you use _one_ ERT for it? Works here that way.
>
> Thanks, Kornel, for your reply. The point is how to have two ERT boxes
> in different and consecutive lines and the corresponding LaTeX file
> with no blank line inserted between the code of the two ERT boxes. (My
> code is much more complicate than the simple example provided here by
> me.)

If the two ERT boxes break a LaTeX command in the middle (one ERT box
with the first part of the command and the second ERT box with the
second part), then you get an error. The point is: How to avoid such
an error, Kornel?

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 2:38 PM, Kornel Benko  wrote:
>>
>> Is it possible to break into different continuous lines a same LaTeX
>> command in ERT? Please, see the attached example, with which I get
>> errors.
>
> Why don't you use _one_ ERT for it? Works here that way.

Thanks, Kornel, for your reply. The point is how to have two ERT boxes
in different and consecutive lines and the corresponding LaTeX file
with no blank line inserted between the code of the two ERT boxes. (My
code is much more complicate than the simple example provided here by
me.)

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 3:48 PM, Kornel Benko  wrote:
>> >>>
>> >>> Is it possible to break into different continuous lines a same LaTeX
>> >>> command in ERT? Please, see the attached example, with which I get
>> >>> errors.
>> >>
>> >> Why don't you use _one_ ERT for it? Works here that way.
>> >
>> > Thanks, Kornel, for your reply. The point is how to have two ERT boxes
>> > in different and consecutive lines and the corresponding LaTeX file
>> > with no blank line inserted between the code of the two ERT boxes. (My
>> > code is much more complicate than the simple example provided here by
>> > me.)
>>
>> If the two ERT boxes break a LaTeX command in the middle (one ERT box
>> with the first part of the command and the second ERT box with the
>> second part), then you get an error. The point is: How to avoid such
>> an error, Kornel?
>
> The problem here is that the first '$' is in one paragraph, the other '$ is 
> in the next paragraph.
> The effect in created tex is:
> ...
> $\int x
>
> $
> ...

Correct, Kornel. But is it possible to have both in the same
paragraph, without having to use a single ERT box (instead of two
separate ERT boxes)? The reason why I am asking this question is to
have the possibility of arranging my several ERT boxes more clearly in
the LyX document, without having all of them in the same line.

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 4:18 PM, Kornel Benko  wrote:
>> >> >>>
>> >> >>> Is it possible to break into different continuous lines a same LaTeX
>> >> >>> command in ERT? Please, see the attached example, with which I get
>> >> >>> errors.
>> >> >>
>> >> >> Why don't you use _one_ ERT for it? Works here that way.
>> >> >
>> >> > Thanks, Kornel, for your reply. The point is how to have two ERT boxes
>> >> > in different and consecutive lines and the corresponding LaTeX file
>> >> > with no blank line inserted between the code of the two ERT boxes. (My
>> >> > code is much more complicate than the simple example provided here by
>> >> > me.)
>> >>
>> >> If the two ERT boxes break a LaTeX command in the middle (one ERT box
>> >> with the first part of the command and the second ERT box with the
>> >> second part), then you get an error. The point is: How to avoid such
>> >> an error, Kornel?
>> >
>> > The problem here is that the first '$' is in one paragraph, the other '$ 
>> > is in the next paragraph.
>> > The effect in created tex is:
>> > ...
>> > $\int x
>> >
>> > $
>> > ...
>>
>> Correct, Kornel. But is it possible to have both in the same
>> paragraph, without having to use a single ERT box (instead of two
>> separate ERT boxes)? The reason why I am asking this question is to
>> have the possibility of arranging my several ERT boxes more clearly in
>> the LyX document, without having all of them in the same line.
>
> Sure it is. Use the ERT's in the same paragraph.

Thanks, Kornel, but, unfortunately, your example does not work,
because it fails to convert to the current stable LyX version.

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 5:41 PM, Scott Kostyshak  wrote:
>> >
>> >> > Sure it is. Use the ERT's in the same paragraph.
>> >>
>> >> Thanks, Kornel, but, unfortunately, your example does not work,
>> >> because it fails to convert to the current stable LyX version.
>> >
>> > Put your cursor just after the first ERT, and press ctrl + return (at
>> > least this is the shortcut on Linux).
>>
>> Thanks, Scott, but that does not work. (Please, see and compile the
>> attached example; it outputs a two-lines integral...)
>
> Ah I see what you mean. In Kornel's attachment the second ERT only
> contained the dollarsign and not the x, so it worked.
>
> For your example, add a % at the end of the first ERT (so inside the ERT
> at the very end).

Thanks, Scott. That works!

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 4:44 PM, Scott Kostyshak  wrote:
>
>> > Sure it is. Use the ERT's in the same paragraph.
>>
>> Thanks, Kornel, but, unfortunately, your example does not work,
>> because it fails to convert to the current stable LyX version.
>
> Put your cursor just after the first ERT, and press ctrl + return (at
> least this is the shortcut on Linux).

Thanks, Scott, but that does not work. (Please, see and compile the
attached example; it outputs a two-lines integral...)

Paul


broken_ert_boxes_example2.lyx
Description: application/lyx


Re: Importing lyx files into a lyx file with a command line

2016-02-02 Thread Paul Smith
On Mon, Feb 1, 2016 at 7:00 PM, Scott Kostyshak  wrote:
>> >> >> >>
>> >> >> >> I am trying to import the file y.lyx (attached) into the file x.lyx
>> >> >> >> (also attached) with the following command:
>> >> >> >>
>> >> >> >> lyx x.lyx -batch -i lyx y.lyx
>> >> >> >>
>> >> >> >> Unfortunately, y.lyx is not imported into x.lyx. Any ideas?
>> >> >> >
>> >> >> > Dear Paul,
>> >> >> >
>> >> >> > I believe that the command-line import is the analogy of the GUI 
>> >> >> > File >
>> >> >> > Import. Further, I think that if you import a document, I think it
>> >> >> > becomes its own .lyx file. What is the GUI equivalent of what you 
>> >> >> > want
>> >> >> > to do? Perhaps Insert > File > LyX Document?
>> >> >> >
>> >> >> > After we figure out the GUI equivalent, perhaps someone will have an
>> >> >> > idea for how to do it on the command line.
>> >> >>
>> >> >> Thanks, Scott, for your reply.
>> >> >>
>> >> >> Indeed, I would like to do with a command what one gets with
>> >> >>
>> >> >> GUI -> Insert -> File -> LyX Document.
>> >> >
>> >> > OK. And where in your document would you like that command to be issued?
>> >>
>> >> I would like to have y.lyx inserted at the end of document x.lyx. Thanks, 
>> >> Scott.
>> >
>> > As a start, it would be good to figure out which underlying LyX LFUNs
>> > replicate this GUI behavior. Are you familiar with how to do that?
>>
>> No, Scott, I am not familiar at all with LyX LFUNs.
>
> OK, the first step then is to be familiar with LFUNs. Then we can try to
> automate things. LFUNs are how LyX performs actions. Usually they are
> behind the scenes, but you can also use LyX's "scripting language" to
> replicate behavior. See here for a general description (and follow the
> links in there):
> https://wiki.lyx.org/LyX/Mini-buffer
> See also Help > LyX functions
> Finally, to figure out which LFUNs the GUI is running, see here:
> http://tex.stackexchange.com/questions/208510/lyx-commands-to-insert-wysiwyg-horizontal-line-for-keyboard-shortcut/208531#208531
>
> Let us know once you are able to figure out the command-sequence to put
> the cursor at the end of the document and insert the LyX file. Can you
> get it to work how you want in the minibuffer?
>
> Once you figure that out, then you can try it on the command line. See
> lyx --help, in particular the -x option.
>
> If you get lost at any of the above steps, please feel free to ask us
> for help. Be clear with what you have tried so far and where exactly you
> get stuck

Thanks, Scott, for the directions you have offered me. I did not
imagine that would be so complicated, as the documentation only refers
using the option

-i lyx filename.lyx

in the command.

Paul


Re: Importing lyx files into a lyx file with a command line

2016-01-31 Thread Paul Smith
On Sun, Jan 31, 2016 at 6:37 PM, Scott Kostyshak  wrote:
>>
>> I am trying to import the file y.lyx (attached) into the file x.lyx
>> (also attached) with the following command:
>>
>> lyx x.lyx -batch -i lyx y.lyx
>>
>> Unfortunately, y.lyx is not imported into x.lyx. Any ideas?
>
> Dear Paul,
>
> I believe that the command-line import is the analogy of the GUI File >
> Import. Further, I think that if you import a document, I think it
> becomes its own .lyx file. What is the GUI equivalent of what you want
> to do? Perhaps Insert > File > LyX Document?
>
> After we figure out the GUI equivalent, perhaps someone will have an
> idea for how to do it on the command line.

Thanks, Scott, for your reply.

Indeed, I would like to do with a command what one gets with

GUI -> Insert -> File -> LyX Document.

Paul


Re: Importing lyx files into a lyx file with a command line

2016-01-31 Thread Paul Smith
On Sun, Jan 31, 2016 at 6:54 PM, Scott Kostyshak  wrote:
>> >>
>> >> I am trying to import the file y.lyx (attached) into the file x.lyx
>> >> (also attached) with the following command:
>> >>
>> >> lyx x.lyx -batch -i lyx y.lyx
>> >>
>> >> Unfortunately, y.lyx is not imported into x.lyx. Any ideas?
>> >
>> > Dear Paul,
>> >
>> > I believe that the command-line import is the analogy of the GUI File >
>> > Import. Further, I think that if you import a document, I think it
>> > becomes its own .lyx file. What is the GUI equivalent of what you want
>> > to do? Perhaps Insert > File > LyX Document?
>> >
>> > After we figure out the GUI equivalent, perhaps someone will have an
>> > idea for how to do it on the command line.
>>
>> Thanks, Scott, for your reply.
>>
>> Indeed, I would like to do with a command what one gets with
>>
>> GUI -> Insert -> File -> LyX Document.
>
> OK. And where in your document would you like that command to be issued?

I would like to have y.lyx inserted at the end of document x.lyx. Thanks, Scott.

Paul


Re: Importing lyx files into a lyx file with a command line

2016-01-31 Thread Paul Smith
On Sun, Jan 31, 2016 at 7:50 PM, Scott Kostyshak  wrote:
>> >> >>
>> >> >> I am trying to import the file y.lyx (attached) into the file x.lyx
>> >> >> (also attached) with the following command:
>> >> >>
>> >> >> lyx x.lyx -batch -i lyx y.lyx
>> >> >>
>> >> >> Unfortunately, y.lyx is not imported into x.lyx. Any ideas?
>> >> >
>> >> > Dear Paul,
>> >> >
>> >> > I believe that the command-line import is the analogy of the GUI File >
>> >> > Import. Further, I think that if you import a document, I think it
>> >> > becomes its own .lyx file. What is the GUI equivalent of what you want
>> >> > to do? Perhaps Insert > File > LyX Document?
>> >> >
>> >> > After we figure out the GUI equivalent, perhaps someone will have an
>> >> > idea for how to do it on the command line.
>> >>
>> >> Thanks, Scott, for your reply.
>> >>
>> >> Indeed, I would like to do with a command what one gets with
>> >>
>> >> GUI -> Insert -> File -> LyX Document.
>> >
>> > OK. And where in your document would you like that command to be issued?
>>
>> I would like to have y.lyx inserted at the end of document x.lyx. Thanks, 
>> Scott.
>
> As a start, it would be good to figure out which underlying LyX LFUNs
> replicate this GUI behavior. Are you familiar with how to do that?

No, Scott, I am not familiar at all with LyX LFUNs.

Paul


Importing lyx files into a lyx file with a command line

2016-01-30 Thread Paul Smith
Dear All,

I am trying to import the file y.lyx (attached) into the file x.lyx
(also attached) with the following command:

lyx x.lyx -batch -i lyx y.lyx

Unfortunately, y.lyx is not imported into x.lyx. Any ideas?

Thanks in advance,

Paul


x.lyx
Description: application/lyx


y.lyx
Description: application/lyx


Re: Looking for an automatic way of shuffling the items of enumerate

2016-01-20 Thread Paul Smith
On Wed, Jan 20, 2016 at 6:00 PM, Christopher Menzel
 wrote:
>>
>> Is there some automatic or semi-automatic way of shuffling the items
>> of an enumerate environment?
>
> If I'm understanding you, under OS X, Cmd- and Cmd- allow you move 
> enumerated items up or down in an enumerated list. I reckon Ctrl- and 
> Ctrl- do the same thing under Windows and Linux.


Thanks, Chris, but that is not exactly what I am looking for.

I am lookign for something like this:

---
\starttext
\startitemize[n,random]
  \startitem One \stopitem
  \startitem Two \stopitem
  \startitem Three \stopitem
  \startitem Four \stopitem
  \startitem Five \stopitem
  \startitem Six \stopitem
\stopitemize
\stoptext
---

Please, see:

http://tex.stackexchange.com/questions/96645/random-shuffle-itemize

Paul


Looking for an automatic way of shuffling the items of enumerate

2016-01-20 Thread Paul Smith
Dear All,

Is there some automatic or semi-automatic way of shuffling the items
of an enumerate environment?

Thanks in advance,

Paul


Re: How to increase the height of all rows of a specified table?

2016-01-20 Thread Paul Smith
On Wed, Jan 20, 2016 at 12:59 AM, Uwe Stöhr  wrote:
>
>> I am trying to increase the height of all rows of a specific table of
>> a document (not all tables).
>
> See sec. 2.14.1 "Row Spacing" of the EmbeddedObjects manual that you find in
> LyX's help menu.
>
> There you find that you can add e.g. this code to your document preamble:
>
> % used to have extra space in table cells
> \@ifundefined{extrarowheight}
>  {\usepackage{array}}{}
> \setlength{\extrarowheight}{2pt}
>
> If you only want the 2pt space only for one table, add this as TeX code
> before the table:
>
> % used to have extra space in table cells
> \@ifundefined{extrarowheight}
>  {\usepackage{array}}{}
> \setlength{\extrarowheight}{2pt}
>
> and this behind it:
>
> % used to have extra space in table cells
> \@ifundefined{extrarowheight}
>  {\usepackage{array}}{}
> \setlength{\extrarowheight}{0pt}

Thanks, Uwe. There was an error with

\@ifundefined{extrarowheight}
{\usepackage{array}}{}

but after having removed that, it works perfectly. I mean, it suffices to use

\setlength{\extrarowheight}{2pt}

and

\setlength{\extrarowheight}{0pt}

Paul


How to increase the height of all rows of a specified table?

2016-01-19 Thread Paul Smith
Dear All,

I am trying to increase the height of all rows of a specific table of
a document (not all tables). I have played with

"More...->Settings...->Border"

under

"Additional space",

but with no great success, as the borders break as the height of the
rows is increased.

Any ideas?

Thanks in advance,

Paul


Re: How to highlight a specific line inside a Program Listings?

2015-12-04 Thread Paul Smith
Thanks, John. Could you please post here your example?

Paul


On Fri, Dec 4, 2015 at 2:22 PM, John Kane <jrkrid...@gmail.com> wrote:
> http://tex.stackexchange.com/questions/198064/highlighting-a-line-in-program-listings-in-lyx
> seems to work.  Or, at least, I got it to work with about 15 minutes
> fiddling.
>
> On 4 December 2015 at 08:00, Paul Smith <phh...@gmail.com> wrote:
>>
>> Dear All,
>>
>> Is there some way fo accomplish this in LyX?
>>
>> Thanks in advance,
>>
>> Paul
>
>
>
>
> --
> John Kane
> Kingston ON Canada


Re: How to highlight a specific line inside a Program Listings?

2015-12-04 Thread Paul Smith
Thank you very indeed, John! Your example is brilliant and extremely helpful!

Paul


On Fri, Dec 4, 2015 at 3:22 PM, John Kane <jrkrid...@gmail.com> wrote:
> Sure, note that all I did was muck about with the example provided; the
> instructions seemed a bit muddled but dedicated plagar^H^H copying worked.
>
> On 4 December 2015 at 10:03, Paul Smith <phh...@gmail.com> wrote:
>>
>> Thanks, John. Could you please post here your example?
>>
>> Paul
>>
>>
>> On Fri, Dec 4, 2015 at 2:22 PM, John Kane <jrkrid...@gmail.com> wrote:
>> >
>> > http://tex.stackexchange.com/questions/198064/highlighting-a-line-in-program-listings-in-lyx
>> > seems to work.  Or, at least, I got it to work with about 15 minutes
>> > fiddling.
>> >
>> > On 4 December 2015 at 08:00, Paul Smith <phh...@gmail.com> wrote:
>> >>
>> >> Dear All,
>> >>
>> >> Is there some way fo accomplish this in LyX?
>> >>
>> >> Thanks in advance,
>> >>
>> >> Paul
>> >
>> >
>> >
>> >
>> > --
>> > John Kane
>> > Kingston ON Canada
>
>
>
>
> --
> John Kane
> Kingston ON Canada


How to highlight a specific line inside a Program Listings?

2015-12-04 Thread Paul Smith
Dear All,

Is there some way fo accomplish this in LyX?

Thanks in advance,

Paul


Keyboard inbuilt shortcuts are not working on Fedora 21

2014-12-30 Thread Paul Smith
Dear All,

I am using LyX on Fedora 21, but contrarily to LyX on previous
versions of Fedora, the keyboard inbuilt shortcuts are not working.
For example,

CTRL + M

does not anymore inserts a inline math formula.

Any ideas?

Thanks in advance,

Paul


Re: Keyboard inbuilt shortcuts are not working on Fedora 21

2014-12-30 Thread Paul Smith
On Tue, Dec 30, 2014 at 6:25 PM, Scott Kostyshak skost...@lyx.org wrote:
 I am using LyX on Fedora 21, but contrarily to LyX on previous
 versions of Fedora, the keyboard inbuilt shortcuts are not working.
 For example,

 CTRL + M

 does not anymore inserts a inline math formula.

 Any ideas?

 Hi Paul,

 I don't think I'm heard of something like this, from Fedora users or
 anyone. That certainly sounds frustrating.

 Which LyX version are you using and how did you install it?

 Can you please start LyX from the terminal with the following command?

 lyx -dbg 68  logfile.txt

 Then try CTRL + M.
 Then exit LyX.

 To give some more details on where 68 comes from, I did lyx -dbg |
 grep -i key to see which debug flags we could turn on that have to do
 with key events. That gave two results, 64 and 4. By adding those
 together we turn both of them on.

 Can you then send the logfile.txt that is created in whichever
 directory you ran the above command from?

Thanks, Scott, for your reply.

I have meanwhile found out the source of the reported problem: I copied my

.lyx

directory to a computer where I have a different username.

So, after having accordingly fixed the paths in the preferences file,
the problem disappeared.

Paul


Keyboard inbuilt shortcuts are not working on Fedora 21

2014-12-30 Thread Paul Smith
Dear All,

I am using LyX on Fedora 21, but contrarily to LyX on previous
versions of Fedora, the keyboard inbuilt shortcuts are not working.
For example,

CTRL + M

does not anymore inserts a inline math formula.

Any ideas?

Thanks in advance,

Paul


Re: Keyboard inbuilt shortcuts are not working on Fedora 21

2014-12-30 Thread Paul Smith
On Tue, Dec 30, 2014 at 6:25 PM, Scott Kostyshak skost...@lyx.org wrote:
 I am using LyX on Fedora 21, but contrarily to LyX on previous
 versions of Fedora, the keyboard inbuilt shortcuts are not working.
 For example,

 CTRL + M

 does not anymore inserts a inline math formula.

 Any ideas?

 Hi Paul,

 I don't think I'm heard of something like this, from Fedora users or
 anyone. That certainly sounds frustrating.

 Which LyX version are you using and how did you install it?

 Can you please start LyX from the terminal with the following command?

 lyx -dbg 68  logfile.txt

 Then try CTRL + M.
 Then exit LyX.

 To give some more details on where 68 comes from, I did lyx -dbg |
 grep -i key to see which debug flags we could turn on that have to do
 with key events. That gave two results, 64 and 4. By adding those
 together we turn both of them on.

 Can you then send the logfile.txt that is created in whichever
 directory you ran the above command from?

Thanks, Scott, for your reply.

I have meanwhile found out the source of the reported problem: I copied my

.lyx

directory to a computer where I have a different username.

So, after having accordingly fixed the paths in the preferences file,
the problem disappeared.

Paul


Keyboard inbuilt shortcuts are not working on Fedora 21

2014-12-30 Thread Paul Smith
Dear All,

I am using LyX on Fedora 21, but contrarily to LyX on previous
versions of Fedora, the keyboard inbuilt shortcuts are not working.
For example,

CTRL + M

does not anymore inserts a inline math formula.

Any ideas?

Thanks in advance,

Paul


Re: Keyboard inbuilt shortcuts are not working on Fedora 21

2014-12-30 Thread Paul Smith
On Tue, Dec 30, 2014 at 6:25 PM, Scott Kostyshak  wrote:
>> I am using LyX on Fedora 21, but contrarily to LyX on previous
>> versions of Fedora, the keyboard inbuilt shortcuts are not working.
>> For example,
>>
>> CTRL + M
>>
>> does not anymore inserts a inline math formula.
>>
>> Any ideas?
>
> Hi Paul,
>
> I don't think I'm heard of something like this, from Fedora users or
> anyone. That certainly sounds frustrating.
>
> Which LyX version are you using and how did you install it?
>
> Can you please start LyX from the terminal with the following command?
>
> lyx -dbg 68 > logfile.txt
>
> Then try "CTRL + M".
> Then exit LyX.
>
> To give some more details on where "68" comes from, I did "lyx -dbg |
> grep -i key" to see which debug flags we could turn on that have to do
> with key events. That gave two results, 64 and 4. By adding those
> together we turn both of them on.
>
> Can you then send the logfile.txt that is created in whichever
> directory you ran the above command from?

Thanks, Scott, for your reply.

I have meanwhile found out the source of the reported problem: I copied my

.lyx

directory to a computer where I have a different username.

So, after having accordingly fixed the paths in the preferences file,
the problem disappeared.

Paul


Re: Adjusting vertical space between picture and caption of a sub-figure

2012-07-11 Thread Paul Smith
On Wed, Jul 11, 2012 at 8:57 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Thanks, Marcelo, but that does not work. (I had tried that both inside
 the caption and before the caption.) Any further ideas?

 I would consult the manual(s) of the subfig and/or caption package(s).
 There is very likely a setting for this.

Thanks, Jürgen. Actually, LyX uses the package subfloat (and not the
subfigure one). I consulted the manual of the package subfloat, but
found nothing. As a workaround, I increased the vertical size at the
bottom of my picture.

Paul


Re: Adjusting vertical space between picture and caption of a sub-figure

2012-07-11 Thread Paul Smith
On Wed, Jul 11, 2012 at 11:15 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Thanks, Jürgen. Actually, LyX uses the package subfloat (and not the
 subfigure one). I consulted the manual of the package subfloat, but
 found nothing.

 No, LyX uses the package subfig (not subfloat, not subfigure), which
 itself hooks into the caption package.

 Something like
 \captionsetup[subfloat]{captionskip=additional value}
 in ERT in the main float (before the actual subfloat) should do it for
 single floats.

 For a global change, put
 \AtBeginDocument{%
 \captionsetup[subfloat]{captionskip=additional value}
 }
 in preamble.

Thanks, Jürgen. That did the trick!

By consulting the source of my LyX document, I saw the word
'subfloat', and therefore I thought it was the package subfloat the
one being used.

Paul


Re: Adjusting vertical space between picture and caption of a sub-figure

2012-07-11 Thread Paul Smith
On Wed, Jul 11, 2012 at 8:57 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Thanks, Marcelo, but that does not work. (I had tried that both inside
 the caption and before the caption.) Any further ideas?

 I would consult the manual(s) of the subfig and/or caption package(s).
 There is very likely a setting for this.

Thanks, Jürgen. Actually, LyX uses the package subfloat (and not the
subfigure one). I consulted the manual of the package subfloat, but
found nothing. As a workaround, I increased the vertical size at the
bottom of my picture.

Paul


Re: Adjusting vertical space between picture and caption of a sub-figure

2012-07-11 Thread Paul Smith
On Wed, Jul 11, 2012 at 11:15 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Thanks, Jürgen. Actually, LyX uses the package subfloat (and not the
 subfigure one). I consulted the manual of the package subfloat, but
 found nothing.

 No, LyX uses the package subfig (not subfloat, not subfigure), which
 itself hooks into the caption package.

 Something like
 \captionsetup[subfloat]{captionskip=additional value}
 in ERT in the main float (before the actual subfloat) should do it for
 single floats.

 For a global change, put
 \AtBeginDocument{%
 \captionsetup[subfloat]{captionskip=additional value}
 }
 in preamble.

Thanks, Jürgen. That did the trick!

By consulting the source of my LyX document, I saw the word
'subfloat', and therefore I thought it was the package subfloat the
one being used.

Paul


Re: Adjusting vertical space between picture and caption of a sub-figure

2012-07-11 Thread Paul Smith
On Wed, Jul 11, 2012 at 8:57 AM, Jürgen Spitzmüller  wrote:
>> Thanks, Marcelo, but that does not work. (I had tried that both inside
>> the caption and before the caption.) Any further ideas?
>
> I would consult the manual(s) of the subfig and/or caption package(s).
> There is very likely a setting for this.

Thanks, Jürgen. Actually, LyX uses the package subfloat (and not the
subfigure one). I consulted the manual of the package subfloat, but
found nothing. As a workaround, I increased the vertical size at the
bottom of my picture.

Paul


Re: Adjusting vertical space between picture and caption of a sub-figure

2012-07-11 Thread Paul Smith
On Wed, Jul 11, 2012 at 11:15 AM, Jürgen Spitzmüller  wrote:
>> Thanks, Jürgen. Actually, LyX uses the package subfloat (and not the
>> subfigure one). I consulted the manual of the package subfloat, but
>> found nothing.
>
> No, LyX uses the package subfig (not subfloat, not subfigure), which
> itself hooks into the caption package.
>
> Something like
> \captionsetup[subfloat]{captionskip=}
> in ERT in the main float (before the actual subfloat) should do it for
> single floats.
>
> For a global change, put
> \AtBeginDocument{%
> \captionsetup[subfloat]{captionskip=}
> }
> in preamble.

Thanks, Jürgen. That did the trick!

By consulting the source of my LyX document, I saw the word
'subfloat', and therefore I thought it was the package subfloat the
one being used.

Paul


Re: Adjusting vertical space between picture and caption of a sub-figure

2012-07-10 Thread Paul Smith
On Tue, Jul 10, 2012 at 3:17 PM, Marcelo Acuña mv...@yahoo.com.ar wrote:
How can one adjust the vertical space between the picture and the
caption in a float sub-figure? In my case, I would like to increase
such vertical space.

 Insert  Formatting  Vertical Space

Thanks, Marcelo, but that does not work. (I had tried that both inside
the caption and before the caption.) Any further ideas?

Paul


Re: Adjusting vertical space between picture and caption of a sub-figure

2012-07-10 Thread Paul Smith
On Tue, Jul 10, 2012 at 3:17 PM, Marcelo Acuña mv...@yahoo.com.ar wrote:
How can one adjust the vertical space between the picture and the
caption in a float sub-figure? In my case, I would like to increase
such vertical space.

 Insert  Formatting  Vertical Space

Thanks, Marcelo, but that does not work. (I had tried that both inside
the caption and before the caption.) Any further ideas?

Paul


Re: Adjusting vertical space between picture and caption of a sub-figure

2012-07-10 Thread Paul Smith
On Tue, Jul 10, 2012 at 3:17 PM, Marcelo Acuña  wrote:
>>How can one adjust the vertical space between the picture and the
>>caption in a float sub-figure? In my case, I would like to increase
>>such vertical space.
>
> Insert > Formatting > Vertical Space

Thanks, Marcelo, but that does not work. (I had tried that both inside
the caption and before the caption.) Any further ideas?

Paul


Bibliography inside the main LaTeX file

2011-12-26 Thread Paul Smith
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,

Paul


Re: Bibliography inside the main LaTeX file

2011-12-26 Thread Paul Smith
On Mon, Dec 26, 2011 at 5:13 PM, Christopher Menzel cmen...@tamu.edu wrote:
 BibTeX creates a file YourFile.bbl when you run it on YourFile.tex. Just 
 remove the command \bibliography{YourBibFile} from YourFile.tex and replace 
 it with the contents of YourFile.bbl.

 Chris Menzel

 Am Dec 26, 2011 um 4:39 PM schrieb Paul Smith:

 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 for your help.

Paul


Bibliography inside the main LaTeX file

2011-12-26 Thread Paul Smith
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,

Paul


Re: Bibliography inside the main LaTeX file

2011-12-26 Thread Paul Smith
On Mon, Dec 26, 2011 at 5:13 PM, Christopher Menzel cmen...@tamu.edu wrote:
 BibTeX creates a file YourFile.bbl when you run it on YourFile.tex. Just 
 remove the command \bibliography{YourBibFile} from YourFile.tex and replace 
 it with the contents of YourFile.bbl.

 Chris Menzel

 Am Dec 26, 2011 um 4:39 PM schrieb Paul Smith:

 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 for your help.

Paul


Bibliography inside the main LaTeX file

2011-12-26 Thread Paul Smith
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,

Paul


Re: Bibliography inside the main LaTeX file

2011-12-26 Thread Paul Smith
On Mon, Dec 26, 2011 at 5:13 PM, Christopher Menzel <cmen...@tamu.edu> wrote:
> BibTeX creates a file YourFile.bbl when you run it on YourFile.tex. Just 
> remove the command \bibliography{YourBibFile} from YourFile.tex and replace 
> it with the contents of YourFile.bbl.
>
> Chris Menzel
>
> Am Dec 26, 2011 um 4:39 PM schrieb Paul Smith:
>
>> 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 for your help.

Paul


Re: Colorful boxes for mathematical formulas

2011-11-26 Thread Paul Smith
On Fri, Nov 25, 2011 at 10:58 PM, Paul A. Rubin ru...@msu.edu wrote:
  Is there some way of boxing mathematical formulas with a red box? I
  have tried with \fbox, but getting only black boxes.

 Any clue?

 Preamble:
 \usepackage{xcolor}

 Text:
 ERT: \fcolorbox{black}{red}{
 math inset
 ERT: }

Thanks, Paul. It works when the equation is in inline style, but not
when in display style -- an error is generated while producing the pdf
file. Any ideas?

Paul


Re: Colorful boxes for mathematical formulas

2011-11-26 Thread Paul Smith
On Fri, Nov 25, 2011 at 10:58 PM, Paul A. Rubin ru...@msu.edu wrote:
  Is there some way of boxing mathematical formulas with a red box? I
  have tried with \fbox, but getting only black boxes.

 Any clue?

 Preamble:
 \usepackage{xcolor}

 Text:
 ERT: \fcolorbox{black}{red}{
 math inset
 ERT: }

Thanks, Paul. It works when the equation is in inline style, but not
when in display style -- an error is generated while producing the pdf
file. Any ideas?

Paul


Re: Colorful boxes for mathematical formulas

2011-11-26 Thread Paul Smith
On Fri, Nov 25, 2011 at 10:58 PM, Paul A. Rubin  wrote:
>> > Is there some way of boxing mathematical formulas with a red box? I
>> > have tried with \fbox, but getting only black boxes.
>>
>> Any clue?
>
> Preamble:
> \usepackage{xcolor}
>
> Text:
> ERT: \fcolorbox{black}{red}{
> math inset
> ERT: }

Thanks, Paul. It works when the equation is in inline style, but not
when in display style -- an error is generated while producing the pdf
file. Any ideas?

Paul


Re: Colorful boxes for mathematical formulas

2011-11-22 Thread Paul Smith
 Is there some way of boxing mathematical formulas with a red box? I
 have tried with \fbox, but getting only black boxes.

Any clue?

Thanks,

Paul


Re: Colorful boxes for mathematical formulas

2011-11-22 Thread Paul Smith
 Is there some way of boxing mathematical formulas with a red box? I
 have tried with \fbox, but getting only black boxes.

Any clue?

Thanks,

Paul


Re: Colorful boxes for mathematical formulas

2011-11-22 Thread Paul Smith
> Is there some way of boxing mathematical formulas with a red box? I
> have tried with \fbox, but getting only black boxes.

Any clue?

Thanks,

Paul


Colorful boxes for mathematical formulas

2011-11-19 Thread Paul Smith
Dear All,

Is there some way of boxing mathematical formulas with a red box? I
have tried with \fbox, but getting only black boxes.

Thanks in advance,

Paul


Colorful boxes for mathematical formulas

2011-11-19 Thread Paul Smith
Dear All,

Is there some way of boxing mathematical formulas with a red box? I
have tried with \fbox, but getting only black boxes.

Thanks in advance,

Paul


Colorful boxes for mathematical formulas

2011-11-19 Thread Paul Smith
Dear All,

Is there some way of boxing mathematical formulas with a red box? I
have tried with \fbox, but getting only black boxes.

Thanks in advance,

Paul


Chain rule tree diagram

2011-11-03 Thread Paul Smith
Dear All,

Is there some way of drawing in a LyX document a chain rule diagram?
Please, see an example of what I am wanting at:

http://tutorial.math.lamar.edu/Classes/CalcIII/ChainRule_files/image001.gif

Thanks in advance,

Paul


Re: Chain rule tree diagram

2011-11-03 Thread Paul Smith
On Thu, Nov 3, 2011 at 6:16 PM, Ernesto Posse epo...@gmail.com wrote:
 Is there some way of drawing in a LyX document a chain rule diagram?
 Please, see an example of what I am wanting at:

 http://tutorial.math.lamar.edu/Classes/CalcIII/ChainRule_files/image001.gif

 While there is no direct way of doing that in lyx, there are useful
 alternatives. My favourite is the XY-pic package
 (http://www.tug.org/applications/Xy-pic/), which is useful for all
 kinds of diagrams.

 To use it you need to install XY-pic (the 'xy' latex package), and in
 LyX, in the preamble (Documents-Settings-LaTeX preamble) you should
 write

 \usepackage[all]{xy}

 \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} %this line is
 only for your specific diagram

 Then in the body, you create an ERT box (Ctrl-L) and inside you can
 put the following:

 \[
 \xymatrix{
         z \ar@{-}[dll]_{\pd{z}{x}} \ar@{-}[drr]^{\pd{z}{y}}          \\
   x \ar@{-}[dl]_{\pd{x}{s}} \ar@{-}[dr]^{\pd{x}{t}}           y
 \ar@{-}[dl]_{\pd{y}{s}} \ar@{-}[dr]^{\pd{y}{t}}    \\
 s     t     s     t \\
 }
 \]

 A first look at this might seem daunting, but once you read the xy
 user's guide it will seem quite straight-forward.

Thanks a lot, Ernesto. That is exactly what I was looking for.

Paul


Chain rule tree diagram

2011-11-03 Thread Paul Smith
Dear All,

Is there some way of drawing in a LyX document a chain rule diagram?
Please, see an example of what I am wanting at:

http://tutorial.math.lamar.edu/Classes/CalcIII/ChainRule_files/image001.gif

Thanks in advance,

Paul


Re: Chain rule tree diagram

2011-11-03 Thread Paul Smith
On Thu, Nov 3, 2011 at 6:16 PM, Ernesto Posse epo...@gmail.com wrote:
 Is there some way of drawing in a LyX document a chain rule diagram?
 Please, see an example of what I am wanting at:

 http://tutorial.math.lamar.edu/Classes/CalcIII/ChainRule_files/image001.gif

 While there is no direct way of doing that in lyx, there are useful
 alternatives. My favourite is the XY-pic package
 (http://www.tug.org/applications/Xy-pic/), which is useful for all
 kinds of diagrams.

 To use it you need to install XY-pic (the 'xy' latex package), and in
 LyX, in the preamble (Documents-Settings-LaTeX preamble) you should
 write

 \usepackage[all]{xy}

 \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} %this line is
 only for your specific diagram

 Then in the body, you create an ERT box (Ctrl-L) and inside you can
 put the following:

 \[
 \xymatrix{
         z \ar@{-}[dll]_{\pd{z}{x}} \ar@{-}[drr]^{\pd{z}{y}}          \\
   x \ar@{-}[dl]_{\pd{x}{s}} \ar@{-}[dr]^{\pd{x}{t}}           y
 \ar@{-}[dl]_{\pd{y}{s}} \ar@{-}[dr]^{\pd{y}{t}}    \\
 s     t     s     t \\
 }
 \]

 A first look at this might seem daunting, but once you read the xy
 user's guide it will seem quite straight-forward.

Thanks a lot, Ernesto. That is exactly what I was looking for.

Paul


Chain rule tree diagram

2011-11-03 Thread Paul Smith
Dear All,

Is there some way of drawing in a LyX document a chain rule diagram?
Please, see an example of what I am wanting at:

http://tutorial.math.lamar.edu/Classes/CalcIII/ChainRule_files/image001.gif

Thanks in advance,

Paul


Re: Chain rule tree diagram

2011-11-03 Thread Paul Smith
On Thu, Nov 3, 2011 at 6:16 PM, Ernesto Posse  wrote:
>> Is there some way of drawing in a LyX document a chain rule diagram?
>> Please, see an example of what I am wanting at:
>>
>> http://tutorial.math.lamar.edu/Classes/CalcIII/ChainRule_files/image001.gif
>
> While there is no direct way of doing that in lyx, there are useful
> alternatives. My favourite is the XY-pic package
> (http://www.tug.org/applications/Xy-pic/), which is useful for all
> kinds of diagrams.
>
> To use it you need to install XY-pic (the 'xy' latex package), and in
> LyX, in the preamble (Documents->Settings->LaTeX preamble) you should
> write
>
> \usepackage[all]{xy}
>
> \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} %this line is
> only for your specific diagram
>
> Then in the body, you create an ERT box (Ctrl-L) and inside you can
> put the following:
>
> \[
> \xymatrix{
>  &   &   & z \ar@{-}[dll]_{\pd{z}{x}} \ar@{-}[drr]^{\pd{z}{y}} &   &   &   \\
>  & x \ar@{-}[dl]_{\pd{x}{s}} \ar@{-}[dr]^{\pd{x}{t}} &   &   &   & y
> \ar@{-}[dl]_{\pd{y}{s}} \ar@{-}[dr]^{\pd{y}{t}} &   \\
> s &   & t &   & s &   & t \\
> }
> \]
>
> A first look at this might seem daunting, but once you read the xy
> user's guide it will seem quite straight-forward.

Thanks a lot, Ernesto. That is exactly what I was looking for.

Paul


Re: Underbar and math display style

2011-09-22 Thread Paul Smith
On Thu, Sep 22, 2011 at 12:44 AM, Julien Rioux
jri...@physics.utoronto.ca wrote:
 Write a short paragraph, select it and add an underbar to it.
 Afterwards, introduce a formula in display style -- you will not be
 able of compiling your document. (Please, see the attached example.)

 Is this a bug?

 Yes. I couldn't find any report of this bug. Could you please report it
 here:
 http://www.lyx.org/trac/wiki/BugTrackerHome

Done, Julien:

http://www.lyx.org/trac/ticket/7788

Thanks,

Paul


Re: Underbar and math display style

2011-09-22 Thread Paul Smith
On Thu, Sep 22, 2011 at 12:44 AM, Julien Rioux
jri...@physics.utoronto.ca wrote:
 Write a short paragraph, select it and add an underbar to it.
 Afterwards, introduce a formula in display style -- you will not be
 able of compiling your document. (Please, see the attached example.)

 Is this a bug?

 Yes. I couldn't find any report of this bug. Could you please report it
 here:
 http://www.lyx.org/trac/wiki/BugTrackerHome

Done, Julien:

http://www.lyx.org/trac/ticket/7788

Thanks,

Paul


Re: Underbar and math display style

2011-09-22 Thread Paul Smith
On Thu, Sep 22, 2011 at 12:44 AM, Julien Rioux
 wrote:
>> Write a short paragraph, select it and add an underbar to it.
>> Afterwards, introduce a formula in display style -- you will not be
>> able of compiling your document. (Please, see the attached example.)
>>
>> Is this a bug?
>
> Yes. I couldn't find any report of this bug. Could you please report it
> here:
> http://www.lyx.org/trac/wiki/BugTrackerHome

Done, Julien:

http://www.lyx.org/trac/ticket/7788

Thanks,

Paul


Underbar and math display style

2011-09-21 Thread Paul Smith
Dear All,

Write a short paragraph, select it and add an underbar to it.
Afterwards, introduce a formula in display style -- you will not be
able of compiling your document. (Please, see the attached example.)

Is this a bug?

Thanks in advance,

Paul


bug_underbar.lyx
Description: application/lyx


Re: Underbar and math display style

2011-09-21 Thread Paul Smith
On Wed, Sep 21, 2011 at 10:20 AM, Paul Smith phh...@gmail.com wrote:
 Write a short paragraph, select it and add an underbar to it.
 Afterwards, introduce a formula in display style -- you will not be
 able of compiling your document. (Please, see the attached example.)

 Is this a bug?

As a workaround, insert in ERT two curly brackets. (See the attached example.)

Paul


bug_underbar_workaround.lyx
Description: application/lyx


Underbar and math display style

2011-09-21 Thread Paul Smith
Dear All,

Write a short paragraph, select it and add an underbar to it.
Afterwards, introduce a formula in display style -- you will not be
able of compiling your document. (Please, see the attached example.)

Is this a bug?

Thanks in advance,

Paul


bug_underbar.lyx
Description: application/lyx


Re: Underbar and math display style

2011-09-21 Thread Paul Smith
On Wed, Sep 21, 2011 at 10:20 AM, Paul Smith phh...@gmail.com wrote:
 Write a short paragraph, select it and add an underbar to it.
 Afterwards, introduce a formula in display style -- you will not be
 able of compiling your document. (Please, see the attached example.)

 Is this a bug?

As a workaround, insert in ERT two curly brackets. (See the attached example.)

Paul


bug_underbar_workaround.lyx
Description: application/lyx


Underbar and math display style

2011-09-21 Thread Paul Smith
Dear All,

Write a short paragraph, select it and add an underbar to it.
Afterwards, introduce a formula in display style -- you will not be
able of compiling your document. (Please, see the attached example.)

Is this a bug?

Thanks in advance,

Paul


bug_underbar.lyx
Description: application/lyx


Re: Underbar and math display style

2011-09-21 Thread Paul Smith
On Wed, Sep 21, 2011 at 10:20 AM, Paul Smith <phh...@gmail.com> wrote:
> Write a short paragraph, select it and add an underbar to it.
> Afterwards, introduce a formula in display style -- you will not be
> able of compiling your document. (Please, see the attached example.)
>
> Is this a bug?

As a workaround, insert in ERT two curly brackets. (See the attached example.)

Paul


bug_underbar_workaround.lyx
Description: application/lyx


Show all authors when citing BibTeX entry

2011-08-17 Thread Paul Smith
Dear All,

Consider a BibTeX entry with 3 authors. With the style apalike, when
citing this BibTeX entry, I get something like the following in the
pdf file:

Author1 et al. (2000).

Is it possible instead to get something like the following in the pdf file:

Author1, Author2 and Author3 (2000)

?

Thanks in advance,

Paul


Re: Show all authors when citing BibTeX entry

2011-08-17 Thread Paul Smith
On Wed, Aug 17, 2011 at 1:56 PM, Julien Rioux
jri...@physics.utoronto.ca wrote:
 Consider a BibTeX entry with 3 authors. With the style apalike, when
 citing this BibTeX entry, I get something like the following in the
 pdf file:

 Author1 et al. (2000).

 Is it possible instead to get something like the following in the pdf
 file:

 Author1, Author2 and Author3 (2000)

 ?

 In the citation dialog, near the bottom, is a checkmark Full author list.
 Does it work for you? It works here with a natbib style.

Thanks, Julien. I have tried that, but with no success. And yes, I am
using natlib with apalike style. Have you tried that with apalike
style?

Paul


Re: Show all authors when citing BibTeX entry

2011-08-17 Thread Paul Smith
On Wed, Aug 17, 2011 at 2:47 PM, Julien Rioux
jri...@physics.utoronto.ca wrote:
 Consider a BibTeX entry with 3 authors. With the style apalike, when
 citing this BibTeX entry, I get something like the following in the
 pdf file:

 Author1 et al. (2000).

 Is it possible instead to get something like the following in the pdf
 file:

 Author1, Author2 and Author3 (2000)

 ?

 In the citation dialog, near the bottom, is a checkmark Full author
 list.
 Does it work for you? It works here with a natbib style.

 Thanks, Julien. I have tried that, but with no success. And yes, I am
 using natlib with apalike style. Have you tried that with apalike
 style?

 Right, I get the same failure here with apalike. It seems that this style
 file is either not the most recent and needs updating, or is simply not
 natbib compatible. It produces in the .bbl file a line:

 \bibitem[Einstein et~al., 1935]{EPR1935}

 which should instead read

 \bibitem[Einstein et~al.(1935)Einstein, Podolsky, and Rosen]{EPR1935}

 in order for natbib to produce a full author list.

Thanks again, Julien. Is there a workaround?

Paul


  1   2   3   4   5   6   7   8   9   10   >