Re: PDF output wrong size

2020-03-03 Thread Les
On Tue, 3 Mar 2020 11:10:42 -0700
Richard Opheim  wrote:

> Sorry about that. It's been a while since I posted.
> I'm running LyX 2.3.4.3 on WIN10. The class is memoir. I specify that
> the paper format should be 8 x 5, but the program doggedly outputs to
> 8.5 x 11.

The memoir class ignores LyX page sizes. You have to define them in
the  preamble.

Here is what I have put in the preamble to solve a similar problem:

\setstocksize{9in}{6in}
\settrimmedsize{9in}{6in}{*}
\settrims{0pt}{0pt}
\settypeblocksize{7.7in}{4.5in}{*}
\setulmarginsandblock{24mm}{20mm}{*}
\setheaderspaces{0.625in}{*}{*}
\setlrmargins{0.75in}{*}{*}
\setlength{\marginparwidth}{0.0in}
\setlength{\uppermargin}{0.7in} %Top margin including header

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


Re: PDF output wrong size

2020-03-03 Thread Richard Opheim
Sorry about that. It's been a while since I posted.
I'm running LyX 2.3.4.3 on WIN10. The class is memoir. I specify that the
paper format should be 8 x 5, but the program doggedly outputs to 8.5 x 11.
Other paper format specifications result in the same problem.The problem is
not caused by tables or figure floats; only by graphics, whether in a
figure float or not. Deleting the graphic allows the program to output to
the size specified in paper format. Downsizing the graphics doesn't help.
This behavior was not noticed until recently because I had been working for
a couple of years on a book in the 8.5 x 11 (letter) format which outputs
normally with graphics inserted.
Please find attached a new file with minimal text, graphic without float,
and nothing in the preamble, which results in the same undesirable output.

On Tue, Mar 3, 2020 at 5:11 AM Dr Eberhard Lisse  wrote:

> Richard (Opheim)
>
> This is not a MWE.
>
> Remove EVERYTHING (packages, layouts) from the file (and preamble) which
> does not cause the error. Or construct a virgin file, without anything
> other than a line or two of text, add the paper format and the image.
> If that works out add one modification, package at the time and
> regenerate the PDF.
>
> That often helps me finding the cause :-)-O
>
> el
>
> On 29/02/2020 06:35, Richard Opheim wrote:
> >
> >
> > On Fri, Feb 28, 2020 at 9:16 PM Richard Kimberly Heck
> >  wrote:
> >
> > On 2/28/20 10:54 PM, Richard Opheim wrote:
> >>
> >>
> >> On Fri, Feb 28, 2020 at 8:35 PM Richard Kimberly Heck
> >> mailto:rikih...@lyx.org>> wrote:
> >>
> >> On 2/28/20 8:07 PM, Richard Opheim wrote:
> >> > The attached file's document/settings/page layout/paper
> >> > format is set to 8" high, 5" wide.  However, it outputs to
> >> > what I assume is a default 8.5x11 size.  If I remove the
> >> > figure float at the end of the page, it outputs to the
> >> > correct size.  Why should the figure cause this?  The size
> >> > of the figure itself is only 2" wide.
> >>
> >> Can you also attach the figure? Without it, it's hard to say.
> >>
> >> FYI, my wife is really into Latin percussion. This looks
> interesting!
> >>
> >> Riki
> >>
> >>
> >>Oops.  Please find attached.
> >
> > No problem, but you should reply to the list.  I'm not an expert
> > on this kind of thing.
> >
> > That said, I did notice a "Here definitely" default for float
> > placement in Document> Settings.  That could mess up the page
> > sizes.
> >
> > Riki
> >
> >
> > Hm. Thought I was replying to the list.
> >
> > I fiddled around with the placement settings, but no change.  Removing
> > the figure from the figure float does work, though what use is a float
> > without anything in it.  Tried making the graphic smaller; didn't make
> > any difference.  Figure without float also no go.
> >
> > --
> > Richard Opheim
> [...]
>
>
> --
> If you want to email me, replace nospam with el
>
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


-- 
Richard Opheim
PO box 2261
Arizona City, AZ 85123

Skype name: richard.opheim
Office: +1 (262) 724-0443
Mobile: +1 (206) 965-0564
J-E Translation


Now available on Amazon:

*The Taste of Kyoto: A Guide to Dining and Sightseeing in the Old Capital
*

*Conga Oriental: Traditional Parade Music of Eastern Cuba
*



*Sine probationem non creditis*


newfile1.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: PDF output wrong size

2020-03-03 Thread Dr Eberhard Lisse
Richard (Opheim)

This is not a MWE. 

Remove EVERYTHING (packages, layouts) from the file (and preamble) which
does not cause the error. Or construct a virgin file, without anything 
other than a line or two of text, add the paper format and the image. 
If that works out add one modification, package at the time and 
regenerate the PDF.

That often helps me finding the cause :-)-O

el

On 29/02/2020 06:35, Richard Opheim wrote:
> 
> 
> On Fri, Feb 28, 2020 at 9:16 PM Richard Kimberly Heck
>  wrote:
> 
> On 2/28/20 10:54 PM, Richard Opheim wrote:
>>
>>
>> On Fri, Feb 28, 2020 at 8:35 PM Richard Kimberly Heck
>> mailto:rikih...@lyx.org>> wrote:
>>
>> On 2/28/20 8:07 PM, Richard Opheim wrote:
>> > The attached file's document/settings/page layout/paper
>> > format is set to 8" high, 5" wide.  However, it outputs to
>> > what I assume is a default 8.5x11 size.  If I remove the
>> > figure float at the end of the page, it outputs to the
>> > correct size.  Why should the figure cause this?  The size
>> > of the figure itself is only 2" wide.
>>
>> Can you also attach the figure? Without it, it's hard to say.
>>
>> FYI, my wife is really into Latin percussion. This looks interesting!
>>
>> Riki
>>
>>
>>Oops.  Please find attached.
> 
> No problem, but you should reply to the list.  I'm not an expert
> on this kind of thing.
> 
> That said, I did notice a "Here definitely" default for float
> placement in Document> Settings.  That could mess up the page
> sizes.
> 
> Riki
> 
> 
> Hm. Thought I was replying to the list.
> 
> I fiddled around with the placement settings, but no change.  Removing
> the figure from the figure float does work, though what use is a float
> without anything in it.  Tried making the graphic smaller; didn't make
> any difference.  Figure without float also no go.
> 
> -- 
> Richard Opheim
[...]


-- 
If you want to email me, replace nospam with el


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


Re: Remove the braces in Lyx file converted from latex file

2020-03-03 Thread Dr Eberhard Lisse
RiKi,

I have been through this (curly removal) before.

While Perl can remove braces easily and quick and dirty as in

s/\{//g;
s/\}//g;

this will remove ANY and ALL curlies.

If the LyX document contains other curlies they will also go. So you 
might need to copy the formula from the LyX file into a buffer, remove 
the curies and then paste again.

Writing a Regular Expression to do this intelligently (ie working from
the outside braces to the inside) is extremely difficult.

Never mind how the LyX code actually looks like. (I.e. who are the 
curlies represented there)

Zhao,

can you post a minimal working example LyX file here? A line of text or 
two and one single imported math formula.

greetings, el


On 01/03/2020 02:11, Richard Kimberly Heck wrote:
> On 2/28/20 10:52 AM, zhao_yuns...@cnu.edu.cn wrote:
>> Hello there
>> I have a lyx file converted from a LaTeX file.
>> But in the formula of the lyx file, there are a lot of paired braces,
>> as is shown blow.  Is it possible to delete them quickly.
>> Thanks!
> 
> The easiest way, I think, would be to open the LyX file in a text
> editor and delete them there.  A quick and dirty Perl script might
> work, too.
> 
> Riki


-- 
If you want to email me, replace nospam with el


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