Re: How to change the default setting of inserting a graph?

2011-08-16 Thread Liviu Andronic
(please reply to the list, too)


On Tue, Aug 16, 2011 at 8:07 AM, Zhaorong Wang wzr8...@gmail.com wrote:
 Hi Liviu,
 Now I understand! It is an awesome solution, even if the groups will
 no longer exist after I exit lyx.

I cannot reproduce this. After saving the document and restarting LyX,
the groups that are associated with at least one image are still
present in the document.


 Thank you so so much!
 Another question is, when I set the graph to be 100% page width,
 actually I want it to be centered

To centre a graph within a float you need to explicitly change the
paragraph alignment to 'centre'. In this case Helge's solution could
very well complement mine: when in need of a subsequent figure float,
copy/paste an existing one, click on the image and change the file
name. This way you will have kept all the settings of the original
figure float.


 and occupy all the page width. But
 it turns out to start at the left boundary of text, not the rim of the
 page. So actually the graph exceeds the right boundary a little bit.
 Is there any options I can use to alter it? Or maybe I'd better to set
 the graph to be the text width. But sometimes I just want to make a
 large resolution graph as big as possible on the page. And usually
 some figures, for example generated by Matlab already have blank
 margins. It waste some display space if it start from the left margin
 of the page. Refer to the attachment. Thanks!

I'm not sure what exactly you're aiming for, but I would suggest that
you experiment with the various 'width' options available (for
example, in addition to 'page' and 'text' you also have 'line width
%'; you may check Help  User's Guide for more info on this), keeping
in mind that you can specify '100 Page Width %', as well as '130 Page
Width %' or '70 Page Width %'. See what works best in your case.

Regards
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-16 Thread Liviu Andronic
(please reply to the list, too)


On Tue, Aug 16, 2011 at 8:07 AM, Zhaorong Wang wzr8...@gmail.com wrote:
 Hi Liviu,
 Now I understand! It is an awesome solution, even if the groups will
 no longer exist after I exit lyx.

I cannot reproduce this. After saving the document and restarting LyX,
the groups that are associated with at least one image are still
present in the document.


 Thank you so so much!
 Another question is, when I set the graph to be 100% page width,
 actually I want it to be centered

To centre a graph within a float you need to explicitly change the
paragraph alignment to 'centre'. In this case Helge's solution could
very well complement mine: when in need of a subsequent figure float,
copy/paste an existing one, click on the image and change the file
name. This way you will have kept all the settings of the original
figure float.


 and occupy all the page width. But
 it turns out to start at the left boundary of text, not the rim of the
 page. So actually the graph exceeds the right boundary a little bit.
 Is there any options I can use to alter it? Or maybe I'd better to set
 the graph to be the text width. But sometimes I just want to make a
 large resolution graph as big as possible on the page. And usually
 some figures, for example generated by Matlab already have blank
 margins. It waste some display space if it start from the left margin
 of the page. Refer to the attachment. Thanks!

I'm not sure what exactly you're aiming for, but I would suggest that
you experiment with the various 'width' options available (for
example, in addition to 'page' and 'text' you also have 'line width
%'; you may check Help  User's Guide for more info on this), keeping
in mind that you can specify '100 Page Width %', as well as '130 Page
Width %' or '70 Page Width %'. See what works best in your case.

Regards
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-16 Thread Liviu Andronic
(please reply to the list, too)


On Tue, Aug 16, 2011 at 8:07 AM, Zhaorong Wang  wrote:
> Hi Liviu,
> Now I understand! It is an awesome solution, even if the groups will
> no longer exist after I exit lyx.
>
I cannot reproduce this. After saving the document and restarting LyX,
the groups that are associated with at least one image are still
present in the document.


> Thank you so so much!
> Another question is, when I set the graph to be 100% page width,
> actually I want it to be centered
>
To centre a graph within a float you need to explicitly change the
paragraph alignment to 'centre'. In this case Helge's solution could
very well complement mine: when in need of a subsequent figure float,
copy/paste an existing one, click on the image and change the file
name. This way you will have kept all the settings of the original
figure float.


> and occupy all the page width. But
> it turns out to start at the left boundary of text, not the rim of the
> page. So actually the graph exceeds the right boundary a little bit.
> Is there any options I can use to alter it? Or maybe I'd better to set
> the graph to be the text width. But sometimes I just want to make a
> large resolution graph as big as possible on the page. And usually
> some figures, for example generated by Matlab already have blank
> margins. It waste some display space if it start from the left margin
> of the page. Refer to the attachment. Thanks!
>
I'm not sure what exactly you're aiming for, but I would suggest that
you experiment with the various 'width' options available (for
example, in addition to 'page' and 'text' you also have 'line width
%'; you may check Help > User's Guide for more info on this), keeping
in mind that you can specify '100 Page Width %', as well as '130 Page
Width %' or '70 Page Width %'. See what works best in your case.

Regards
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Liviu Andronic
On Mon, Aug 15, 2011 at 7:44 AM, Zhaorong Wang wzr8...@gmail.com wrote:
 Dear lyx users,
 I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
 writing progress report every week. Often I need to insert figures,
 but the figures usually have different original size. Lyx seems to
 insert graphs using their original size as default. But sometimes big
 figure even exceeds the right boundary of the page. Then I need to
 make it smaller manually through the graph dialog box. So I want to
 change the default to be like as wide as the text width. How can I do
 in the preamble? I am simply using the document class article.

I don't know if you can alter the defaults in this case, but you could
do the following: when inserting the figure go to the 'LyX options'
tab and change the 'Scale on Screen' as desired, then 'Open new group'
and insert a grp name. Afterwards use 'right-click' on newly inserted
figure and use this group via the checkbox.
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Helge Hafting

On 15. aug. 2011 07:44, Zhaorong Wang wrote:

Dear lyx users,
I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
writing progress report every week. Often I need to insert figures,
but the figures usually have different original size. Lyx seems to
insert graphs using their original size as default. But sometimes big
figure even exceeds the right boundary of the page. Then I need to
make it smaller manually through the graph dialog box. So I want to
change the default to be like as wide as the text width. How can I do
in the preamble? I am simply using the document class article.
Thanks for any help!


There is no default settings for new figures.

But here is a timesaver:

Make a template document for progress reports. Include a figure in
the template, which have all the correct settings. (Such as width=100% 
of line length).


When you want to write a report, you use File-New from template
When you need the figure, you just change the filename in the template
figure, instead of adding a new figure. This is less work than first
adding a figure and then setting the width.

If you need more figures, just copy the first one and change the
filename in the copy. If a report doesn't need a figure, delete the
one provided by the template.

A template can of course have other non-default document settings set up 
the way you want your reports to be too.


Helge Hafting


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Liviu Andronic
On Tue, Aug 16, 2011 at 1:16 AM, Zhaorong Wang wzr8...@gmail.com wrote:
 I don't think I understand your solution. But thank you all the same :)

You could:
- insert figure
- change width to be as wide as the text width
- go to the 'LaTeX and LyX options' tab
- 'Open new group' and insert a grp name
- then, when inserting new figure, use 'right-click' on newly inserted
figure and make it belong to the group that you've just created. It
will re-use the settings (bar the image file name) of the first
figure.

Let me know if this makes more sense.
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Liviu Andronic
On Mon, Aug 15, 2011 at 7:44 AM, Zhaorong Wang wzr8...@gmail.com wrote:
 Dear lyx users,
 I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
 writing progress report every week. Often I need to insert figures,
 but the figures usually have different original size. Lyx seems to
 insert graphs using their original size as default. But sometimes big
 figure even exceeds the right boundary of the page. Then I need to
 make it smaller manually through the graph dialog box. So I want to
 change the default to be like as wide as the text width. How can I do
 in the preamble? I am simply using the document class article.

I don't know if you can alter the defaults in this case, but you could
do the following: when inserting the figure go to the 'LyX options'
tab and change the 'Scale on Screen' as desired, then 'Open new group'
and insert a grp name. Afterwards use 'right-click' on newly inserted
figure and use this group via the checkbox.
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Helge Hafting

On 15. aug. 2011 07:44, Zhaorong Wang wrote:

Dear lyx users,
I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
writing progress report every week. Often I need to insert figures,
but the figures usually have different original size. Lyx seems to
insert graphs using their original size as default. But sometimes big
figure even exceeds the right boundary of the page. Then I need to
make it smaller manually through the graph dialog box. So I want to
change the default to be like as wide as the text width. How can I do
in the preamble? I am simply using the document class article.
Thanks for any help!


There is no default settings for new figures.

But here is a timesaver:

Make a template document for progress reports. Include a figure in
the template, which have all the correct settings. (Such as width=100% 
of line length).


When you want to write a report, you use File-New from template
When you need the figure, you just change the filename in the template
figure, instead of adding a new figure. This is less work than first
adding a figure and then setting the width.

If you need more figures, just copy the first one and change the
filename in the copy. If a report doesn't need a figure, delete the
one provided by the template.

A template can of course have other non-default document settings set up 
the way you want your reports to be too.


Helge Hafting


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Liviu Andronic
On Tue, Aug 16, 2011 at 1:16 AM, Zhaorong Wang wzr8...@gmail.com wrote:
 I don't think I understand your solution. But thank you all the same :)

You could:
- insert figure
- change width to be as wide as the text width
- go to the 'LaTeX and LyX options' tab
- 'Open new group' and insert a grp name
- then, when inserting new figure, use 'right-click' on newly inserted
figure and make it belong to the group that you've just created. It
will re-use the settings (bar the image file name) of the first
figure.

Let me know if this makes more sense.
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Liviu Andronic
On Mon, Aug 15, 2011 at 7:44 AM, Zhaorong Wang  wrote:
> Dear lyx users,
> I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
> writing progress report every week. Often I need to insert figures,
> but the figures usually have different original size. Lyx seems to
> insert graphs using their original size as default. But sometimes big
> figure even exceeds the right boundary of the page. Then I need to
> make it smaller manually through the graph dialog box. So I want to
> change the default to be like as wide as the text width. How can I do
> in the preamble? I am simply using the document class "article".
>
I don't know if you can alter the defaults in this case, but you could
do the following: when inserting the figure go to the 'LyX options'
tab and change the 'Scale on Screen' as desired, then 'Open new group'
and insert a grp name. Afterwards use 'right-click' on newly inserted
figure and use this group via the checkbox.
Liviu


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Helge Hafting

On 15. aug. 2011 07:44, Zhaorong Wang wrote:

Dear lyx users,
I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
writing progress report every week. Often I need to insert figures,
but the figures usually have different original size. Lyx seems to
insert graphs using their original size as default. But sometimes big
figure even exceeds the right boundary of the page. Then I need to
make it smaller manually through the graph dialog box. So I want to
change the default to be like as wide as the text width. How can I do
in the preamble? I am simply using the document class "article".
Thanks for any help!


There is no "default settings" for new figures.

But here is a timesaver:

Make a template document for "progress reports". Include a figure in
the template, which have all the correct settings. (Such as width=100% 
of line length).


When you want to write a report, you use "File->New from template"
When you need the figure, you just change the filename in the template
figure, instead of adding a new figure. This is less work than first
adding a figure and then setting the width.

If you need more figures, just copy the first one and change the
filename in the copy. If a report doesn't need a figure, delete the
one provided by the template.

A template can of course have other non-default document settings set up 
the way you want your reports to be too.


Helge Hafting


Re: How to change the default setting of inserting a graph?

2011-08-15 Thread Liviu Andronic
On Tue, Aug 16, 2011 at 1:16 AM, Zhaorong Wang  wrote:
> I don't think I understand your solution. But thank you all the same :)
>
You could:
- insert figure
- change width to be as wide as the text width
- go to the 'LaTeX and LyX options' tab
- 'Open new group' and insert a grp name
- then, when inserting new figure, use 'right-click' on newly inserted
figure and make it belong to the group that you've just created. It
will re-use the settings (bar the image file name) of the first
figure.

Let me know if this makes more sense.
Liviu


How to change the default setting of inserting a graph?

2011-08-14 Thread Zhaorong Wang
Dear lyx users,
I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
writing progress report every week. Often I need to insert figures,
but the figures usually have different original size. Lyx seems to
insert graphs using their original size as default. But sometimes big
figure even exceeds the right boundary of the page. Then I need to
make it smaller manually through the graph dialog box. So I want to
change the default to be like as wide as the text width. How can I do
in the preamble? I am simply using the document class article.
Thanks for any help!

-- 
Cheers,
Zhaorong Wang

Our first endeavors are purely instinctive prompting of an
imagination vivid and undisciplined. As we grow older reason asserts
itself and we become more and more systematic and designing. But those
early impulses, though not immediately productive, are of the greatest
moment and may shape our very destinies.
—Nikola Tesla


How to change the default setting of inserting a graph?

2011-08-14 Thread Zhaorong Wang
Dear lyx users,
I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
writing progress report every week. Often I need to insert figures,
but the figures usually have different original size. Lyx seems to
insert graphs using their original size as default. But sometimes big
figure even exceeds the right boundary of the page. Then I need to
make it smaller manually through the graph dialog box. So I want to
change the default to be like as wide as the text width. How can I do
in the preamble? I am simply using the document class article.
Thanks for any help!

-- 
Cheers,
Zhaorong Wang

Our first endeavors are purely instinctive prompting of an
imagination vivid and undisciplined. As we grow older reason asserts
itself and we become more and more systematic and designing. But those
early impulses, though not immediately productive, are of the greatest
moment and may shape our very destinies.
—Nikola Tesla


How to change the default setting of inserting a graph?

2011-08-14 Thread Zhaorong Wang
Dear lyx users,
I am using lyx 2.0 on windows 7. I just keep lyx as simple editor of
writing progress report every week. Often I need to insert figures,
but the figures usually have different original size. Lyx seems to
insert graphs using their original size as default. But sometimes big
figure even exceeds the right boundary of the page. Then I need to
make it smaller manually through the graph dialog box. So I want to
change the default to be like as wide as the text width. How can I do
in the preamble? I am simply using the document class "article".
Thanks for any help!

-- 
Cheers,
Zhaorong Wang

"Our first endeavors are purely instinctive prompting of an
imagination vivid and undisciplined. As we grow older reason asserts
itself and we become more and more systematic and designing. But those
early impulses, though not immediately productive, are of the greatest
moment and may shape our very destinies."
—Nikola Tesla