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  wrote:
> On 06/25/2017 03:25 PM, Paul Smith wrote:
>>
>> On Sun, Jun 25, 2017 at 7:09 PM, Paul A. Rubin 
>> 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  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  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  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  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 :
>>
>> 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


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: 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 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 3:29 PM, Paul Smith  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


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: 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 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


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 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


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
Thank you very indeed, John! Your example is brilliant and extremely helpful!

Paul


On Fri, Dec 4, 2015 at 3:22 PM, John Kane  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  wrote:
>>
>> Thanks, John. Could you please post here your example?
>>
>> Paul
>>
>>
>> On Fri, Dec 4, 2015 at 2:22 PM, John Kane  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  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


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  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  wrote:
>>
>> Dear All,
>>
>> Is there some way fo accomplish this in LyX?
>>
>> Thanks in advance,
>>
>> Paul
>
>
>
>
> --
> 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


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


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: 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-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-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


Re: Bibliography inside the main LaTeX file

2011-12-26 Thread Paul Smith
On Mon, Dec 26, 2011 at 5:13 PM, Christopher Menzel  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: 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


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


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


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: 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


Re: Underbar and math display style

2011-09-21 Thread Paul Smith
On Wed, Sep 21, 2011 at 10:20 AM, Paul Smith  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: Show all authors when citing BibTeX entry

2011-08-17 Thread Paul Smith
On Wed, Aug 17, 2011 at 3:26 PM, Julien Rioux
 wrote:
>>> I might waste time learning bibtex's stack language to tweak the
>>> apalike.bst file, but a quick workaround is simply to write the author
>>> names in your LyX file.
>>>
>> Just compare the output.bibitem routine in apalike with the one in
>> plainnat, and you'll see what has to be done. It looks like the
>> make.full.names and author.editor.full routines will need copying over,
>> too, and you may need to change how the names are formatted in the
>> latter routine. But it should be straightforward.
>
> Yes, I actually know enough that I could do this, but time is finite.
>
> Richard, I think you did tweak apalike.bst in an older thread?
>
> Paul, it might be worth researching the list archive.

Thanks, Julien and Richard. I have meanwhile found another BibTeX
file, which fits my needs and does not show the problem that apalike
exhibits.

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
 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


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
 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


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: Difference between 'LyX note' and 'comment'

2011-07-15 Thread Paul Smith
On Fri, Jul 15, 2011 at 1:57 PM, Liviu Andronic  wrote:
> On Fri, Jul 15, 2011 at 2:45 PM, Paul Smith  wrote:
>> Could you please tell me the difference between 'LyX note' and 'comment'?
>>
> Help > User's Guide > Section 4.1.

Thanks, Liviu.

Paul


Difference between 'LyX note' and 'comment'

2011-07-15 Thread Paul Smith
Dear All,

Could you please tell me the difference between 'LyX note' and 'comment'?

Thanks in advance,

Paul


Re: Advanced Find and Replace

2011-05-13 Thread Paul Smith
On Fri, May 13, 2011 at 10:58 AM, Paul Smith  wrote:
> I would like first to congratulate the LyX team for the stupendous
> program that they have developed for us -- LyX. In particular, I would
> like to express my gratitude regarding the great tool "Find & Replace
> (Advanced)" just added to LyX.
>
> However, I think that two import features are missing in this new
> "Find & Replace (Adavnced)"  tool:
>
> 1. search for formatted text (e.g., search for a piece of text in bold);
>
> 2. search only in user-selected pieces of the document.
>
> Do you agree with me?
>
> (I am using lyx-2.0.0-0.21.rc3.fc14.x86_64.)

Please, ignore the first one, as I am now seeing that one can uncheck
the option "ignore format" in the setting of the "Find & Replace
(Adavnced)"  tool.

Paul


Advanced Find and Replace

2011-05-13 Thread Paul Smith
Dear All,

I would like first to congratulate the LyX team for the stupendous
program that they have developed for us -- LyX. In particular, I would
like to express my gratitude regarding the great tool "Find & Replace
(Advanced)" just added to LyX.

However, I think that two import features are missing in this new
"Find & Replace (Adavnced)"  tool:

1. search for formatted text (e.g., search for a piece of text in bold);

2. search only in user-selected pieces of the document.

Do you agree with me?

(I am using lyx-2.0.0-0.21.rc3.fc14.x86_64.)

Thanks in advance,

Paul


Re: how to separate pdf file?

2011-05-10 Thread Paul Smith
On Tue, May 10, 2011 at 4:20 AM, Hady Ariwibowo Teguh
 wrote:
> i wanna write thesis report in separate pdf file (ex. chap1.pdf, cover.pdf so 
> on). but i dont know how to do it. Any body help me please.

Teguh,

Produce a single pdf file, and use pdftk to separate the pdf file by chapters.

Hope this helps you,

Paul


Re: ANNOUNCE: LyX version 2.0.0 is released

2011-05-08 Thread Paul Smith
On Sun, May 8, 2011 at 10:39 AM, Murat Yildizoglu  wrote:
> Thanks a lot to the team for this new version of this beautiful software!
> Congratulations for your efficiency and creativity!
> A happy Lyxer ;-)

I second Murat's words!

Congratulations!

Paul


Bug with label and multiline

2011-04-27 Thread Paul Smith
Dear All,

Please, do the following:

1. open a multiline AMS box;
2. write a equation;
3. insert the label 'eq:01' into your equation;
4. press control+enter;
5. try now to change the label again to 'eq:01'?

Can you see a suffix to be appended to your new label without your
consent? LyX presumes that the label is duplicated, but it is not in
fact the case, it seems to me.

I am using lyx-2.0.0-0.21.rc3.fc14.x86_64.

Thanks in advance,

Paul


Re: CAS: multiplying matrices

2010-06-08 Thread Paul Smith
On Mon, Jun 7, 2010 at 8:23 PM, Sandor Szabo  wrote:
>>> Dear Paul, could you explain us how do you invoke Mathematice
>>> computations from Lyx? I always thought that this connection was quite
>>> unusable and your mail is good news.

 I know how to use LyX to invoke Mathematica to perform several
 calculations, except multiplying matrices. Could you please give me
 some guidance?
>>
>> See the following:
>>
>> http://imil.au.edu.tw/blog1/index.php?itemid=214
>>
>> You also need to insert the path to your Mathematica binary in
>>
>> Tools ->  Preferences ->  Paths
>>
> I tried to see, it says "Click the lyx source file.", but there is no
> source.
> Please give more details, if you don't mind.
> I would like to use Maple, if it is possible, for more complex computations.

Unfortunately, it seems that LyX does not support as much as it
supports Maxima and Mathematica.

I only know how to interact with Mathematica from inside LyX, and I
have been successful with following the instructions described in the
mentioned site.

I hope this will help you,

Paul


Re: CAS: multiplying matrices

2010-06-05 Thread Paul Smith
On Sat, Jun 5, 2010 at 11:24 AM, Murat Yildizoglu
 wrote:
> Dear Paul, could you explain us how do you invoke Mathematice
> computations from Lyx? I always thought that this connection was quite
> unusable and your mail is good news.
>
> Murat
>
> 2010/6/5 Paul Smith :
>> Dear All,
>>
>> I know how to use LyX to invoke Mathematica to perform several
>> calculations, except multiplying matrices. Could you please give me
>> some guidance?

Hi Murat,

See the following:

http://imil.au.edu.tw/blog1/index.php?itemid=214

You also need to insert the path to your Mathematica binary in

Tools -> Preferences -> Paths

I hope this will help you,

Paul


CAS: multiplying matrices

2010-06-05 Thread Paul Smith
Dear All,

I know how to use LyX to invoke Mathematica to perform several
calculations, except multiplying matrices. Could you please give me
some guidance?

Thanks in advance,

Paul


Re: Is LyX Bugzilla closed?

2010-05-10 Thread Paul Smith
On Mon, May 10, 2010 at 7:56 PM, Vincent van Ravesteijn  wrote:
>> I am looking for LyX Bugzilla, but I am not finding it. Has LyX
>> Bugzilla been replaced by
>>
>> http://www.lyx.org/trac/wiki/BugTrackerHome
>
> Yes.

Thanks, Vincent.

Paul


Is LyX Bugzilla closed?

2010-05-10 Thread Paul Smith
Dear All,

I am looking for LyX Bugzilla, but I am not finding it. Has LyX
Bugzilla been replaced by

http://www.lyx.org/trac/wiki/BugTrackerHome

Paul


Re: Mathmatics...

2010-04-12 Thread Paul Smith
On Mon, Apr 12, 2010 at 8:38 PM, OldDeath  wrote:
> I'm using a costum keyboard layout (called "neo layout") that allows me to 
> enter math unicode chars, such as ℂ, ℕ or ℝ, directly from my keyboard. 
> However these unicode chars arent displayed correctly in the editor area and 
> are not converted correctly into the output pdf file...

In math mode, write

\mathbb + ENTER.

Afterwards, write R and see the result.

Paul


Re: I guess I found a bug

2010-02-21 Thread Paul Smith
On Sun, Feb 21, 2010 at 1:12 AM, Mehmet Bicak  wrote:
> Hi,
> I am getting following weird errors,
> Latex error: Command \iint already defined
> Latex error: Command \iiint already defined
> Latex error: Command \nt already defined
>
>  ...d{\iint}{\DOTSI\protect\MultiIntegral{2}}
>
> Your command was ignored.
> Type  I    to replace it with another command,
> or    to continue without it.
>
> I've checked and searched the project file, and there is no single text or
> string is found as \iint , \iiint , \nt
>
> What should I do?
> I am using windows binary distribution 1.6.5

Could you please send us a minimal LyX document exhibiting the reported problem?

Paul


Re: Optimising PDF file size - graphics management

2009-12-19 Thread Paul Smith
On Sat, Dec 19, 2009 at 10:40 AM, Graham M Smith
 wrote:
> Not really a Lyx question, but it has spawned from using Lyx, and Lyx users
> are likely to have an appropriate approach.
>
> I have a 20 page Lyx Beamer document that I am compiling as an article (A4)
> and a presentation. Both PDFs end up at 2.7Mb.
>
> The bulk of the documents are screen grabs and graphics produced from R.
> File sizes for the graphics range from a few kb to almost 1Mb (all PDFs) for
> the screenshots.
>
> First question is whether there is any optimisation of file sizes during the
> compiling to PDF and the original file sizes don't really matter. This seems
> to the case to a certain extent as the total file size for all the graphics
> exceeds the 2.7Mb of the final file.
>
> But should I still be trying to reduce the size of the original files. If so
> is there a best way of doing this, and is there guidance somewhere on target
> sizes and resolutions for different purposes.
>
> It seems an obvious and recurring question that people might have, but
> googling seems to just throw up lots about web pages. So I would be
> interested if any Lyx users have established some routine for managing this
> problem.
>
> I am using Ubuntu 9.1, most of the time.

A suggestion Graham: try to produce vectorial graphics with R (and not
screen-shots); this will reduce the size of your graphics and improve
dramatically their quality.

Paul


Re: How Many use linux

2009-09-13 Thread Paul Smith
LyX on Fedora 11.

Paul


2009/9/13 Julio Rojas :
> Lyx on Ubuntu, on Mac OS X and on Windows XP.
> -
> Julio Rojas
> jcredbe...@gmail.com
>
>
>
> 2009/9/13 Andrés Becerra Sandoval :
>> On Sat, Sep 12, 2009 at 4:45 PM, Iain Mac Donald
>>  wrote:
>>>
>>> LyX in Debian since about 2000.
>>>
>>
>> LyX on Gentoo Linux!
>>
>> --
>>  Andrés
>>
>


Re: I need HELP!

2009-08-13 Thread Paul Smith
On Thu, Aug 13, 2009 at 8:25 PM,  wrote:
> I am trying hard to use LyX instead of Scientific Workplace but I have an
> irriatating problem. After a short time of writing (Title, author,
> abstract, and so on) the dvi, pdf buttons don't work. I just click and
> nothing happens. What the heck is going on!!

Try the following, Marek:

Tools --> Preferences --> File Handling --> Select the appropriate
format and change the corresponding viewer.

Paul


Re: lmodern pdfs not sharp on-screen

2009-06-17 Thread Paul Smith
On Wed, Jun 17, 2009 at 6:58 AM, Guenter Milde wrote:
>> I am using the latest Lyx and chose lmodern (Latin Modern) as my default fo=
>> nt. When I generate pdfs the font looks just not sharp on screen. It prints=
>>  fine but I want it to look sharp on screen. I hunted through the mailing l=
>> ist but could not find a solution (e.g. adding lmodern to the preamble does=
>>  not help). When I use Times the pdfs look sharp on screen but I would real=
>> ly like to keep the Latin Modern or something that looks like it.
>> Any suggestions?
>
> Latin Modern is not "screen optimized" but designed for print.
>
> Have a look at the PDF examples in the TeX Font Catalogue and select a font
> that suits your needs.
>
> http://www.tug.dk/FontCatalogue/

If you are on Linux, then use Okular as the pdf viewer. Latin Modern
looks great on Okular.

Paul


Re: Named Theorems

2009-03-25 Thread Paul Smith
On Wed, Mar 25, 2009 at 3:31 PM, Bruce Pourciau
 wrote:
>>> Using the AMS document class, how do you get, say, Equivalence Theorem,
>>> rather than just Theorem, as the title in the Theorem environment?
>>
>> Between the word "Theorem" and the statement of the theorem, insert in
>> ERT:
>>
>> [Equivalence Theorem]
>>
>> (please, mind the brackets).
>
> Great, thanks Paul. And what if your theorem's conclusion has two parts that
> you would like labelled (a) and (b), rather than 1. and 2.?

Use enumeration, and between 1. and the statement of the conclusion,
insert in ERT:

[(a)]

(mind the brackets and between the ERT and the text of the conclusion
insert a space.)

Paul


Re: Named Theorems

2009-03-25 Thread Paul Smith
On Wed, Mar 25, 2009 at 3:15 PM, Bruce Pourciau
 wrote:
> Using the AMS document class, how do you get, say, Equivalence Theorem,
> rather than just Theorem, as the title in the Theorem environment?

Between the word "Theorem" and the statement of the theorem, insert in ERT:

[Equivalence Theorem]

(please, mind the brackets).

Paul


Re: Is Lyx free for all?

2009-02-27 Thread Paul Smith
On Fri, Feb 27, 2009 at 4:21 PM, Nils Friedrich  wrote:
> Is Lyx without costs, even if companies use it?

Yes, absolutely.

Paul


Re: Best way to insert system of equations

2009-02-01 Thread Paul Smith
On Sun, Feb 1, 2009 at 5:25 PM, Murray Eisenberg  wrote:
> Sorry, I read the original post too quickly. I realize the issue is with the
> space between the equivalence sign and the two sets of equations.
>
> The problem is the use of the cases environment, which is inappropriate. A
> better solution, with the amsmath package loaded, is the LaTeX code:
>
> \begin{equation*}
>  \left\{
>\begin{aligned}
>  x &= 1, \\
>  y &= x+2
>\end{aligned}
>  \right.
>  \Leftrightarrow
>  \left\{
>\begin{aligned}
>  x &= 1, \\
>  y &= 3.
>\end{aligned}
>  \right.
> \end{equation*}
>
> (Sorry, I don't have the original equations at hand.)
>
> I'm just learning LyX, so I'm not sure how much of the preceding can readily
> be done without actually inserting everything directly as LaTeX code.

Thanks, Murray. Inspired by your example, I created a LyX example that
actually works. The procedure is the following:

1. CONTROL + SHIFT + M;
2. Insert --> Math --> Delimiters;
3. Insert the unmatched bracket;
4. Insert -- > Math --> Aligned environment;
5. Insert the equations;
6. Insert the equivalence symbol;
7. Insert the second system of equations.

An example file is attached.

Paul


example2.lyx
Description: application/lyx


Re: Best way to insert system of equations

2009-02-01 Thread Paul Smith
On Sat, Jan 31, 2009 at 6:45 PM, Uwe Stöhr  wrote:
>> Thanks, James, but you solution stills contains asymmetric distances
>> between each system and the equivalence symbol. Can it be still
>> improved?
>
> You haven't filled the second column of the cases environment. Without this
> column, the cases environment doesn't make sense in the mathematical sense
> it is designed for.
> Attached is your example file with two possibilities to fix this. Also have
> a look at sec. 3.5 of LyX's Math manual that you find in the Help menu of
> LyX.

Thanks, Uwe. The problem with your examples is the asymmetric spacing
regarding the two sides of the equal symbol. It seems that there is no
perfect solution, I guess.

Paul


Re: Best way to insert system of equations

2009-02-01 Thread Paul Smith
On Sat, Jan 31, 2009 at 9:00 PM, James C. Sutherland
 wrote:
 I am trying to insert a system of equation in a LyX document. I am
 using the cases environment, but, as you can see from the attached
 example, the space between the first system of equations and the
 equivalence symbol is too large and not symmetric regarding the
 distance between the equivalence symbol and the second system of
 equations. Any ideas about how to improve this?
>>>
>>> Try using a { delimiter (in LaTeX: \left{ \right. ) along with an array
>>> to
>>> accomplish this.  See attached.
>>
>> Thanks, James, but you solution stills contains asymmetric distances
>> between each system and the equivalence symbol. Can it be still
>> improved?
>>
> You could insert a \, (small space) after the arrow.  See attached.

With the array environment, there is not enough vertical space between
the two equations. Please, see the attached example.

Paul


example_system_equations.lyx
Description: application/lyx


Re: Best way to insert system of equations

2009-02-01 Thread Paul Smith
On Sat, Jan 31, 2009 at 9:20 PM, Murray Eisenberg  wrote:
> When I viewed the dvi file, the size of the equivalence sign looked just
> right.
>
> Paul Smith wrote:
>>
>> Dear All,
>>
>> I am trying to insert a system of equation in a LyX document. I am
>> using the cases environment, but, as you can see from the attached
>> example, the space between the first system of equations and the
>> equivalence symbol is too large and not symmetric regarding the
>> distance between the equivalence symbol and the second system of
>> equations. Any ideas about how to improve this?

Thanks, Murray. Unfortunately, here, even on the dvi file, the
equivalence symbol looks closer to the second system of equations than
to the first one.

Paul


Re: Best way to insert system of equations

2009-01-31 Thread Paul Smith
On Sat, Jan 31, 2009 at 5:50 PM, James C. Sutherland
 wrote:
>> I am trying to insert a system of equation in a LyX document. I am
>> using the cases environment, but, as you can see from the attached
>> example, the space between the first system of equations and the
>> equivalence symbol is too large and not symmetric regarding the
>> distance between the equivalence symbol and the second system of
>> equations. Any ideas about how to improve this?
>
> Try using a { delimiter (in LaTeX: \left{ \right. ) along with an array to
> accomplish this.  See attached.

Thanks, James, but you solution stills contains asymmetric distances
between each system and the equivalence symbol. Can it be still
improved?

Paul


Best way to insert system of equations

2009-01-31 Thread Paul Smith
Dear All,

I am trying to insert a system of equation in a LyX document. I am
using the cases environment, but, as you can see from the attached
example, the space between the first system of equations and the
equivalence symbol is too large and not symmetric regarding the
distance between the equivalence symbol and the second system of
equations. Any ideas about how to improve this?

Thanks in advance,

Paul


example_system_equations.lyx
Description: application/lyx


Re: How do I mark first row and first column as header in LyX?

2009-01-05 Thread Paul Smith
On Sun, Jan 4, 2009 at 6:21 AM, Shital Shah  wrote:
> I googled this and searched in forum but there doesn't seem to be any
> pointer except making table as bigtable. I have a simple table with 5 rows
> and 3 columns. I would just like to mark first column and/or first row as
> header column/row. I don't want to explicitly apply any formatting but
> headers should look different. Is there any way to do this in LyX?

I am not sure whether I am understating correctly what you mean, but
why do not you select the first row and change the characters to bold
face, for instance? In this way, you would get a table with a
different first row.

Paul


Problem with accented characters when autocomplete is on

2008-12-08 Thread Paul Smith
Dear All,

With (text mode) autocomplete on, if the suggestions window pops up
and one does not accept any suggestion, then afterwards one cannot
insert accented characters into the word being edited; for instance,
instead of

manhãna,

one gets

manha~na.

Do you confirm this problem in your systems? If so, I will
subsequently file a bug at LyX Bugzilla.

Thanks in advance,

Paul


  1   2   3   4   5   6   7   8   9   10   >